MO

mininglamp-oss/octo-cli

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

920 stars 品質 78 トレンド 42Apache-2.0

AIエージェントボット向けのメタデータ駆動CLI — 7ドメインにわたる48回の操作、構造化されたJSONエンベロープI/O、インタラクティブプロンプトゼロ。

概要

octo-cli は、エージェントランタイム(OpenClaw、Claude Code など)からexec経由で呼び出すために設計された、薄いシングルバイナリのREST クライアントのコマンドラインインターフェースです。すべての呼び出しはstdoutで構造化されたJSONエンベロープを出力します。エラーは決定的な分類を持つstderrに送られます。インタラクティブなI/Oはありません。 octo-cli は です。コマンドツリーは起動時にOpenAPI 3.xの仕様がバイナリに埋め込まれた自動登録されます。エンドポイントの追加や変更は、コードではなく仕様を編集することを意味します。 - すべてのビジネスロジックはバックエンドサービス(matters、dmworkim)に存在します。CLIはトランスポート、検証、フォーマットを担当します。- 各操作は完全なモジュール限定パスを宣言し、OCTO_API_BASE_URLを使用します。- Internal/cmdutil。Factoryは依存コンテナです。可変のパッケージレベルのグローバルは使いません。テストはConfigFunc / CredentialFunc / ClientFunc / RegistryFuncを通じてスタブを注入します。- アイデンティティ、データ、ページ、レート制限メタデータを備えた安定したJSONエンベロープ;小さな固定エラー分類法。

概要(AI 翻訳)

octo-cliはOctoエコシステムのコマンドラインインターフェースです。薄い、 AIエージェントボット向けに設計されたシングルバイナリRESTクライアントで、exec経由で呼び出し可能です。 エージェントランタイム(OpenClaw、Claude Codeなど)から。すべての呼び出し stdoutで構造化されたJSONエンベロープを出力します。エラーはstderrに送られます。 決定論的分類法です。インタラクティブなI/Oはありません。

建築

octo-cli はメタデータ駆動です。コマンドツリーは起動時に自動登録されます OpenAPI 3.xの仕様がバイナリに埋め込まれている。エンドポイントの追加または変更 コードではなく仕様書の編集を意味します。

主な特性:

  • シンクライアント。 すべてのビジネスロジックはバックエンドサービス(重要事項、 dmworkim)。CLIはトランスポート、検証、フォーマットです。
  • 統一ゲートウェイルーティング。 各操作は完了を宣言します モジュール限定パスを使用し、OCTO_API_BASE_URLを使用します。
  • ファクトリーDI。 internal/cmdutil.Factoryは依存コンテナです。 可変パッケージレベルのグローバルはなし;テストは[[T4]までスタブを注入します。 / CredentialFunc / ClientFunc / RegistryFunc。
  • エージェントファースト出力。 識別子、データを備えた安定したJSONエンベロープ ページ割り当てやレート制限メタデータ、小さな固定誤りの分類法です。

ドメイン

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

octo-cli

octo-cli is the command-line interface for the Octo ecosystem — a thin, single-binary REST client designed for AI Agent Bots to call via exec from agent runtimes (OpenClaw, Claude Code, and similar). Every invocation emits a structured JSON envelope on stdout; errors go to stderr with a deterministic taxonomy. There is no interactive I/O.

Architecture

octo-cli is metadata-driven. The command tree is auto-registered at startup from OpenAPI 3.x specs embedded into the binary. Adding or changing an endpoint means editing a spec, not the code.

OpenAPI specs  ──►  Registry  ──►  Service Engine  ──►  Factory  ──►  Client  ──►  Output
(embedded)         (parsed)       (cobra commands)    (DI)          (HTTP)       (envelope)

Key properties:

  • Thin client. All business logic lives in backend services (matters, dmworkim). The CLI is transport, validation, and formatting.
  • Unified gateway routing. Each operation declares its complete module-qualified path and uses OCTO_API_BASE_URL.
  • Factory DI. internal/cmdutil.Factory is the dependency container. No mutable package-level globals; tests inject stubs through ConfigFunc / CredentialFunc / ClientFunc / RegistryFunc.
  • Agent-first output. A stable JSON envelope with identity, data, pagination, and rate-limit metadata; a small fixed error taxonomy.

Domains

Domain Ops Purpose
docs 45 Documents, spreadsheets, whiteboards & PPT — lifecycle, full-text search, body content, worksheet discovery and scoped/paged reads, sheet edits (atomic replace, conditional formats, split/deduplication), board scenes, members, comments, versions, attachments
html 22 Interactive HTML documents (octo-doc, separate backend from docs) — read source with its version, publish immutable versions, drafts, per-doc share codes & per-uid grants, media assets, inline comments, agent element read/replace
drive 46 Network drive — spaces & members, folder/file tree, full-text search, single-part and resumable-style multipart blob upload, signed download, online-document mounts, share links, invites, IM-attachment transfer. Six hand-written composites bring the command tree to 49 leaves
matter 14 Todos/tasks — temporarily withheld while the backend API stabilizes
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add mininglamp-oss/octo-cli
MCP 初心者?mcpskill.org のガイドから始めましょう →