Skip to content

Consolidate reviewed script and CLI primitives #8292

Closed

Description

@jyaunches

Objective

Use one reviewed implementation for repeated script and CLI mechanics.

Sequential PRs

  • Share reviewed npm package utilities across bundled-npm scripts.
  • Share the corporate-CA runtime shell block between OpenClaw and Hermes entrypoints.
  • Use one service-port catalog and validator.
  • Use one permissive three-part version comparator for equivalent callers.
  • Use one local inference-adapter logger factory.

Expected combined net reduction: 405–635 LOC.

Acceptance criteria

  • Package and corporate-CA checks fail closed as before.
  • The shell helper is copied read-only into both images through the existing scripts/lib pattern.
  • Port error text and exclusions remain contract-compatible.
  • Strict installer version semantics remain separate.
  • Adapter-specific authentication and transport logic remain local.
  • Each PR has a negative net LOC delta.

Validation

Run bundled-npm patch, corporate-CA, image-layout, port, and adapter tests, plus ShellCheck and repository checks.

Review

The npm-package and corporate-CA PRs require focused security review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: architecturearea: cli

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions