import{c as a,Q as i,j as t,m as e}from"./chunks/framework.DVkeSyfh.js";const c=JSON.parse('{"title":"快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md"}'),l={name:"guide/getting-started.md"};function n(p,s,h,d,k,r){return i(),t("div",null,[...s[0]||(s[0]=[e(`<h1 id="快速开始" tabindex="-1">快速开始 <a class="header-anchor" href="#快速开始" aria-label="Permalink to &quot;快速开始&quot;">​</a></h1><p>AgentPulse 提供本地 Web 控制台和 <code>agent-pulse</code> 命令，用来观察 AI 编程工具事件、扫描本地配置，并安全地把工具请求路由到本地代理。</p><h2 id="本地开发启动" tabindex="-1">本地开发启动 <a class="header-anchor" href="#本地开发启动" aria-label="Permalink to &quot;本地开发启动&quot;">​</a></h2><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> build</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --filter</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> @cashew-dev/agent-pulse</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> start</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> start</span></span></code></pre></div><p>启动后打开：</p><ul><li>控制台：<code>http://127.0.0.1:8080</code></li><li>使用文档：<code>http://127.0.0.1:8080/docs/</code></li></ul><h2 id="npm-安装启动" tabindex="-1">npm 安装启动 <a class="header-anchor" href="#npm-安装启动" aria-label="Permalink to &quot;npm 安装启动&quot;">​</a></h2><p>发布后可以这样安装和启动：</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -g</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> @cashew-dev/agent-pulse</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-pulse</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> start</span></span></code></pre></div><p>默认监听 <code>127.0.0.1:8080</code>。可以通过环境变量或参数调整：</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-pulse</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> start</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --host</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 127.0.0.1</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --port</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 8090</span></span></code></pre></div><h2 id="常用流程" tabindex="-1">常用流程 <a class="header-anchor" href="#常用流程" aria-label="Permalink to &quot;常用流程&quot;">​</a></h2><ol><li>运行 <code>agent-pulse start</code> 打开本地服务。</li><li>在 Web 控制台进入 Agents 页面，点击扫描。</li><li>查看计划和目标配置文件，确认后再替换工具配置。</li><li>如需恢复，使用页面上的回滚按钮，或运行 <code>agent-pulse rollback</code>。</li></ol>`,13)])])}const g=a(l,[["render",n]]);export{c as __pageData,g as default};
