Skip to content

feat(scripts): add standalone ANOLISA adapter entry#549

Merged
kongche-jbw merged 13 commits into
alibaba:mainfrom
kongche-jbw:scripts/anolisa-for-openclaw
May 26, 2026
Merged

feat(scripts): add standalone ANOLISA adapter entry#549
kongche-jbw merged 13 commits into
alibaba:mainfrom
kongche-jbw:scripts/anolisa-for-openclaw

Conversation

@kongche-jbw
Copy link
Copy Markdown
Collaborator

Description

This PR adds a standalone OpenClaw adapter entry for ANOLISA:

scripts/anolisa-for-openclaw

The goal is to provide a separate one-click OpenClaw integration path without
coupling it to the project build/install workflow.

This script is an adapter orchestrator only. It does not build source code and
does not duplicate component-private logic. Instead, it discovers and invokes
per-component adapter scripts through a shared environment contract.

Included components:

  • os-skills
  • ws-ckpt
  • sec-core
  • tokenless

agentsight is recognized but intentionally not included in the recommended
OpenClaw adapter set because it does not currently provide an OpenClaw adapter.

Key behavior:

  • Supports install and uninstall actions.
  • Supports --mode recommended and explicit --component.
  • Supports --status and --dry-run.
  • Discovers adapters from built target output, user install paths, system
    install paths, or source tree fallback.
  • Calls component-owned adapter scripts:
    openclaw/scripts/install.sh and openclaw/scripts/uninstall.sh.

This PR is intentionally separated from the build workflow PR so reviewers can
evaluate the OpenClaw delivery scenario independently.

Related Issue

no-issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional change)
  • Performance improvement
  • CI/CD or build changes

Scope

  • cosh (copilot-shell)
  • sec-core (agent-sec-core)
  • skill (os-skills)
  • sight (agentsight)
  • tokenless (tokenless)
  • Multiple / Project-wide

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • For cosh: Lint passes, type check passes, and tests pass
  • For sec-core (Rust): cargo clippy -- -D warnings and cargo fmt --check pass
  • For sec-core (Python): Ruff format and pytest pass
  • For skill: Skill directory structure is valid and shell scripts pass syntax check
  • For sight: cargo clippy -- -D warnings and cargo fmt --check pass
  • For tokenless: cargo clippy -- -D warnings and cargo fmt --check pass
  • Lock files are up to date (package-lock.json / Cargo.lock)

Testing

Local checks:

bash -n scripts/anolisa-for-openclaw
bash -n src/agent-sec-core/adapters/openclaw/scripts/install.sh
bash -n src/agent-sec-core/adapters/openclaw/scripts/uninstall.sh
bash -n src/os-skills/adapters/openclaw/scripts/install.sh
bash -n src/os-skills/adapters/openclaw/scripts/uninstall.sh
bash -n src/ws-ckpt/adapters/openclaw/scripts/install.sh
bash -n src/ws-ckpt/adapters/openclaw/scripts/uninstall.sh
bash -n src/tokenless/adapters/tokenless/openclaw/scripts/install.sh
bash -n src/tokenless/adapters/tokenless/openclaw/scripts/uninstall.sh

Dry-run checks:

./scripts/anolisa-for-openclaw --help
./scripts/anolisa-for-openclaw --status
./scripts/anolisa-for-openclaw --dry-run --mode recommended
./scripts/anolisa-for-openclaw --dry-run --component sec-core
./scripts/anolisa-for-openclaw --dry-run --uninstall --component tokenless

Expected OpenClaw state after install:

~/.openclaw/skills/ws-ckpt/SKILL.md
~/.openclaw/skills/code-scanner/SKILL.md
~/.openclaw/skills/prompt-scanner/SKILL.md
~/.openclaw/skills/skill-ledger/SKILL.md

Expected OpenClaw plugins:

tokenless-openclaw
agent-sec

Additional Notes

Review focus:

  • Whether scripts/anolisa-for-openclaw is clearly decoupled from
    scripts/build-all.sh.
  • Whether adapter discovery order is reasonable for source, user install, system
    install, and staged target output.
  • Whether each component owns its OpenClaw install/uninstall logic.
  • Whether the script is suitable as a future curl-based OpenClaw integration
    entry.

@kongche-jbw kongche-jbw self-assigned this May 18, 2026
@kongche-jbw kongche-jbw force-pushed the scripts/anolisa-for-openclaw branch 3 times, most recently from 038d877 to 748e34f Compare May 25, 2026 02:42
@kongche-jbw kongche-jbw force-pushed the scripts/anolisa-for-openclaw branch from 748e34f to d43b80d Compare May 25, 2026 04:18
@kongche-jbw kongche-jbw force-pushed the scripts/anolisa-for-openclaw branch 2 times, most recently from 5064c90 to dbccd5b Compare May 25, 2026 06:31
@kongche-jbw kongche-jbw force-pushed the scripts/anolisa-for-openclaw branch from dbccd5b to 06c9a63 Compare May 25, 2026 06:32
@kongche-jbw kongche-jbw marked this pull request as ready for review May 25, 2026 07:31
RemindD
RemindD previously approved these changes May 25, 2026
- Package OpenClaw adapters for sec-core and os-skills RPM installs
- Move sec-core adapter staging back into its Makefile
- Prevent source updates from checking out refs unless explicitly allowed
- Respect custom OPENCLAW_HOME across adapter install and status checks
- Parse adapter manifest actions with jq or python3 instead of loose sed
Copy link
Copy Markdown
Collaborator

@Forrest-ly Forrest-ly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kongche-jbw kongche-jbw merged commit 3b7168d into alibaba:main May 26, 2026
14 checks passed
shiloong added a commit to shiloong/anolisa that referenced this pull request May 27, 2026
…oid double nesting

When OPENCLAW_HOME is explicitly set (even to its default
$HOME/.openclaw), the openclaw CLI nests .openclaw/ inside
OPENCLAW_HOME, creating a ~/.openclaw/.openclaw/ double path.
This broke plugin discovery — openclaw plugins list could not find
tokenless-openclaw after install.

Fix: env -u OPENCLAW_HOME on all CLI invocations (install/detect/
uninstall), letting the CLI resolve ~/.openclaw/extensions/ on its
own. OPENCLAW_HOME variable is retained for directory checks and PATH
resolution in detect.sh — only unset for the CLI calls.

Introduced by commit 3b7168d (feat(scripts): alibaba#549) which replaced
env -u OPENCLAW_HOME with OPENCLAW_HOME="${OPENCLAW_HOME%/}" across
all three scripts.

Signed-off-by: Shile Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants