JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56
  • Score
    100M100P100Q111259F
  • License MIT

Shared base classes and utilities for AOS Harness platform adapters.

Package Exports

  • @aos-harness/adapter-shared
  • @aos-harness/adapter-shared/adapter-contract.ts
  • @aos-harness/adapter-shared/agent-discovery.ts
  • @aos-harness/adapter-shared/base-agent-runtime.ts
  • @aos-harness/adapter-shared/base-event-bus.ts
  • @aos-harness/adapter-shared/base-workflow.ts
  • @aos-harness/adapter-shared/compose.ts
  • @aos-harness/adapter-shared/index.ts
  • @aos-harness/adapter-shared/terminal-ui.ts
  • @aos-harness/adapter-shared/tool-policy.ts
  • @aos-harness/adapter-shared/types.ts

Readme

@aos-harness/adapter-shared

Shared base classes and utilities used by every AOS Harness platform adapter (Claude Code, Codex, Gemini, Pi).

Re-exports common types (AgentRuntime, EventBus, etc.) and provides composition helpers (composeAdapter, BaseEventBus, BaseWorkflow) so each adapter only needs to implement platform-specific runtime logic.

Current shared runtime behavior includes:

  • adapter-scoped model resolution
  • optional vendor-default model selection
  • inline context-file prompt composition for CLIs that no longer accept direct file flags
  • session-id persistence for resume-capable adapters

Part of the AOS Harness monorepo. Most users install aos-harness (the CLI) instead of consuming this package directly.

Requirements

  • Bun ≥ 1.0.0

License

MIT