Files
2026-09-17 17:35:03 +00:00

27 lines
74 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
3:I[4707,[],""]
6:I[36423,[],""]
8:I[78400,["3185","static/chunks/app/layout-38b548b4f4d27f80.js"],"FontLoader"]
4:["lang","fr","d"]
5:["mdxPath","tools/shell","oc"]
0:["0y8u-WGJo2VFWAF7bkrdx",[[["",{"children":[["lang","fr","d"],{"children":[["mdxPath","tools/shell","oc"],{"children":["__PAGE__?{\"lang\":\"fr\",\"mdxPath\":[\"tools\",\"shell\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":[["lang","fr","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":"Bienvenue dans la Documentation Qwen Code"},"deployment":{"title":"Exécution et Déploiement"},"architecture":{"title":"Vue d'ensemble de l'Architecture"},"cli":{"title":"Guide d'Utilisation CLI"},"core":{"title":"Détails du Noyau"},"tools":{"title":"Collection d'Outils"},"checkpointing":{"title":"Fonctionnalité de Checkpointing"},"extension":{"title":"Développement d'Extensions"},"ide-integration":{"title":"Intégration IDE"},"telemetry":{"title":"Observabilité"},"examples":{"title":"Code d'Exemple"},"npm":{"title":"Gestion des Packages"},"gemini-ignore":{"title":"Configuration des Fichiers à Ignorer"},"integration-tests":{"title":"Tests d'Intégration"},"keyboard-shortcuts":{"title":"Raccourcis Clavier"},"sandbox":{"title":"Mécanisme Sandbox"},"issue-and-pr-automation":{"title":"Traitement Automatisé"},"troubleshooting":{"title":"Dépannage"},"tos-privacy":{"title":"Conditions d'Utilisation et Confidentialité"},"Uninstall":{"title":"Guide de Désinstallation"}}},{"name":"index","route":"/fr","frontMatter":{"title":"Bienvenue dans la documentation de Qwen Code","filePath":"content/fr/index.md","timestamp":1789666354000},"title":"Bienvenue dans la Documentation Qwen Code"},{"name":"deployment","route":"/fr/deployment","frontMatter":{"title":"Exécution et déploiement de Qwen Code","filePath":"content/fr/deployment.md","timestamp":1789666354000},"title":"Exécution et Déploiement"},{"name":"architecture","route":"/fr/architecture","frontMatter":{"title":"Aperçu de l'architecture de Qwen Code","filePath":"content/fr/architecture.md","timestamp":1789666354000},"title":"Vue d'ensemble de l'Architecture"},{"name":"cli","route":"/fr/cli","children":[{"data":{"index":{"title":"Vue d'ensemble CLI"},"commands":{"title":"Référence des Commandes"},"configuration":{"title":"Guide de Configuration"},"authentication":{"title":"Configuration d'Authentification"},"openai-auth":{"title":"Authentification OpenAI"},"token-caching":{"title":"Mise en Cache des Tokens"},"themes":{"title":"Configuration des Thèmes"},"tutorials":{"title":"Tutoriels d'Utilisation"}}},{"name":"index","route":"/fr/cli","frontMatter":{"title":"Qwen Code CLI","filePath":"content/fr/cli/index.md","timestamp":1789666354000},"title":"Vue d'ensemble CLI"},{"name":"commands","route":"/fr/cli/commands","frontMatter":{"title":"Commandes CLI","filePath":"content/fr/cli/commands.md","timestamp":1789666354000},"title":"Référence des Commandes"},{"name":"configuration","route":"/fr/cli/configuration","frontMatter":{"title":"Configuration de Qwen Code","filePath":"content/fr/cli/configuration.md","timestamp":1789666354000},"title":"Guide de Configuration"},{"name":"authentication","route":"/fr/cli/authentication","frontMatter":{"title":"Configuration de l'authentification","filePath":"content/fr/cli/authentication.md","timestamp":1789666354000},"title":"Configuration d'Authentification"},{"name":"openai-auth","route":"/fr/cli/openai-auth","frontMatter":{"title":"Authentification OpenAI","filePath":"content/fr/cli/openai-auth.md","timestamp":1789666354000},"title":"Authentification OpenAI"},{"name":"token-caching","route":"/fr/cli/token-caching","frontMatter":{"title":"Mise en cache des tokens et optimisation des coûts","filePath":"content/fr/cli/token-caching.md","timestamp":1789666354000},"title":"Mise en Cache des Tokens"},{"name":"themes","route":"/fr/cli/themes","frontMatter":{"title":"Thèmes","filePath":"content/fr/cli/themes.md","timestamp":1789666354000},"title":"Configuration des Thèmes"},{"name":"tutorials","route":"/fr/cli/tutorials","frontMatter":{"title":"Tutoriels","filePath":"content/fr/cli/tutorials.md","timestamp":1789666354000},"title":"Tutoriels d'Utilisation"},{"name":"welcome-back","route":"/fr/cli/welcome-back","frontMatter":{"title":"Fonction Welcome Back","filePath":"content/fr/cli/welcome-back.md","timestamp":1789666354000},"title":"Fonction Welcome Back"}],"title":"Guide d'Utilisation CLI"},{"name":"core","route":"/fr/core","children":[{"data":{"index":{"title":"Vue d'ensemble du Noyau"},"tools-api":{"title":"API des Outils"},"memport":{"title":"Processeur d'Import Mémoire"}}},{"name":"index","route":"/fr/core","frontMatter":{"title":"Qwen Code Core","filePath":"content/fr/core/index.md","timestamp":1789666354000},"title":"Vue d'ensemble du Noyau"},{"name":"tools-api","route":"/fr/core/tools-api","frontMatter":{"title":"Qwen Code Core : API des Tools","filePath":"content/fr/core/tools-api.md","timestamp":1789666354000},"title":"API des Outils"},{"name":"memport","route":"/fr/core/memport","frontMatter":{"title":"Memory Import Processor","filePath":"content/fr/core/memport.md","timestamp":1789666354000},"title":"Processeur d'Import Mémoire"}],"title":"Détails du Noyau"},{"name":"tools","route":"/fr/tools","children":[{"data":{"index":{"title":"Vue d'ensemble des Outils"},"file-system":{"title":"Outils du Système de Fichiers"},"multi-file":{"title":"Outils de Lecture Multi-Fichiers"},"shell":{"title":"Outils Shell"},"web-fetch":{"title":"Outils Web Fetch"},"web-search":{"title":"Outils de Recherche Web"},"memory":{"title":"Outils Mémoire"},"todo-write":{"title":"Outil Todo Write"},"mcp-server":{"title":"Serveur MCP"}}},{"name":"index","route":"/fr/tools","frontMatter":{"title":"Outils de code Qwen","filePath":"content/fr/tools/index.md","timestamp":1789666354000},"title":"Vue d'ensemble des Outils"},{"name":"file-system","route":"/fr/tools/file-system","frontMatter":{"title":"Outils de système de fichiers Qwen Code","filePath":"content/fr/tools/file-system.md","timestamp":1789666354000},"title":"Outils du Système de Fichiers"},{"name":"multi-file","route":"/fr/tools/multi-file","frontMatter":{"title":"Multi File Read Tool (read_many_files)","filePath":"content/fr/tools/multi-file.md","timestamp":1789666354000},"title":"Outils de Lecture Multi-Fichiers"},{"name":"shell","route":"/fr/tools/shell","frontMatter":{"title":"Outil Shell (run_shell_command)","filePath":"content/fr/tools/shell.md","timestamp":1789666354000},"title":"Outils Shell"},{"name":"web-fetch","route":"/fr/tools/web-fetch","frontMatter":{"title":"Web Fetch Tool (web_fetch)","filePath":"content/fr/tools/web-fetch.md","timestamp":1789666354000},"title":"Outils Web Fetch"},{"name":"web-search","route":"/fr/tools/web-search","frontMatter":{"title":"Web Search Tool (web_search)","filePath":"content/fr/tools/web-search.md","timestamp":1789666354000},"title":"Outils de Recherche Web"},{"name":"memory","route":"/fr/tools/memory","frontMatter":{"title":"Outil Mémoire (save_memory)","filePath":"content/fr/tools/memory.md","timestamp":1789666354000},"title":"Outils Mémoire"},{"name":"todo-write","route":"/fr/tools/todo-write","frontMatter":{"title":"Outil Todo Write (todo_write)","filePath":"content/fr/tools/todo-write.md","timestamp":1789666354000},"title":"Outil Todo Write"},{"name":"mcp-server","route":"/fr/tools/mcp-server","frontMatter":{"title":"Serveurs MCP avec Qwen Code","filePath":"content/fr/tools/mcp-server.md","timestamp":1789666354000},"title":"Serveur MCP"}],"title":"Collection d'Outils"},{"name":"checkpointing","route":"/fr/checkpointing","frontMatter":{"title":"Checkpointing","filePath":"content/fr/checkpointing.md","timestamp":1789666354000},"title":"Fonctionnalité de Checkpointing"},{"name":"extension","route":"/fr/extension","frontMatter":{"title":"Extensions Qwen Code","filePath":"content/fr/extension.md","timestamp":1789666354000},"title":"Développement d'Extensions"},{"name":"ide-integration","route":"/fr/ide-integration","frontMatter":{"title":"Intégration IDE","filePath":"content/fr/ide-integration.md","timestamp":1789666354000},"title":"Intégration IDE"},{"name":"telemetry","route":"/fr/telemetry","frontMatter":{"title":"Guide d'observabilité de Qwen Code","filePath":"content/fr/telemetry.md","timestamp":1789666354000},"title":"Observabilité"},{"name":"examples","route":"/fr/examples","children":[{"data":{"proxy-script":{"title":"Exemple de Script Proxy"}}},{"name":"proxy-script","route":"/fr/examples/proxy-script","frontMatter":{"title":"Exemple de Script Proxy","filePath":"content/fr/examples/proxy-script.md","timestamp":1789666354000},"title":"Exemple de Script Proxy"}],"title":"Code d'Exemple"},{"name":"npm","route":"/fr/npm","frontMatter":{"title":"Aperçu du Package","filePath":"content/fr/npm.md","timestamp":1789666354000},"title":"Gestion des Packages"},{"name":"gemini-ignore","route":"/fr/gemini-ignore","frontMatter":{"title":"Ignorer des fichiers","filePath":"content/fr/gemini-ignore.md","timestamp":1789666354000},"title":"Configuration des Fichiers à Ignorer"},{"name":"integration-tests","route":"/fr/integration-tests","frontMatter":{"title":"Tests d'intégration","filePath":"content/fr/integration-tests.md","timestamp":1789666354000},"title":"Tests d'Intégration"},{"name":"keyboard-shortcuts","route":"/fr/keyboard-shortcuts","frontMatter":{"title":"Raccourcis clavier de Qwen Code","filePath":"content/fr/keyboard-shortcuts.md","timestamp":1789666354000},"title":"Raccourcis Clavier"},{"name":"sandbox","route":"/fr/sandbox","frontMatter":{"title":"Sandboxing dans Qwen Code","filePath":"content/fr/sandbox.md","timestamp":1789666354000},"title":"Mécanisme Sandbox"},{"name":"issue-and-pr-automation","route":"/fr/issue-and-pr-automation","frontMatter":{"title":"Processus d'automatisation et de triage","filePath":"content/fr/issue-and-pr-automation.md","timestamp":1789666354000},"title":"Traitement Automatisé"},{"name":"troubleshooting","route":"/fr/troubleshooting","frontMatter":{"title":"Guide de dépannage","filePath":"content/fr/troubleshooting.md","timestamp":1789666354000},"title":"Dépannage"},{"name":"tos-privacy","route":"/fr/tos-privacy","frontMatter":{"title":"Qwen Code : Conditions d'utilisation et Politique de confidentialité","filePath":"content/fr/tos-privacy.md","timestamp":1789666354000},"title":"Conditions d'Utilisation et Confidentialité"},{"name":"Uninstall","route":"/fr/Uninstall","frontMatter":{"title":"Désinstaller la CLI","filePath":"content/fr/Uninstall.md","timestamp":1789666354000},"title":"Guide de Désinstallation"},{"name":"subagents","route":"/fr/subagents","frontMatter":{"title":"Subagents","filePath":"content/fr/subagents.md","timestamp":1789666354000},"title":"Subagents"}],"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":"fr"}]]}]]}]]}],"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":"Description","id":"description","depth":2},{"value":"Arguments","id":"arguments","depth":3},{"value":[["$","$16",".0",{"children":["Comment utiliser ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," avec Qwen Code"]}]],"id":"comment-utiliser-run_shell_command-avec-qwen-code","depth":2},{"value":[["$","$16",".0",{"children":["Paramètre obligatoire ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]]}]],"id":"paramètre-obligatoire-is_background","depth":3},{"value":"Exécution en arrière-plan vs premier plan","id":"exécution-en-arrière-plan-vs-premier-plan","depth":3},{"value":"Informations d’exécution","id":"informations-dexécution","depth":3},{"value":[["$","$16",".0",{"children":["Exemples ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]]}]],"id":"exemples-run_shell_command","depth":2},{"value":"Notes importantes","id":"notes-importantes","depth":2},{"value":"Variables d’environnement","id":"variables-denvironnement","depth":2},{"value":"Restrictions des commandes","id":"restrictions-des-commandes","depth":2},{"value":"Exemples de restriction de commandes","id":"exemples-de-restriction-de-commandes","depth":3},{"value":[["$","$16",".0",{"children":["Note de sécurité pour ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]]}]],"id":"note-de-sécurité-pour-excludetools","depth":2}],"children":[["$","$L17",null,{}],["$","$L18",null,{"metadata":{"title":"Outil Shell (run_shell_command)","filePath":"content/fr/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":[["Outil 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":["Ce document décrit l’outil ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," pour Qwen Code."]}],"\n",["$","h2",null,{"id":"description","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":["Description",["$","$L19",null,{"id":"description"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Utilisez ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," pour interagir avec le système sous-jacent, exécuter des scripts ou effectuer des opérations en ligne de commande. ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," exécute une commande shell donnée. Sur Windows, la commande sera exécutée avec ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"cmd.exe /c"}],". Sur les autres plateformes, la commande sera exécutée avec ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"bash -c"}],"."]}],"\n",["$","h3",null,{"id":"arguments","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":["Arguments",["$","$L19",null,{"id":"arguments"}]]}],"\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"}]," prend les arguments suivants :"]}],"\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, requis) : La commande shell exacte à exécuter."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"description"}]," (string, optionnel) : Une brève description de l’objectif de la commande, qui sera affichée à l’utilisateur."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"directory"}]," (string, optionnel) : Le répertoire (relatif à la racine du projet) dans lequel exécuter la commande. Si non spécifié, la commande s’exécute dans la racine du projet."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," (boolean, requis) : Indique s’il faut exécuter la commande en arrière-plan. Ce paramètre est obligatoire pour s’assurer que le mode d’exécution est choisi explicitement. Définir à ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"true"}]," pour les processus longs comme les serveurs de développement, les watchers ou les daemons qui doivent continuer à fonctionner sans bloquer les commandes suivantes. Définir à ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"false"}]," pour les commandes ponctuelles qui doivent se terminer avant de continuer."]}],"\n"]}],"\n",["$","h2",null,{"id":"comment-utiliser-run_shell_command-avec-qwen-code","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":[["Comment utiliser ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," avec Qwen Code"],["$","$L19",null,{"id":"comment-utiliser-run_shell_command-avec-qwen-code"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Lorsque vous utilisez ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}],", la commande est exécutée en tant que sous-processus. Vous pouvez contrôler si les commandes s’exécutent en arrière-plan ou en avant-plan en utilisant le paramètre ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}],", ou en ajoutant explicitement ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}]," aux commandes. L’outil renvoie des informations détaillées sur l’exécution, notamment :"]}],"\n",["$","h3",null,{"id":"paramètre-obligatoire-is_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":[["Paramètre obligatoire ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]],["$","$L19",null,{"id":"paramètre-obligatoire-is_background"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Le paramètre ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," est ",["$","strong",null,{"children":"obligatoire"}]," pour toutes les exécutions de commandes. Cette conception garantit que le LLM (et les utilisateurs) doit explicitement décider si chaque commande doit s’exécuter en arrière-plan ou en avant-plan, favorisant ainsi un comportement d’exécution intentionnel et prévisible. En rendant ce paramètre obligatoire, nous évitons les retours involontaires à l’exécution en avant-plan, ce qui pourrait bloquer les opérations suivantes lors du traitement de processus longs."]}],"\n",["$","h3",null,{"id":"exécution-en-arrière-plan-vs-premier-plan","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":["Exécution en arrière-plan vs premier plan",["$","$L19",null,{"id":"exécution-en-arrière-plan-vs-premier-plan"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"L’outil gère intelligemment l’exécution en arrière-plan et en premier plan selon votre choix explicite :"}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":["Utilisez l’exécution en arrière-plan (",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background: true"}],") pour :"]}]}],"\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":["Les serveurs de développement longue durée : ",["$","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":["Les watchers de build : ",["$","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":["Les serveurs de base de données : ",["$","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":["Les serveurs 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":"Toute commande prévue pour s’exécuter indéfiniment jusqu’à un arrêt manuel"}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":["Utilisez l’exécution en premier plan (",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background: false"}],") pour :"]}]}],"\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":["Les commandes ponctuelles : ",["$","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":["Les commandes de build : ",["$","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":["Les commandes d’installation : ",["$","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":["Les opérations 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":["Les exécutions de tests : ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm test"}],", ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"pytest"}]]}],"\n"]}],"\n",["$","h3",null,{"id":"informations-dexécution","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":["Informations d’exécution",["$","$L19",null,{"id":"informations-dexécution"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"L’outil retourne des informations détaillées sur l’exécution, incluant :"}],"\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"}]," : La commande qui a été exécutée."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Directory"}]," : Le répertoire dans lequel la commande a été lancée."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stdout"}]," : La sortie du flux standard."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stderr"}]," : La sortie du flux d’erreur standard."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Error"}]," : Tout message d’erreur rapporté par le sous-processus."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Exit Code"}]," : Le code de sortie de la commande."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Signal"}]," : Le numéro du signal si la commande a été terminée par un signal."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Background PIDs"}]," : Une liste des PIDs des processus lancés en arrière-plan."]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"Utilisation :"}],"\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":"Note :"}]," Le paramètre ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," est obligatoire et doit être explicitement spécifié pour chaque exécution de commande."]}],"\n",["$","h2",null,{"id":"exemples-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":[["Exemples ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]],["$","$L19",null,{"id":"exemples-run_shell_command"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"Lister les fichiers dans le répertoire courant :"}],"\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":"Exécuter un script dans un répertoire spécifique :"}],"\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":"Démarrer un serveur de développement en arrière-plan (approche recommandée) :"}],"\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":"Démarrer un serveur en arrière-plan (alternative avec & explicite) :"}],"\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":"Exécuter une commande de build en premier plan :"}],"\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":"Démarrer plusieurs services en arrière-plan :"}],"\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":"notes-importantes","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":["Notes importantes",["$","$L19",null,{"id":"notes-importantes"}]]}],"\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":"Sécurité :"}]," Soyez prudent lors de l’exécution de commandes, en particulier celles construites à partir d’entrées utilisateur, afin d’éviter les vulnérabilités de sécurité."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Commandes interactives :"}]," Évitez les commandes qui nécessitent une entrée utilisateur interactive, car cela peut bloquer l’outil. Utilisez des options non interactives si disponibles (par exemple, ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm init -y"}],")."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Gestion des erreurs :"}]," Vérifiez les champs ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Stderr"}],", ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Error"}]," et ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Exit Code"}]," pour déterminer si une commande s’est exécutée avec succès."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Processus en arrière-plan :"}]," Lorsque ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background=true"}]," ou quand une commande contient ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}],", l’outil retourne immédiatement la main et le processus continue de s’exécuter en arrière-plan. Le champ ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"Background PIDs"}]," contiendra l’identifiant du processus en arrière-plan."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Choix d’exécution en arrière-plan :"}]," Le paramètre ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," est obligatoire et permet un contrôle explicite sur le mode d’exécution. Vous pouvez également ajouter ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&"}]," à la commande pour une exécution manuelle en arrière-plan, mais le paramètre ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background"}]," doit tout de même être spécifié. Ce paramètre rend l’intention plus claire et gère automatiquement la configuration de l’exécution en arrière-plan."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Descriptions des commandes :"}]," Lors de l’utilisation de ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"is_background=true"}],", la description de la commande inclura un indicateur ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"[background]"}]," pour montrer clairement le mode d’exécution."]}],"\n"]}],"\n",["$","h2",null,{"id":"variables-denvironnement","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":["Variables d’environnement",["$","$L19",null,{"id":"variables-denvironnement"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Lorsque ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," exécute une commande, elle définit la variable d’environnement ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"QWEN_CODE=1"}]," dans l’environnement du sous-processus. Cela permet aux scripts ou aux outils de détecter s’ils sont exécutés depuis l’CLI."]}],"\n",["$","h2",null,{"id":"restrictions-des-commandes","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":["Restrictions des commandes",["$","$L19",null,{"id":"restrictions-des-commandes"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Vous pouvez restreindre les commandes exécutables par l’outil ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," en utilisant les paramètres ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," et ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," dans votre fichier de configuration."]}],"\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"}]," : Pour limiter ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," à un ensemble spécifique de commandes, ajoutez des entrées à la liste ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," au format ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command(<command>)"}],". Par exemple, ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"\"coreTools\": [\"run_shell_command(git)\"]"}]," n’autorisera que les commandes ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}],". Inclure le ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," générique agit comme un joker, autorisant toute commande non explicitement bloquée."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," : Pour bloquer des commandes spécifiques, ajoutez des entrées à la liste ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," au format ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command(<command>)"}],". Par exemple, ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"\"excludeTools\": [\"run_shell_command(rm)\"]"}]," bloquera les commandes ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"rm"}],"."]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"La logique de validation est conçue pour être sécurisée et flexible :"}],"\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":"Chaînage des commandes désactivé"}]," : L’outil divise automatiquement les commandes chaînées avec ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"&&"}],", ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"||"}],", ou ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":";"}]," et valide chaque partie séparément. Si une partie de la chaîne est interdite, la commande entière est bloquée."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Correspondance par préfixe"}]," : L’outil utilise la correspondance par préfixe. Par exemple, si vous autorisez ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}],", vous pouvez exécuter ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}]," ou ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git log"}],"."]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","strong",null,{"children":"Priorité de la liste de blocage"}]," : La liste ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," est toujours vérifiée en premier. Si une commande correspond à un préfixe bloqué, elle sera refusée, même si elle correspond également à un préfixe autorisé dans ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}],"."]}],"\n"]}],"\n",["$","h3",null,{"id":"exemples-de-restriction-de-commandes","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":["Exemples de restriction de commandes",["$","$L19",null,{"id":"exemples-de-restriction-de-commandes"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"Autoriser uniquement des préfixes de commandes spécifiques"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Pour autoriser uniquement les commandes ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git"}]," et ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm"}],", et bloquer toutes les autres :"]}],"\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"}]," : Autorisé"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm install"}]," : Autorisé"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"ls -l"}]," : Bloqué"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"Bloquer des préfixes de commandes spécifiques"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Pour bloquer ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"rm"}]," et autoriser toutes les autres commandes :"]}],"\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 /"}]," : Bloqué"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}]," : Autorisé"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"npm install"}]," : Autorisé"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"La liste noire (blocklist) est prioritaire"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Si un préfixe de commande est présent à la fois dans ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," et ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}],", il sera bloqué."]}],"\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"}]," : Bloqué"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"git status"}]," : Autorisé"]}],"\n"]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["$","strong",null,{"children":"Bloquer toutes les commandes shell"}]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Pour bloquer toutes les commandes shell, ajoutez le wildcard ",["$","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"}]," : Bloqué"]}],"\n",["$","li",null,{"className":"x:my-[.5em]","children":[["$","code",null,{"className":"nextra-code","dir":"ltr","children":"n'importe quelle autre commande"}]," : Bloquée"]}],"\n"]}],"\n",["$","h2",null,{"id":"note-de-sécurité-pour-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":[["Note de sécurité pour ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]],["$","$L19",null,{"id":"note-de-sécurité-pour-excludetools"}]]}],"\n",["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["Les restrictions spécifiques aux commandes dans ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"excludeTools"}]," pour ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"run_shell_command"}]," sont basées sur une simple correspondance de chaînes de caractères et peuvent être facilement contournées. Cette fonctionnalité ",["$","strong",null,{"children":"n’est pas un mécanisme de sécurité"}]," et ne doit pas être utilisée pour exécuter du code non fiable en toute sécurité. Il est recommandé d’utiliser ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"coreTools"}]," pour sélectionner explicitement les commandes qui peuvent être exécutées."]}]]}]]}]]}]}]
9:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Outil 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":"Outil 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":"Outil 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