[{"data":1,"prerenderedAt":541},["ShallowReactive",2],{"navigation":3,"doc-/go-agent-and-cli":217,"docs-all-paths":488},[4,19,39,63,87,111,127,195,211],{"title":5,"path":6,"stem":7,"children":8},"Welcome","/welcome","01.welcome",[9,11,15],{"title":5,"path":6,"stem":10},"01.welcome/index",{"title":12,"path":13,"stem":14},"Astar とは（5分）","/welcome/product-in-5-min","01.welcome/01.product-in-5-min",{"title":16,"path":17,"stem":18},"事業文脈","/welcome/business-context","01.welcome/02.business-context",{"title":20,"path":21,"stem":22,"children":23},"Getting Started","/getting-started","02.getting-started",[24,27,31,35],{"title":25,"path":21,"stem":26},"はじめかた","02.getting-started/index",{"title":28,"path":29,"stem":30},"リポジトリ取得と環境構築","/getting-started/repo-setup","02.getting-started/01.repo-setup",{"title":32,"path":33,"stem":34},"日々の開発ループ","/getting-started/dev-loop","02.getting-started/02.dev-loop",{"title":36,"path":37,"stem":38},"検証の 4 層","/getting-started/verification-tiers","02.getting-started/03.verification-tiers",{"title":40,"path":41,"stem":42,"children":43},"Architecture","/architecture","03.architecture",[44,47,51,55,59],{"title":45,"path":41,"stem":46},"アーキテクチャ","03.architecture/index",{"title":48,"path":49,"stem":50},"マルチテナンシーと RLS","/architecture/multi-tenancy-rls","03.architecture/01.multi-tenancy-rls",{"title":52,"path":53,"stem":54},"認可モデル","/architecture/authorization","03.architecture/02.authorization",{"title":56,"path":57,"stem":58},"AI サブシステム","/architecture/ai-subsystem","03.architecture/03.ai-subsystem",{"title":60,"path":61,"stem":62},"データモデル","/architecture/data-model","03.architecture/04.data-model",{"title":64,"path":65,"stem":66,"children":67},"Backend","/backend","04.backend",[68,71,75,79,83],{"title":69,"path":65,"stem":70},"バックエンド","04.backend/index",{"title":72,"path":73,"stem":74},"層構造","/backend/layering","04.backend/01.layering",{"title":76,"path":77,"stem":78},"規約","/backend/conventions","04.backend/02.conventions",{"title":80,"path":81,"stem":82},"テスト","/backend/testing","04.backend/03.testing",{"title":84,"path":85,"stem":86},"マイグレーション","/backend/migrations","04.backend/04.migrations",{"title":88,"path":89,"stem":90,"children":91},"Frontend","/frontend","05.frontend",[92,95,99,103,107],{"title":93,"path":89,"stem":94},"フロントエンド","05.frontend/index",{"title":96,"path":97,"stem":98},"モジュール内部構造","/frontend/module-anatomy","05.frontend/01.module-anatomy",{"title":100,"path":101,"stem":102},"API アクセスの一本道","/frontend/api-access-chain","05.frontend/02.api-access-chain",{"title":104,"path":105,"stem":106},"i18n","/frontend/i18n","05.frontend/03.i18n",{"title":108,"path":109,"stem":110},"デザインシステム","/frontend/design-system","05.frontend/04.design-system",{"title":112,"path":113,"stem":114,"children":115},"Go Agent And Cli","/go-agent-and-cli","06.go-agent-and-cli",[116,119,123],{"title":117,"path":113,"stem":118},"Go agent と CLI","06.go-agent-and-cli/index",{"title":120,"path":121,"stem":122},"Go agent","/go-agent-and-cli/go-agent","06.go-agent-and-cli/01.go-agent",{"title":124,"path":125,"stem":126},"CLI","/go-agent-and-cli/cli","06.go-agent-and-cli/02.cli",{"title":128,"path":129,"stem":130,"children":131},"Modules","/modules","07.modules",[132,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191],{"title":133,"path":129,"stem":134},"モジュール","07.modules/index",{"title":136,"path":137,"stem":138},"テーブル","/modules/table","07.modules/01.table",{"title":140,"path":141,"stem":142},"ドキュメントツリー","/modules/document","07.modules/02.document",{"title":144,"path":145,"stem":146},"AIチャット","/modules/ai","07.modules/03.ai",{"title":148,"path":149,"stem":150},"認証・権限","/modules/auth","07.modules/04.auth",{"title":152,"path":153,"stem":154},"AI取込","/modules/organize","07.modules/05.organize",{"title":156,"path":157,"stem":158},"ストレージ","/modules/storage","07.modules/06.storage",{"title":160,"path":161,"stem":162},"NAS同期","/modules/sync","07.modules/07.sync",{"title":164,"path":165,"stem":166},"ワークスペース","/modules/workspace","07.modules/08.workspace",{"title":168,"path":169,"stem":170},"テナントとメンバーシップ","/modules/tenant-membership","07.modules/09.tenant-membership",{"title":172,"path":173,"stem":174},"検索","/modules/search","07.modules/10.search",{"title":176,"path":177,"stem":178},"表示ビュー","/modules/display","07.modules/11.display",{"title":180,"path":181,"stem":182},"テンプレート","/modules/template","07.modules/12.template",{"title":184,"path":185,"stem":186},"メール","/modules/mail","07.modules/13.mail",{"title":188,"path":189,"stem":190},"電話","/modules/phone","07.modules/14.phone",{"title":192,"path":193,"stem":194},"リアルタイム","/modules/realtime","07.modules/15.realtime",{"title":196,"path":197,"stem":198,"children":199},"Infra And Deploy","/infra-and-deploy","08.infra-and-deploy",[200,203,207],{"title":201,"path":197,"stem":202},"インフラとデプロイ","08.infra-and-deploy/index",{"title":204,"path":205,"stem":206},"環境の種類","/infra-and-deploy/environments","08.infra-and-deploy/01.environments",{"title":208,"path":209,"stem":210},"セルフホスト構成","/infra-and-deploy/self-host","08.infra-and-deploy/02.self-host",{"title":212,"path":213,"stem":214,"children":215},"docs-map","/docs-map","09.docs-map/index",[216],{"title":212,"path":213,"stem":214},{"id":218,"title":117,"body":219,"description":482,"extension":483,"meta":484,"navigation":485,"path":113,"seo":486,"stem":118,"__hash__":487},"docs/06.go-agent-and-cli/index.md",{"type":220,"value":221,"toc":475},"minimark",[222,226,235,327,331,364,372,375,437,458,461],[223,224,117],"h1",{"id":225},"go-agent-と-cli",[227,228,229,230,234],"p",{},"Astar には Kotlin バックエンド・Nuxt フロントエンドとは別に、",[231,232,233],"strong",{},"Go で書かれた 2 つの独立した成果物","があります。混同しやすいので、まず違いを押さえてください。",[236,237,238,258],"table",{},[239,240,241],"thead",{},[242,243,244,247,253],"tr",{},[245,246],"th",{},[245,248,249],{},[250,251,252],"code",{},"agent/",[245,254,255],{},[250,256,257],{},"cli/",[259,260,261,273,288,299,313],"tbody",{},[242,262,263,267,270],{},[264,265,266],"td",{},"実行場所",[264,268,269],{},"顧客の NAS / PC（常駐プロセス）",[264,271,272],{},"エンジニア・事務員の端末（都度実行するコマンド）",[242,274,275,278,283],{},[264,276,277],{},"バイナリ名",[264,279,280],{},[250,281,282],{},"astar-agent",[264,284,285],{},[250,286,287],{},"astar",[242,289,290,293,296],{},[264,291,292],{},"役割",[264,294,295],{},"ファイルサーバーと Astar backend を WebSocket でリアルタイム同期する",[264,297,298],{},"backend の Tool Router を叩く薄いターミナルクライアント",[242,300,301,304,307],{},[264,302,303],{},"通信",[264,305,306],{},"常時接続の WSS（outbound only）",[264,308,309,312],{},[250,310,311],{},"POST /api/v1/cli"," への都度リクエスト",[242,314,315,318,323],{},[264,316,317],{},"対象読者",[264,319,320],{},[321,322,120],"a",{"href":121},[264,324,325],{},[321,326,124],{"href":125},[328,329,330],"h2",{"id":330},"両者の関係",[227,332,333,335,336,338,339,342,343,346,347,352,353,356,357,359,360,363],{},[250,334,257],{}," は ",[250,337,252],{}," に依存しています。",[250,340,341],{},"astar mount"," / ",[250,344,345],{},"astar unmount"," サブコマンドは CLI 自身が FUSE マウントを実装するのではなく、",[231,348,349,351],{},[250,350,282],{}," バイナリを exec 委譲で呼び出す","設計です（",[250,354,355],{},"cli/internal/agentbinary/agentbinary.go","）。CLI は同じディレクトリに置かれた ",[250,358,282],{}," を優先的に探し、なければ ",[250,361,362],{},"$PATH"," にフォールバックします。",[227,365,366,367,335,369,371],{},"逆方向の依存はありません。",[250,368,252],{},[250,370,257],{}," を知りません。NAS 同期そのものは CLI なしで完結します。",[328,373,374],{"id":374},"配布経路",[376,377,378,394],"ul",{},[379,380,381,385,386,389,390,393],"li",{},[231,382,383],{},[250,384,252],{},": Docker Compose（Synology/QNAP 向け）、単体バイナリダウンロード、Linux ワンライナーインストーラの 3 経路。いずれも自己更新機能（",[250,387,388],{},"internal/updater/","）を持ち、",[250,391,392],{},"version.json"," を定期ポーリングして新バージョンがあれば自動置換・再起動する。",[379,395,396,400,401,404,405,407,408,413,414,417,418,420,421,423,424,426,427,342,430,433,434,436],{},[231,397,398],{},[250,399,257],{},": ",[250,402,403],{},"cli/scripts/install-cli.sh"," が ",[250,406,287],{}," 本体に加えて ",[231,409,410,412],{},[250,411,282],{}," を同梱インストール","する（",[250,415,416],{},"--no-agent"," で skip 可）。同じディレクトリに ",[250,419,287],{}," と ",[250,422,282],{}," を揃えることで ",[250,425,341],{}," の exec 委譲が解決できる。インストーラは同時に Claude Code / Codex 向けの skill ファイル（",[250,428,429],{},"SKILL.md.claude",[250,431,432],{},"SKILL.md.codex","）もダウンロードし、ローカル AI エージェントに ",[250,435,287],{}," コマンドの使い方を知らせる。",[438,439,441],"callout",{"type":440},"info",[227,442,443,420,445,447,448,342,450,453,454,457],{},[250,444,252],{},[250,446,257],{}," はどちらも Go module が別（",[250,449,282],{},[250,451,452],{},"astar-cli","）で、",[250,455,456],{},"go.mod"," も別々です。同じ Go ツールチェーンを使いますが、依存関係を共有しない独立したビルド単位です。",[328,459,460],{"id":460},"次に読む",[376,462,463,469],{},[379,464,465,468],{},[321,466,467],{"href":121},"Go agent — NAS 同期エージェント"," — watcher / websocket / webrtc など主要パッケージの役割",[379,470,471,474],{},[321,472,473],{"href":125},"astar CLI"," — 何ができるか、backend とどう繋がるか",{"title":476,"searchDepth":477,"depth":477,"links":478},"",2,[479,480,481],{"id":330,"depth":477,"text":330},{"id":374,"depth":477,"text":374},{"id":460,"depth":477,"text":460},"NAS同期エージェント (agent/) と astar CLI (cli/) という Go 製の 2 成果物の位置づけ、両者の関係、配布経路を最初に押さえる。","md",{},{"title":117},{"title":117,"description":482},"35pRwc3X3r7sGn1nFf8XfHKYjQnAj4_qtUgl0sSsYxg",[489,491,492,494,495,496,497,498,499,500,501,502,504,505,506,507,508,510,511,512,513,514,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,536,537,538,539],{"path":13,"title":490},"Astar とは何か（5分で）",{"path":17,"title":16},{"path":6,"title":493},"ようこそ",{"path":29,"title":28},{"path":33,"title":32},{"path":37,"title":36},{"path":21,"title":25},{"path":49,"title":48},{"path":53,"title":52},{"path":57,"title":56},{"path":61,"title":60},{"path":41,"title":503},"システムアーキテクチャ",{"path":73,"title":72},{"path":77,"title":76},{"path":81,"title":80},{"path":85,"title":84},{"path":65,"title":509},"バックエンドガイド",{"path":97,"title":96},{"path":101,"title":100},{"path":105,"title":104},{"path":109,"title":108},{"path":89,"title":515},"フロントエンドガイド",{"path":121,"title":467},{"path":125,"title":473},{"path":113,"title":117},{"path":137,"title":136},{"path":141,"title":140},{"path":145,"title":144},{"path":149,"title":148},{"path":153,"title":152},{"path":157,"title":156},{"path":161,"title":160},{"path":165,"title":164},{"path":169,"title":168},{"path":173,"title":172},{"path":177,"title":176},{"path":181,"title":180},{"path":185,"title":184},{"path":189,"title":188},{"path":193,"title":192},{"path":129,"title":535},"モジュール索引",{"path":205,"title":204},{"path":209,"title":208},{"path":197,"title":201},{"path":213,"title":540},"docs/ 地図",1785452454153]