mirror of
https://github.com/zenlm/zen-code-docs.git
synced 2026-10-30 14:58:40 +00:00
27 lines
75 KiB
Plaintext
27 lines
75 KiB
Plaintext
3:I[4707,[],""]
|
|
6:I[36423,[],""]
|
|
8:I[78400,["3185","static/chunks/app/layout-38b548b4f4d27f80.js"],"FontLoader"]
|
|
4:["lang","ja","d"]
|
|
5:["mdxPath","tools/shell","oc"]
|
|
0:["0y8u-WGJo2VFWAF7bkrdx",[[["",{"children":[["lang","ja","d"],{"children":[["mdxPath","tools/shell","oc"],{"children":["__PAGE__?{\"lang\":\"ja\",\"mdxPath\":[\"tools\",\"shell\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":[["lang","ja","d"],{"children":[["mdxPath","tools/shell","oc"],{"children":["__PAGE__",{},[["$L1","$L2",[["$","link","0",{"rel":"stylesheet","href":"/qwen-code-docs/_next/static/css/04d76539cc2c4ebd.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children","$5","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,"$L7"],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/qwen-code-docs/_next/static/css/7fba7395046b8eaa.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$undefined",["$","style",null,{"children":":root {\n --nextra-primary-hue: 248deg;\n --nextra-primary-saturation: 74%;\n --nextra-primary-lightness: 45%;\n --nextra-bg: 250,250,250;\n --nextra-content-width: 90rem;\n}\n.dark {\n --nextra-primary-hue: 248deg;\n --nextra-primary-saturation: 74%;\n --nextra-primary-lightness: 55%;\n --nextra-bg: 17,17,17;\n}\n::selection {\n background: hsla(var(--nextra-primary-hue),var(--nextra-primary-saturation),var(--nextra-primary-lightness),.3);\n}\nhtml {\n background: rgb(var(--nextra-bg));\n}"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"rgb(250,250,250)"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"rgb(17,17,17)"}],"$undefined"]}],["$","body",null,{"children":[["$","$L8",null,{}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]]}]]}]],null],null],["$L9",null]]]]
|
|
a:I[54108,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ThemeConfigProvider"]
|
|
b:I[16016,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"LastUpdated"]
|
|
c:I[30763,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"Search"]
|
|
d:I[25922,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ThemeProvider"]
|
|
e:I[94328,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"SkipNavLink"]
|
|
f:I[17691,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ConfigProvider"]
|
|
10:I[72972,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],""]
|
|
11:I[88212,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ClientNavbar"]
|
|
13:I[32594,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"LanguageDropdown"]
|
|
14:I[57191,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"MobileNav"]
|
|
15:I[18960,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"TOCProvider"]
|
|
16:"$Sreact.fragment"
|
|
17:I[57191,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"Sidebar"]
|
|
18:I[98270,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ClientWrapper"]
|
|
19:I[56099,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"HeadingAnchor"]
|
|
1a:I[98451,["5501","static/chunks/c16f53c3-b998f97655e65347.js","1105","static/chunks/1105-e07e82095c5c7b4a.js","5524","static/chunks/5524-d228bcaedae4ecb3.js","2770","static/chunks/2770-e894e62890be5e00.js","1084","static/chunks/app/%5Blang%5D/layout-11fe9b7075b678bf.js"],"ToggleWordWrapButton"]
|
|
12:T481,M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z7:["$","$La",null,{"value":{"children":"$undefined","darkMode":true,"docsRepositoryBase":"https://github.com/QwenLM/qwen-code/blob/main/docs","editLink":"Edit this page","feedback":{"content":"Question? Give us feedback","labels":"feedback"},"i18n":[{"locale":"en","name":"English"},{"locale":"zh","name":"中文"},{"locale":"de","name":"Deutsch"},{"locale":"fr","name":"Français"},{"locale":"ru","name":"Русский"},{"locale":"ja","name":"日本語"}],"lastUpdated":["$","$Lb",null,{}],"navigation":{"next":true,"prev":true},"search":["$","$Lc",null,{}],"sidebar":{"defaultMenuCollapseLevel":1,"defaultOpen":true,"toggleButton":true,"autoCollapse":true},"themeSwitch":{"dark":"Dark","light":"Light","system":"System"},"toc":{"backToTop":"Scroll to top","float":true,"title":"On This Page"}},"children":["$","$Ld",null,{"attribute":"class","defaultTheme":"light","disableTransitionOnChange":true,"storageKey":"theme","children":[["$","$Le",null,{}],"$undefined",["$","$Lf",null,{"pageMap":[{"data":{"index":{"title":"Qwen Code ドキュメントへようこそ"},"deployment":{"title":"実行とデプロイ"},"architecture":{"title":"アーキテクチャ概要"},"cli":{"title":"CLI 使用ガイド"},"core":{"title":"コア詳細"},"tools":{"title":"ツールコレクション"},"checkpointing":{"title":"チェックポイント機能"},"extension":{"title":"拡張開発"},"ide-integration":{"title":"IDE 統合"},"telemetry":{"title":"可観測性"},"examples":{"title":"サンプルコード"},"npm":{"title":"パッケージ管理"},"gemini-ignore":{"title":"無視ファイル設定"},"integration-tests":{"title":"統合テスト"},"keyboard-shortcuts":{"title":"キーボードショートカット"},"sandbox":{"title":"サンドボックス機構"},"issue-and-pr-automation":{"title":"自動化処理"},"troubleshooting":{"title":"トラブルシューティング"},"tos-privacy":{"title":"利用規約とプライバシー"},"Uninstall":{"title":"アンインストールガイド"}}},{"name":"index","route":"/ja","frontMatter":{"title":"Qwen Code ドキュメントへようこそ","filePath":"content/ja/index.md","timestamp":1789666354000},"title":"Qwen Code ドキュメントへようこそ"},{"name":"deployment","route":"/ja/deployment","frontMatter":{"title":"Qwen Code の実行とデプロイ","filePath":"content/ja/deployment.md","timestamp":1789666354000},"title":"実行とデプロイ"},{"name":"architecture","route":"/ja/architecture","frontMatter":{"title":"Qwen Code アーキテクチャ概要","filePath":"content/ja/architecture.md","timestamp":1789666354000},"title":"アーキテクチャ概要"},{"name":"cli","route":"/ja/cli","children":[{"data":{"index":{"title":"CLI 概要"},"commands":{"title":"コマンドリファレンス"},"configuration":{"title":"設定ガイド"},"authentication":{"title":"認証設定"},"openai-auth":{"title":"OpenAI 認証"},"token-caching":{"title":"トークンキャッシュ"},"themes":{"title":"テーマ設定"},"tutorials":{"title":"使用チュートリアル"}}},{"name":"index","route":"/ja/cli","frontMatter":{"title":"Qwen Code CLI","filePath":"content/ja/cli/index.md","timestamp":1789666354000},"title":"CLI 概要"},{"name":"commands","route":"/ja/cli/commands","frontMatter":{"title":"CLI Commands","filePath":"content/ja/cli/commands.md","timestamp":1789666354000},"title":"コマンドリファレンス"},{"name":"configuration","route":"/ja/cli/configuration","frontMatter":{"title":"Qwen Code 設定","filePath":"content/ja/cli/configuration.md","timestamp":1789666354000},"title":"設定ガイド"},{"name":"authentication","route":"/ja/cli/authentication","frontMatter":{"title":"認証の設定","filePath":"content/ja/cli/authentication.md","timestamp":1789666354000},"title":"認証設定"},{"name":"openai-auth","route":"/ja/cli/openai-auth","frontMatter":{"title":"OpenAI 認証","filePath":"content/ja/cli/openai-auth.md","timestamp":1789666354000},"title":"OpenAI 認証"},{"name":"token-caching","route":"/ja/cli/token-caching","frontMatter":{"title":"トークンキャッシングとコスト最適化","filePath":"content/ja/cli/token-caching.md","timestamp":1789666354000},"title":"トークンキャッシュ"},{"name":"themes","route":"/ja/cli/themes","frontMatter":{"title":"テーマ","filePath":"content/ja/cli/themes.md","timestamp":1789666354000},"title":"テーマ設定"},{"name":"tutorials","route":"/ja/cli/tutorials","frontMatter":{"title":"チュートリアル","filePath":"content/ja/cli/tutorials.md","timestamp":1789666354000},"title":"使用チュートリアル"},{"name":"welcome-back","route":"/ja/cli/welcome-back","frontMatter":{"title":"Welcome Back 機能","filePath":"content/ja/cli/welcome-back.md","timestamp":1789666354000},"title":"Welcome Back 機能"}],"title":"CLI 使用ガイド"},{"name":"core","route":"/ja/core","children":[{"data":{"index":{"title":"コア概要"},"tools-api":{"title":"ツール API"},"memport":{"title":"メモリインポートプロセッサ"}}},{"name":"index","route":"/ja/core","frontMatter":{"title":"Qwen Code Core","filePath":"content/ja/core/index.md","timestamp":1789666354000},"title":"コア概要"},{"name":"tools-api","route":"/ja/core/tools-api","frontMatter":{"title":"Qwen Code Core: Tools API","filePath":"content/ja/core/tools-api.md","timestamp":1789666354000},"title":"ツール API"},{"name":"memport","route":"/ja/core/memport","frontMatter":{"title":"Memory Import Processor","filePath":"content/ja/core/memport.md","timestamp":1789666354000},"title":"メモリインポートプロセッサ"}],"title":"コア詳細"},{"name":"tools","route":"/ja/tools","children":[{"data":{"index":{"title":"ツール概要"},"file-system":{"title":"ファイルシステムツール"},"multi-file":{"title":"マルチファイル読み取りツール"},"shell":{"title":"シェルツール"},"web-fetch":{"title":"Web フェッチツール"},"web-search":{"title":"Web 検索ツール"},"memory":{"title":"メモリツール"},"todo-write":{"title":"Todo 書き込みツール"},"mcp-server":{"title":"MCP サーバー"}}},{"name":"index","route":"/ja/tools","frontMatter":{"title":"Qwen Code ツール","filePath":"content/ja/tools/index.md","timestamp":1789666354000},"title":"ツール概要"},{"name":"file-system","route":"/ja/tools/file-system","frontMatter":{"title":"Qwen Code ファイルシステムツール","filePath":"content/ja/tools/file-system.md","timestamp":1789666354000},"title":"ファイルシステムツール"},{"name":"multi-file","route":"/ja/tools/multi-file","frontMatter":{"title":"Multi File Read Tool (read_many_files)","filePath":"content/ja/tools/multi-file.md","timestamp":1789666354000},"title":"マルチファイル読み取りツール"},{"name":"shell","route":"/ja/tools/shell","frontMatter":{"title":"Shell ツール (run_shell_command)","filePath":"content/ja/tools/shell.md","timestamp":1789666354000},"title":"シェルツール"},{"name":"web-fetch","route":"/ja/tools/web-fetch","frontMatter":{"title":"Web Fetch Tool (web_fetch)","filePath":"content/ja/tools/web-fetch.md","timestamp":1789666354000},"title":"Web フェッチツール"},{"name":"web-search","route":"/ja/tools/web-search","frontMatter":{"title":"Web Search Tool (web_search)","filePath":"content/ja/tools/web-search.md","timestamp":1789666354000},"title":"Web 検索ツール"},{"name":"memory","route":"/ja/tools/memory","frontMatter":{"title":"Memory Tool (save_memory)","filePath":"content/ja/tools/memory.md","timestamp":1789666354000},"title":"メモリツール"},{"name":"todo-write","route":"/ja/tools/todo-write","frontMatter":{"title":"Todo Write Tool (todo_write)","filePath":"content/ja/tools/todo-write.md","timestamp":1789666354000},"title":"Todo 書き込みツール"},{"name":"mcp-server","route":"/ja/tools/mcp-server","frontMatter":{"title":"Qwen Code での MCP サーバー","filePath":"content/ja/tools/mcp-server.md","timestamp":1789666354000},"title":"MCP サーバー"}],"title":"ツールコレクション"},{"name":"checkpointing","route":"/ja/checkpointing","frontMatter":{"title":"Checkpointing","filePath":"content/ja/checkpointing.md","timestamp":1789666354000},"title":"チェックポイント機能"},{"name":"extension","route":"/ja/extension","frontMatter":{"title":"Qwen Code Extensions","filePath":"content/ja/extension.md","timestamp":1789666354000},"title":"拡張開発"},{"name":"ide-integration","route":"/ja/ide-integration","frontMatter":{"title":"IDE Integration","filePath":"content/ja/ide-integration.md","timestamp":1789666354000},"title":"IDE 統合"},{"name":"telemetry","route":"/ja/telemetry","frontMatter":{"title":"Qwen Code 可観測性ガイド","filePath":"content/ja/telemetry.md","timestamp":1789666354000},"title":"可観測性"},{"name":"examples","route":"/ja/examples","children":[{"data":{"proxy-script":{"title":"プロキシスクリプト例"}}},{"name":"proxy-script","route":"/ja/examples/proxy-script","frontMatter":{"title":"Proxy スクリプトの例","filePath":"content/ja/examples/proxy-script.md","timestamp":1789666354000},"title":"プロキシスクリプト例"}],"title":"サンプルコード"},{"name":"npm","route":"/ja/npm","frontMatter":{"title":"パッケージ概要","filePath":"content/ja/npm.md","timestamp":1789666354000},"title":"パッケージ管理"},{"name":"gemini-ignore","route":"/ja/gemini-ignore","frontMatter":{"title":"ファイルの無視","filePath":"content/ja/gemini-ignore.md","timestamp":1789666354000},"title":"無視ファイル設定"},{"name":"integration-tests","route":"/ja/integration-tests","frontMatter":{"title":"結合テスト","filePath":"content/ja/integration-tests.md","timestamp":1789666354000},"title":"統合テスト"},{"name":"keyboard-shortcuts","route":"/ja/keyboard-shortcuts","frontMatter":{"title":"Qwen Code キーボードショートカット","filePath":"content/ja/keyboard-shortcuts.md","timestamp":1789666354000},"title":"キーボードショートカット"},{"name":"sandbox","route":"/ja/sandbox","frontMatter":{"title":"Qwen Code におけるサンドボックス","filePath":"content/ja/sandbox.md","timestamp":1789666354000},"title":"サンドボックス機構"},{"name":"issue-and-pr-automation","route":"/ja/issue-and-pr-automation","frontMatter":{"title":"自動化とトリアージプロセス","filePath":"content/ja/issue-and-pr-automation.md","timestamp":1789666354000},"title":"自動化処理"},{"name":"troubleshooting","route":"/ja/troubleshooting","frontMatter":{"title":"トラブルシューティングガイド","filePath":"content/ja/troubleshooting.md","timestamp":1789666354000},"title":"トラブルシューティング"},{"name":"tos-privacy","route":"/ja/tos-privacy","frontMatter":{"title":"Qwen Code: 利用規約およびプライバシー通知","filePath":"content/ja/tos-privacy.md","timestamp":1789666354000},"title":"利用規約とプライバシー"},{"name":"Uninstall","route":"/ja/Uninstall","frontMatter":{"title":"CLIのアンインストール","filePath":"content/ja/Uninstall.md","timestamp":1789666354000},"title":"アンインストールガイド"},{"name":"subagents","route":"/ja/subagents","frontMatter":{"title":"サブエージェント","filePath":"content/ja/subagents.md","timestamp":1789666354000},"title":"サブエージェント"}],"navbar":["$","header",null,{"className":"nextra-navbar x:sticky x:top-0 x:z-30 x:w-full x:bg-transparent x:print:hidden x:max-md:[.nextra-banner:not([class$=hidden])~&]:top-(--nextra-banner-height)","children":[["$","div",null,{"className":"nextra-navbar-blur x:absolute x:-z-1 x:size-full nextra-border x:border-b x:backdrop-blur-md x:bg-nextra-bg/70"}],["$","nav",null,{"style":{"height":"var(--nextra-navbar-height)"},"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)] x:justify-end","children":[["$","$L10",null,{"href":"/","className":"x:flex x:items-center x:me-auto x:transition-opacity x:focus-visible:nextra-focus x:hover:opacity-75","aria-label":"Home page","children":["$","span",null,{"className":"ms-2 select-none font-extrabold flex items-center","title":"Qwen Code: AI Coding Agent","children":[["$","img",null,{"src":"https://assets.alicdn.com/g/qwenweb/qwen-webui-fe/0.0.191/static/favicon.png","alt":"Qwen Code","width":32,"height":32,"className":"inline-block align-middle mr-2 ","style":{"verticalAlign":"middle"}}],["$","span",null,{"className":"text-[1.3rem] font-normal align-middle mr-1 max-md:hidden","children":"Qwen"}],["$","span",null,{"className":"text-[1.3rem] font-normal align-middle max-md:hidden","children":"Code"}]]}]}],["$","$L11",null,{"className":"","children":[["$","a",null,{"href":"https://github.com/QwenLM/qwen-code","target":"_blank","rel":"noreferrer","children":[["$","svg",null,{"fill":"currentColor","viewBox":"3 3 18 18","height":"24","aria-label":"Project repository","children":["$","path",null,{"d":"$12"}]}],false],"className":"x:focus-visible:nextra-focus"}],"$undefined",["$","$L13",null,{"currentLang":"ja"}]]}]]}]]}],"footer":null,"children":[["$","$L14",null,{}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]]}]]}]}]
|
|
2:["$","div",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width)","sourceCode":"$undefined","children":["$","$L15",null,{"value":[{"value":"概要","id":"概要","depth":2},{"value":"引数","id":"引数","depth":3},{"value":[["$","$16",".0",{"children":["Qwen Code での ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," の使い方"]}]],"id":"qwen-code-での-run_shell_command-の使い方","depth":2},{"value":"必須の Background パラメータ","id":"必須の-background-パラメータ","depth":3},{"value":"バックグラウンド実行 vs フォアグラウンド実行","id":"バックグラウンド実行-vs-フォアグラウンド実行","depth":3},{"value":"実行情報","id":"実行情報","depth":3},{"value":[["$","$16",".0",{"children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," の例"]}]],"id":"run_shell_command-の例","depth":2},{"value":"重要な注意事項","id":"重要な注意事項","depth":2},{"value":"環境変数","id":"環境変数","depth":2},{"value":"コマンド制限","id":"コマンド制限","depth":2},{"value":"コマンド制限の例","id":"コマンド制限の例","depth":3},{"value":[["$","$16",".0",{"children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," のセキュリティに関する注意"]}]],"id":"excludetools-のセキュリティに関する注意","depth":2}],"children":[["$","$L17",null,{}],["$","$L18",null,{"metadata":{"title":"Shell ツール (run_shell_command)","filePath":"content/ja/tools/shell.md","timestamp":1789666354000},"bottomContent":"$undefined","children":[["$","div",null,{"id":"nextra-skip-nav"}],["$","main",null,{"data-pagefind-body":true,"children":[["$","h1",null,{"id":"$undefined","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-bold x:mt-2 x:text-4xl","children":[["Shell ツール (",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}],")"],"$undefined"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["このドキュメントでは、Qwen Code 用の ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," ツールについて説明します。"]}],"\n",["$","h2",null,{"id":"概要","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["概要",["$","$L19",null,{"id":"概要"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," を使用して、下位システムとやり取りしたり、スクリプトを実行したり、コマンドライン操作を実行したりできます。",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," は、指定された shell コマンドを実行します。Windows では、コマンドは ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"cmd.exe /c"}]," で実行されます。他のプラットフォームでは、コマンドは ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"bash -c"}]," で実行されます。"]}],"\n",["$","h3",null,{"id":"引数","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["引数",["$","$L19",null,{"id":"引数"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," は以下の引数を取ります:"]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"command"}]," (string, 必須): 実行する正確な shell コマンド。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"description"}]," (string, 任意): コマンドの目的についての簡単な説明で、ユーザーに表示されます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"directory"}]," (string, 任意): コマンドを実行するディレクトリ(プロジェクトルートからの相対パス)。指定しない場合、コマンドはプロジェクトルートで実行されます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," (boolean, 必須): コマンドをバックグラウンドで実行するかどうか。このパラメータは、コマンド実行モードについて明示的な判断を行うために必須です。開発サーバーやウォッチャー、デーモンなど、継続的に実行し続ける必要があり、他のコマンドの実行をブロックすべきではない長時間実行プロセスに対しては ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"true"}]," を設定します。完了まで待機してから次に進む一時的なコマンドに対しては ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"false"}]," を設定します。"]}],"\n"]}],"\n",["$","h2",null,{"id":"qwen-code-での-run_shell_command-の使い方","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":[["Qwen Code での ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," の使い方"],["$","$L19",null,{"id":"qwen-code-での-run_shell_command-の使い方"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," を使用する際、コマンドはサブプロセスとして実行されます。",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," パラメータを使用するか、コマンドに明示的に ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}]," を追加することで、コマンドをバックグラウンドで実行するかフォアグラウンドで実行するかを制御できます。このツールは、以下を含む実行に関する詳細情報を返します:"]}],"\n",["$","h3",null,{"id":"必須の-background-パラメータ","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["必須の Background パラメータ",["$","$L19",null,{"id":"必須の-background-パラメータ"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," パラメータは、",["$","strong",null,{"children":"すべてのコマンド実行で必須"}],"です。この設計により、LLM(およびユーザー)は各コマンドをバックグラウンドで実行するかフォアグラウンドで実行するかを明示的に判断する必要があり、意図的で予測可能なコマンド実行動作が促進されます。このパラメータを必須とすることで、長時間実行されるプロセスを扱う際に後続の操作をブロックする可能性のある、意図しないフォアグラウンド実行へのフォールバックを回避できます。"]}],"\n",["$","h3",null,{"id":"バックグラウンド実行-vs-フォアグラウンド実行","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["バックグラウンド実行 vs フォアグラウンド実行",["$","$L19",null,{"id":"バックグラウンド実行-vs-フォアグラウンド実行"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"このツールは、明示的な選択に基づいてバックグラウンドとフォアグラウンドの実行を適切に処理します:"}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":["バックグラウンド実行 (",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background: true"}],") を使うケース:"]}]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":["長時間実行される開発サーバー:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm run start"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm run dev"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"yarn dev"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["ビルドウォッチャー:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm run watch"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"webpack --watch"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["データベースサーバー:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"mongod"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"mysql"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"redis-server"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["Webサーバー:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"python -m http.server"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"php -S localhost:8000"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":"手動で停止するまで無期限に実行し続けるコマンド"}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":["フォアグラウンド実行 (",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background: false"}],") を使うケース:"]}]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":["一度限りのコマンド:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"ls"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"cat"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"grep"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["ビルドコマンド:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm run build"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"make"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["インストールコマンド:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm install"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"pip install"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["Git操作:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git commit"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git push"}]]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":["テスト実行:",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm test"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"pytest"}]]}],"\n"]}],"\n",["$","h3",null,{"id":"実行情報","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["実行情報",["$","$L19",null,{"id":"実行情報"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"このツールは、実行に関する詳細情報を返します。含まれる情報は以下の通りです:"}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Command"}],": 実行されたコマンド。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Directory"}],": コマンドが実行されたディレクトリ。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stdout"}],": 標準出力ストリームからの出力。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stderr"}],": 標準エラー ストリームからの出力。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Error"}],": サブプロセスによって報告されたエラー メッセージ。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Exit Code"}],": コマンドの終了コード。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Signal"}],": コマンドがシグナルによって終了された場合のシグナル番号。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Background PIDs"}],": 起動されたバックグラウンド プロセスの PID のリスト。"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"使用方法:"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"Your commands.\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Your description of the command.\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" directory=\"Your execution directory.\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"false"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","strong",null,{"children":"注意:"}]," ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," パラメータは必須であり、すべてのコマンド実行で明示的に指定する必要があります。"]}],"\n",["$","h2",null,{"id":"run_shell_command-の例","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":[[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," の例"],["$","$L19",null,{"id":"run_shell_command-の例"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"カレントディレクトリのファイルを一覧表示:"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"ls -la\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"false"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"特定のディレクトリでスクリプトを実行:"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"./my_script.sh\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" directory=\"scripts\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Run my custom script\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"false"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"バックグラウンドで開発サーバーを起動 (推奨アプローチ):"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"npm run dev\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Start development server in background\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"バックグラウンドでサーバーを起動 (明示的に & を使用した代替方法):"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"npm run dev &\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Start development server in background\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"false"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"フォアグラウンドでビルドコマンドを実行:"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"npm run build\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Build the project\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"false"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"複数のバックグラウンドサービスを起動:"}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run_shell_command(command"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\"docker-compose up\""}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" description=\"Start all services\","}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" is_background="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]]}]}]]}]]}],"\n",["$","h2",null,{"id":"重要な注意事項","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["重要な注意事項",["$","$L19",null,{"id":"重要な注意事項"}]]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"セキュリティ:"}]," 特にユーザー入力から構築されたコマンドを実行する際は、セキュリティ脆弱性を防ぐために注意が必要です。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"インタラクティブなコマンド:"}]," ユーザーの対話入力を必要とするコマンドは避けてください。これによりツールがハングアップする可能性があります。可能であれば非対話フラグを使用してください(例: ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm init -y"}],")。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"エラー処理:"}]," コマンドが正常に実行されたかどうかを判断するには、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stderr"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Error"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Exit Code"}]," フィールドを確認してください。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"バックグラウンドプロセス:"}]," ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background=true"}]," の場合、またはコマンドに ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}]," が含まれている場合、ツールは即座に返却し、プロセスはバックグラウンドで実行を続けます。",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Background PIDs"}]," フィールドにはバックグラウンドプロセスのプロセスIDが含まれます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"バックグラウンド実行の選択:"}]," ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," パラメータは必須であり、実行モードを明示的に制御できます。手動でバックグラウンド実行するためにコマンドに ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}]," を追加することも可能ですが、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," パラメータの指定は依然として必須です。このパラメータにより意図が明確になり、バックグラウンド実行のセットアップを自動的に処理します。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"コマンドの説明:"}]," ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background=true"}]," を使用する場合、コマンドの説明には実行モードを明確に示すための ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"[background]"}]," インジケータが含まれます。"]}],"\n"]}],"\n",["$","h2",null,{"id":"環境変数","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["環境変数",["$","$L19",null,{"id":"環境変数"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," がコマンドを実行する際、サブプロセスの環境に ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"QWEN_CODE=1"}]," という環境変数を設定します。これにより、スクリプトやツールが CLI から実行されているかどうかを検出できます。"]}],"\n",["$","h2",null,{"id":"コマンド制限","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["コマンド制限",["$","$L19",null,{"id":"コマンド制限"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," ツールで実行可能なコマンドを制限するには、設定ファイルの ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," および ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," 設定を使用します。"]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}],": ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," を特定のコマンドセットに制限するには、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," リストに ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command(<command>)"}]," 形式のエントリを追加します。例えば、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"\"coreTools\": [\"run_shell_command(git)\"]"}]," とすると、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}]," コマンドのみが許可されます。一般的な ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," を含めるとワイルドカードとして機能し、明示的にブロックされていないすべてのコマンドが許可されます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}],": 特定のコマンドをブロックするには、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," リストに ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command(<command>)"}]," 形式のエントリを追加します。例えば、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"\"excludeTools\": [\"run_shell_command(rm)\"]"}]," とすると、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"rm"}]," コマンドがブロックされます。"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"検証ロジックは、セキュアかつ柔軟性のある設計になっています:"}],"\n",["$","ol",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-decimal x:ms-6","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"コマンドチェーンの無効化"}],": ツールは自動的に ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&&"}],"、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"||"}],"、または ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":";"}]," でチェーンされたコマンドを分割し、各部分を個別に検証します。チェーンのいずれかの部分が許可されていない場合、コマンド全体がブロックされます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"プレフィックスマッチング"}],": ツールはプレフィックスマッチングを使用します。例えば、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}]," を許可すると、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}]," や ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git log"}]," を実行できます。"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"ブロックリストの優先順位"}],": ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," リストは常に最初にチェックされます。コマンドがブロックされたプレフィックスにマッチする場合、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," で許可されたプレフィックスにマッチしていても拒否されます。"]}],"\n"]}],"\n",["$","h3",null,{"id":"コマンド制限の例","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["コマンド制限の例",["$","$L19",null,{"id":"コマンド制限の例"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"特定のコマンドプレフィックスのみを許可"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}]," と ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm"}]," のコマンドのみを許可し、それ以外をすべてブロックする場合:"]}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"coreTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command(git)\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command(npm)\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}],": 許可"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm install"}],": 許可"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"ls -l"}],": ブロック"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"特定のコマンドプレフィックスをブロック"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"rm"}]," をブロックし、他のすべてのコマンドを許可する場合:"]}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"coreTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"],"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"excludeTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command(rm)\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"rm -rf /"}],": ブロック"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}],": 許可"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm install"}],": 許可"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"ブロックリストが優先される"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["コマンドプレフィックスが ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," と ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," の両方に含まれている場合、そのコマンドはブロックされます。"]}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"coreTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command(git)\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"],"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"excludeTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command(git push)\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git push origin main"}],": ブロック"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}],": 許可"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"すべてのシェルコマンドをブロック"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["すべてのシェルコマンドをブロックするには、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," のワイルドカードを ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," に追加します:"]}],"\n",["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L1a",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"excludeTools\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"run_shell_command\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}],"\n",["$","ul",null,{"className":"x:[:is(ol,ul)_&]:my-[.75em] x:not-first:mt-[1.25em] x:list-disc x:ms-[1.5em]","children":["\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"ls -l"}],": ブロック"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"any other command"}],": ブロック"]}],"\n"]}],"\n",["$","h2",null,{"id":"excludetools-のセキュリティに関する注意","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":[[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," のセキュリティに関する注意"],["$","$L19",null,{"id":"excludetools-のセキュリティに関する注意"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," の ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," によるコマンド固有の制限は、単純な文字列マッチングに基づいており、簡単にバイパスされる可能性があります。この機能は",["$","strong",null,{"children":"セキュリティメカニズムではない"}],"ため、信頼できないコードを安全に実行するために依存すべきではありません。実行可能なコマンドを明示的に選択するには、",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," の使用を推奨します。"]}]]}]]}]]}]}]
|
|
9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Shell ツール (run_shell_command) | "}],["$","meta","3",{"name":"description","content":"x"}],["$","meta","4",{"name":"msapplication-TileColor","content":"#fff"}],["$","meta","5",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"Qwen Code"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","8",{"property":"og:title","content":"Shell ツール (run_shell_command) | "}],["$","meta","9",{"property":"og:description","content":"x"}],["$","meta","10",{"property":"og:image","content":"https://assets.vercel.com/image/upload/v1572282926/swr/twitter-card.jpg"}],["$","meta","11",{"name":"twitter:card","content":"summary"}],["$","meta","12",{"name":"twitter:site","content":"@qwenLLM"}],["$","meta","13",{"name":"twitter:title","content":"Shell ツール (run_shell_command) | "}],["$","meta","14",{"name":"twitter:description","content":"x"}],["$","meta","15",{"name":"twitter:image","content":"https://assets.vercel.com/image/upload/v1572282926/swr/twitter-card.jpg"}]]
|
|
1:null
|