47b2804516
test(cli): add integration tests and fix CI workflow
...
- Add 24 integration tests in cmd/molecule/molecule_test.go covering
all 18 subcommands (workspace, agent, platform, config) including
error paths for not-found and missing-arg cases
- Tests use httptest mock server; binary built per-test with correct
repo root for go build ./cmd/molecule
- Fix release.yml: correct binary name (molecule not molecli), correct
package path (./cmd/molecule not ./cmd/molecli)
- Add test job (go mod tidy + vet + test) to release.yml, runs on
every PR touching Go files
- Release job gated on test job; conditional on v* tag push
- Mark KI-005 resolved in known-issues.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 10:12:28 +00:00
molecule-ai[bot]
09417df58f
Merge pull request #4 from Molecule-AI/feat/cli-full-command-tree
...
feat(cli): implement full CLI command tree
2026-04-21 01:19:40 +00:00
3eabe3c780
feat: implement full CLI command tree
...
Implement the core CLI for molecule-cli:
- cmd/molecule/main.go: entry point calling cmd.Execute()
- internal/cmd/root.go: cobra root with global flags (--api-url,
--verbose, --output, --config), registers all 4 command groups
- internal/cmd/workspace.go: 7 subcommands (list, create, inspect,
delete, restart, audit, delegate)
- internal/cmd/agent.go: 4 subcommands (list, inspect, send, peers)
- internal/cmd/platform.go: 2 subcommands (audit, health)
- internal/cmd/config.go: 5 subcommands (list, get, set, init, view)
- internal/cmd/http.go: runHTTP helper shared by agent send and
workspace delegate
- internal/client/platform.go: control plane HTTP client with
workspace/agent/health/audit operations
All 18 subcommands wire to platform API via MOLECULE_API_URL.
Binary builds to ./bin/mol. Resolves KI-001, KI-002 (partial),
KI-003.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 01:18:24 +00:00
25601ba758
feat(cli): implement cmd/molecule/main.go with full command tree
...
- Root command: --output, --verbose, --config flags
- Workspace subcommands: create/list/inspect/delete/restart/delegate/audit
- Agent subcommands: list/inspect/send/peers
- Platform subcommands: audit/health
- Config subcommands: list/get/set/init/view
- Exit codes 0/1/2, errors to stderr, text/json/yaml output
- Viper config file support, Gin mode (verbose = debug, silent = release)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 01:00:38 +00:00
88bcae698b
docs: expand CLAUDE.md with full command reference, output formats, Homebrew tap
...
- Full mol command tree: workspace/agent/platform/config subcommands
- Output format examples (text/JSON/YAML)
- Error codes + format conventions + global flags table
- Homebrew tap release notes + cross-platform binary build targets
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 00:53:51 +00:00
molecule-ai[bot]
5e5ec063bf
docs: add CLAUDE.md, known-issues.md, and .claude/settings.json ( #2 )
...
* docs: add CLAUDE.md for agent onboarding
Inherits platform conventions from molecule-core:
- Cron discipline and triage rules
- Build/test commands (go build, go test)
- Go module conventions (go mod tidy, go.sum hygiene)
- Release process (GoReleaser tag workflow)
- CLI design conventions (kubectl/gh patterns, stderr errors, exit codes)
- Stub repo status checklist
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs: add CLAUDE.md known-issues ref, known-issues.md, .claude/settings.json
- CLAUDE.md: add known-issues.md reference in Known Issues section
- known-issues.md: 5 entries (KI-001 main.go, KI-002 API client,
KI-003 go.sum, KI-004 goreleaser, KI-005 no tests)
- .claude/settings.json: permissions for go/goreleaser tools,
PreToolUse Bash hook, cleanupPeriodDays 30
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Molecule AI SDK-Dev <sdk-dev@agents.moleculesai.app>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 23:10:40 +00:00
Hongming Wang
898d792888
Merge pull request #1 from Molecule-AI/chore/credentials-gitignore
...
chore: gitignore credentials
2026-04-16 09:23:52 -07:00
rabbitblood
e330e440f6
chore: gitignore credentials for molecule-cli
...
Adds standard credential gitignore (.env / *.pem / .secrets/ / .auth_token).
Per-CEO directive 2026-04-16: every plugin and template repo should
gitignore credentials so self-hosters can't accidentally commit real
tokens to public repos.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 09:18:55 -07:00
Hongming Wang
653a531eab
ci: add Go binary release workflow (tag v* → GitHub Releases)
2026-04-16 03:50:28 -07:00
Hongming Wang
2ec176bf57
feat: initial CLI (extracted from molecule-monorepo/platform/cmd/cli)
...
molecli — Go TUI dashboard for Molecule AI workspace monitoring.
Note: currently depends on platform Go packages; full API-only
decoupling tracked as follow-up.
2026-04-16 03:15:58 -07:00