leduo-patrol 2.2.1 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/server/__tests__/acp-session.test.js +115 -0
- package/dist/server/__tests__/activity-monitor.test.js +13 -1
- package/dist/server/__tests__/session-manager.test.js +380 -1
- package/dist/server/acp-session.js +476 -0
- package/dist/server/activity-monitor.js +22 -7
- package/dist/server/index.js +57 -1
- package/dist/server/session-manager.js +1301 -121
- package/dist/web/assets/index-Bll9nc_X.js +21 -0
- package/dist/web/assets/index-y1qgSOLv.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +3 -1
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/README.md +53 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +823 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js +965 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +839 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +225 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +130 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +35 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +5 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +27 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +28 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +2870 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +5333 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +1554 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +24 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js +64 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/package.json +66 -0
- package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/schema/schema.json +4125 -0
- package/vendor/claude-code-acp/node_modules/@types/node/LICENSE +21 -0
- package/vendor/claude-code-acp/node_modules/@types/node/README.md +15 -0
- package/vendor/claude-code-acp/node_modules/@types/node/assert/strict.d.ts +105 -0
- package/vendor/claude-code-acp/node_modules/@types/node/assert.d.ts +955 -0
- package/vendor/claude-code-acp/node_modules/@types/node/async_hooks.d.ts +623 -0
- package/vendor/claude-code-acp/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/vendor/claude-code-acp/node_modules/@types/node/buffer.d.ts +1810 -0
- package/vendor/claude-code-acp/node_modules/@types/node/child_process.d.ts +1428 -0
- package/vendor/claude-code-acp/node_modules/@types/node/cluster.d.ts +486 -0
- package/vendor/claude-code-acp/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/vendor/claude-code-acp/node_modules/@types/node/console.d.ts +151 -0
- package/vendor/claude-code-acp/node_modules/@types/node/constants.d.ts +20 -0
- package/vendor/claude-code-acp/node_modules/@types/node/crypto.d.ts +4065 -0
- package/vendor/claude-code-acp/node_modules/@types/node/dgram.d.ts +564 -0
- package/vendor/claude-code-acp/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/vendor/claude-code-acp/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/vendor/claude-code-acp/node_modules/@types/node/dns.d.ts +922 -0
- package/vendor/claude-code-acp/node_modules/@types/node/domain.d.ts +166 -0
- package/vendor/claude-code-acp/node_modules/@types/node/events.d.ts +1054 -0
- package/vendor/claude-code-acp/node_modules/@types/node/fs/promises.d.ts +1329 -0
- package/vendor/claude-code-acp/node_modules/@types/node/fs.d.ts +4676 -0
- package/vendor/claude-code-acp/node_modules/@types/node/globals.d.ts +150 -0
- package/vendor/claude-code-acp/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/vendor/claude-code-acp/node_modules/@types/node/http.d.ts +2167 -0
- package/vendor/claude-code-acp/node_modules/@types/node/http2.d.ts +2480 -0
- package/vendor/claude-code-acp/node_modules/@types/node/https.d.ts +405 -0
- package/vendor/claude-code-acp/node_modules/@types/node/index.d.ts +115 -0
- package/vendor/claude-code-acp/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/vendor/claude-code-acp/node_modules/@types/node/inspector.d.ts +224 -0
- package/vendor/claude-code-acp/node_modules/@types/node/inspector.generated.d.ts +4226 -0
- package/vendor/claude-code-acp/node_modules/@types/node/module.d.ts +819 -0
- package/vendor/claude-code-acp/node_modules/@types/node/net.d.ts +933 -0
- package/vendor/claude-code-acp/node_modules/@types/node/os.d.ts +507 -0
- package/vendor/claude-code-acp/node_modules/@types/node/package.json +155 -0
- package/vendor/claude-code-acp/node_modules/@types/node/path/posix.d.ts +8 -0
- package/vendor/claude-code-acp/node_modules/@types/node/path/win32.d.ts +8 -0
- package/vendor/claude-code-acp/node_modules/@types/node/path.d.ts +187 -0
- package/vendor/claude-code-acp/node_modules/@types/node/perf_hooks.d.ts +643 -0
- package/vendor/claude-code-acp/node_modules/@types/node/process.d.ts +2161 -0
- package/vendor/claude-code-acp/node_modules/@types/node/punycode.d.ts +117 -0
- package/vendor/claude-code-acp/node_modules/@types/node/querystring.d.ts +152 -0
- package/vendor/claude-code-acp/node_modules/@types/node/quic.d.ts +910 -0
- package/vendor/claude-code-acp/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/vendor/claude-code-acp/node_modules/@types/node/readline.d.ts +541 -0
- package/vendor/claude-code-acp/node_modules/@types/node/repl.d.ts +415 -0
- package/vendor/claude-code-acp/node_modules/@types/node/sea.d.ts +162 -0
- package/vendor/claude-code-acp/node_modules/@types/node/sqlite.d.ts +955 -0
- package/vendor/claude-code-acp/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/vendor/claude-code-acp/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/vendor/claude-code-acp/node_modules/@types/node/stream/web.d.ts +296 -0
- package/vendor/claude-code-acp/node_modules/@types/node/stream.d.ts +1760 -0
- package/vendor/claude-code-acp/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/vendor/claude-code-acp/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/vendor/claude-code-acp/node_modules/@types/node/test.d.ts +2240 -0
- package/vendor/claude-code-acp/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/vendor/claude-code-acp/node_modules/@types/node/timers.d.ts +159 -0
- package/vendor/claude-code-acp/node_modules/@types/node/tls.d.ts +1198 -0
- package/vendor/claude-code-acp/node_modules/@types/node/trace_events.d.ts +197 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/vendor/claude-code-acp/node_modules/@types/node/tty.d.ts +250 -0
- package/vendor/claude-code-acp/node_modules/@types/node/url.d.ts +519 -0
- package/vendor/claude-code-acp/node_modules/@types/node/util/types.d.ts +558 -0
- package/vendor/claude-code-acp/node_modules/@types/node/util.d.ts +1662 -0
- package/vendor/claude-code-acp/node_modules/@types/node/v8.d.ts +983 -0
- package/vendor/claude-code-acp/node_modules/@types/node/vm.d.ts +1208 -0
- package/vendor/claude-code-acp/node_modules/@types/node/wasi.d.ts +202 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/vendor/claude-code-acp/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/vendor/claude-code-acp/node_modules/@types/node/worker_threads.d.ts +717 -0
- package/vendor/claude-code-acp/node_modules/@types/node/zlib.d.ts +618 -0
- package/vendor/claude-code-acp/node_modules/undici-types/LICENSE +21 -0
- package/vendor/claude-code-acp/node_modules/undici-types/README.md +6 -0
- package/vendor/claude-code-acp/node_modules/undici-types/agent.d.ts +32 -0
- package/vendor/claude-code-acp/node_modules/undici-types/api.d.ts +43 -0
- package/vendor/claude-code-acp/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/vendor/claude-code-acp/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/vendor/claude-code-acp/node_modules/undici-types/cache.d.ts +36 -0
- package/vendor/claude-code-acp/node_modules/undici-types/client-stats.d.ts +15 -0
- package/vendor/claude-code-acp/node_modules/undici-types/client.d.ts +108 -0
- package/vendor/claude-code-acp/node_modules/undici-types/connector.d.ts +34 -0
- package/vendor/claude-code-acp/node_modules/undici-types/content-type.d.ts +21 -0
- package/vendor/claude-code-acp/node_modules/undici-types/cookies.d.ts +30 -0
- package/vendor/claude-code-acp/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/vendor/claude-code-acp/node_modules/undici-types/dispatcher.d.ts +276 -0
- package/vendor/claude-code-acp/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/vendor/claude-code-acp/node_modules/undici-types/errors.d.ts +161 -0
- package/vendor/claude-code-acp/node_modules/undici-types/eventsource.d.ts +66 -0
- package/vendor/claude-code-acp/node_modules/undici-types/fetch.d.ts +211 -0
- package/vendor/claude-code-acp/node_modules/undici-types/formdata.d.ts +108 -0
- package/vendor/claude-code-acp/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/vendor/claude-code-acp/node_modules/undici-types/global-origin.d.ts +7 -0
- package/vendor/claude-code-acp/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/vendor/claude-code-acp/node_modules/undici-types/handlers.d.ts +15 -0
- package/vendor/claude-code-acp/node_modules/undici-types/header.d.ts +160 -0
- package/vendor/claude-code-acp/node_modules/undici-types/index.d.ts +80 -0
- package/vendor/claude-code-acp/node_modules/undici-types/interceptors.d.ts +39 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-client.d.ts +27 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/vendor/claude-code-acp/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/vendor/claude-code-acp/node_modules/undici-types/package.json +55 -0
- package/vendor/claude-code-acp/node_modules/undici-types/patch.d.ts +29 -0
- package/vendor/claude-code-acp/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/vendor/claude-code-acp/node_modules/undici-types/pool.d.ts +41 -0
- package/vendor/claude-code-acp/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/vendor/claude-code-acp/node_modules/undici-types/readable.d.ts +68 -0
- package/vendor/claude-code-acp/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/vendor/claude-code-acp/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/vendor/claude-code-acp/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/vendor/claude-code-acp/node_modules/undici-types/util.d.ts +18 -0
- package/vendor/claude-code-acp/node_modules/undici-types/utility.d.ts +7 -0
- package/vendor/claude-code-acp/node_modules/undici-types/webidl.d.ts +341 -0
- package/vendor/claude-code-acp/node_modules/undici-types/websocket.d.ts +186 -0
- package/dist/web/assets/index-B5Dh2E8j.css +0 -1
- package/dist/web/assets/index-xPPPaEde.js +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{color-scheme:light;font-family:IBM Plex Sans,PingFang SC,Hiragino Sans GB,sans-serif;--bg: #f4efe6;--panel: rgba(255, 250, 242, .88);--line: rgba(58, 45, 33, .12);--text: #24180e;--muted: #6c5c4d;--brand: #d85b34;--brand-dark: #8f2d1e;--accent: #17756d;--shadow: 0 24px 80px rgba(64, 41, 19, .12);font-size:12px}*{box-sizing:border-box}body{margin:0;height:100vh;color:var(--text);background:radial-gradient(circle at top left,rgba(255,216,177,.9),transparent 28%),radial-gradient(circle at top right,rgba(111,182,173,.22),transparent 26%),linear-gradient(135deg,#f8f1e7,#efe5d9 48%,#efece6);overflow:hidden}button,textarea,input,select{font:inherit}button{cursor:pointer;border:0}code,pre{font-family:IBM Plex Mono,SFMono-Regular,monospace}#root{height:100vh}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.access-gate{display:flex;align-items:center;justify-content:center;height:100vh;padding:16px}.access-gate-card{width:min(520px,100%);padding:24px;display:grid;gap:12px}.access-gate-form{display:grid;gap:10px}.access-gate-label{color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase}.access-gate-card input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#ffffffeb}.access-gate-card input:focus-visible{outline:2px solid rgba(216,91,52,.32);outline-offset:2px}.access-gate-hint{color:var(--muted);line-height:1.45}.shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px;height:100vh;padding:12px}.shell-has-terminal-drawer{padding-bottom:48px}.panel{border:1px solid var(--line);border-radius:20px;background:var(--panel);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow);overflow:hidden}.masthead{display:flex;flex-direction:column;padding:14px;min-height:0}.eyebrow{margin:0 0 8px;color:var(--brand-dark);font-size:12px;letter-spacing:.18em;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1;font-weight:700}.lede{margin-top:8px;color:var(--muted);line-height:1.45;font-size:12px}.brand-stack{min-width:0;flex-shrink:0}.brand-lockup{display:flex;align-items:flex-start;gap:10px;min-width:0}.brand-copy{min-width:0}.brand-icon{width:44px;height:44px;flex:0 0 44px;border-radius:10px;border:1px solid var(--line);background:#fffffff2;object-fit:cover;box-shadow:0 8px 18px #2d1a0b29}.masthead-lede{margin-top:8px}.status-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px;flex-shrink:0}.status-card,.details,.empty{border:1px solid var(--line);border-radius:14px;background:#ffffffb3}.status-card{padding:10px}.status-card span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.status-card strong{display:block;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.status-card-positive strong{color:#1f7a45}.status-card-negative strong{color:#b13b2f}.masthead-actions{display:flex;gap:8px;margin-top:12px;flex-shrink:0}.masthead-action-btn{flex:1}.details{margin-top:10px;padding:12px;min-height:0}.details p,.details label{color:var(--muted);margin-bottom:6px}.details label{display:block;cursor:default}.details code{display:block;margin-bottom:10px;white-space:pre-wrap;font-size:11px;line-height:1.35}.details input,.details select{width:100%;margin-bottom:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#ffffffe6;color:var(--text);font-size:12px}.actions{display:grid;gap:8px;margin-top:10px;padding-top:0}.workspace-path-inline{display:grid;grid-template-columns:max-content auto minmax(220px,1fr);align-items:center;gap:6px;margin-bottom:8px}.workspace-path-root{display:inline-flex;align-items:center;margin-bottom:0;max-width:min(42vw,420px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-path-sep{color:var(--muted);font-size:12px}.workspace-path-inline input{width:100%;margin-bottom:0}.workspace-suggestion-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.workspace-suggestion-item{max-width:100%;padding:4px 8px;border:1px solid var(--line);border-radius:999px;background:#ffffffe6;color:var(--text);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary,.secondary{padding:10px 12px;border-radius:12px;transition:transform .16s ease,opacity .16s ease,background .16s ease}.primary{background:linear-gradient(135deg,var(--brand) 0%,#ef8852 100%);color:#fff7f0}.secondary{background:#17756d1f;color:var(--accent)}.primary:hover,.secondary:hover{transform:translateY(-1px)}.primary:disabled,.secondary:disabled{cursor:not-allowed;opacity:.45;transform:none}.session-list{display:flex;flex-direction:column;gap:6px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;flex:1;padding-right:2px;margin-top:10px;list-style:none;padding-left:0}.session-chip{position:relative;display:flex;flex-shrink:0;flex-direction:column;gap:6px;width:100%;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#ffffffad;color:var(--text);min-width:0;overflow:hidden;transition:background .15s ease,border-color .15s ease,transform .1s ease,box-shadow .15s ease}.session-chip:hover:not(.active){background:#ffffffe6;border-color:#3a2d2138;transform:translateY(-1px);box-shadow:0 2px 8px #40291314}.session-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.session-chip-title{display:-webkit-box;min-width:0;overflow:hidden;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere;word-break:break-word;font-size:13px;font-weight:600;line-height:1.35}.session-chip.active{background:#d85b3429;border-color:#d85b3485;box-shadow:inset 3px 0 0 var(--brand)}.session-chip-close{position:absolute;top:6px;right:6px;width:22px;height:22px;padding:0;border:none;border-radius:50%;background:#78503c14;color:var(--muted);font-size:14px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s ease,background .15s ease,color .15s ease;pointer-events:all}.session-chip:hover .session-chip-close,.session-chip-close:focus{opacity:1}.session-chip-close:hover{background:#b43c3226;color:#b43c32}.session-chip-close:active{background:#b43c3240}@media(pointer:coarse){.session-chip-close{opacity:1}}.session-chip-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.session-chip-status{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.session-chip-tag{display:inline-flex;align-items:center;min-width:0;max-width:100%;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:10px;line-height:1.35;white-space:nowrap}.session-chip-tag-completed{background:#14628a1f;border-color:#14628a38;color:#0a5c88}.session-chip-tag-connected{background:#422b1a1a;border-color:#422b1a29;color:var(--text)}.session-chip-tag-error{background:#a02c2024;border-color:#a02c2047;color:#9a1c1c}.session-chip-tag-connecting{background:#b8860b1f;border-color:#b8860b38;color:#a67c00}.session-chip-tag-running{background:#22a05a24;border-color:#22a05a47;color:#1a7a40}.session-chip-tag-running:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:4px;animation:activity-pulse 1.5s ease-in-out infinite}@keyframes activity-pulse{0%,to{opacity:1}50%{opacity:.4}}.session-chip-tag-pending,.session-chip-tag-warning{background:#d2961e24;border-color:#d2961e47;color:#8a6510}.session-chip-tag-neutral{background:#422b1a1a;border-color:#422b1a29;color:var(--text)}.session-chip-updated{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;line-height:1.55;flex-shrink:0}.session-chip-workspace{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;line-height:1.55}.main-content{display:flex;flex-direction:column;min-height:0}.cli-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);flex-shrink:0}.cli-toolbar-info{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.cli-toolbar-title-group{display:flex;flex-direction:column;gap:2px;min-width:0;flex-shrink:0;max-width:380px;padding-right:12px;border-right:1px solid var(--line)}.cli-toolbar-title{font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cli-toolbar-session-id{font-size:10px;color:var(--muted);opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cli-toolbar-path{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.cli-toolbar-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.cli-toolbar-actions .secondary{padding:6px 10px;font-size:11px}.engine-switch-group{display:inline-flex;gap:4px}.engine-switch-button.active{box-shadow:inset 0 0 0 1px #24180e29}.acp-mode-select{min-width:120px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:#ffffffe6;color:var(--text);font-size:11px}.toolbar-icon-button{min-width:34px;min-height:30px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;font-family:IBM Plex Mono,monospace;font-size:12px;line-height:1}.toolbar-icon-button.active{box-shadow:inset 0 0 0 1px #24180e29}.session-open-vscode{background:#5b47d81f;color:#4a31c6}.session-terminal-trigger{background:#17756d24;color:#0d6a63}.session-diff-trigger{background:#14628a24;color:#0a5c88}.session-close{background:#af282824;color:#9a1c1c}.cli-terminal-container{flex:1;min-height:0;background:#1a1a1a;border-radius:0 0 20px 20px;overflow:hidden;padding:4px 8px 0}.cli-terminal-container .xterm{height:100%}.cli-terminal-container .xterm-viewport{overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.cli-terminal-container .xterm-screen,.cli-terminal-container .xterm-screen canvas{touch-action:none}.cli-terminal-container .xterm-helper-textarea:focus,.cli-terminal-container .xterm-helper-textarea:focus-visible{outline:none!important;border:none!important;box-shadow:none!important;caret-color:transparent}.cli-stage{display:flex;flex:1;min-height:0;flex-direction:column}.acp-legacy-shell{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;flex:1;min-height:0;padding:12px}.acp-legacy-shell-no-sidebar{grid-template-columns:minmax(0,1fr)}.acp-legacy-transcript,.acp-legacy-approvals{min-height:0}.transcript{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}.transcript-header{padding:14px 14px 10px}.transcript-header p{margin-top:8px;color:var(--muted)}.transcript-header h2{overflow-wrap:anywhere;word-break:break-word}.timeline{padding:14px 14px 10px;overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:0}.history-loader{width:100%;padding:7px 10px;font-size:11px;text-align:center}.composer{margin:0 14px 14px;padding:10px}.composer-meta-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}.composer textarea{width:100%;min-height:72px;resize:vertical;border:0;background:transparent;outline:none;color:var(--text);font-size:12px;line-height:1.4}.composer-pending-placeholder{color:var(--text);background:linear-gradient(180deg,#fff3e5f5,#fff9f1e6);border-color:#d85b3452;box-shadow:0 8px 22px #d85b341f;font-size:11px;line-height:1.5}.composer-pending-title{margin-bottom:8px;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.composer-pending-list{display:flex;flex-direction:column;gap:8px}.composer-pending-item{padding:8px;border:1px solid rgba(216,91,52,.24);border-radius:10px;background:#ffffffd6}.composer-pending-tool{margin-bottom:6px;color:var(--text);font-size:11px;white-space:pre-wrap;word-break:break-all}.composer-pending-actions{display:flex;flex-wrap:wrap;gap:6px}.composer-pending-actions .secondary{width:auto;margin-top:0;padding:6px 10px}.composer-capability-summary{margin:0;color:var(--muted);font-size:10px}.composer-queued-prompts{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}.composer-queued-prompts-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.composer-queued-prompts-header .composer-pending-title{margin:0}.composer-queued-prompts-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#d85b341f;color:#9a4c2d;font-size:11px;font-weight:700}.composer-queued-prompts-list{display:flex;flex-direction:column;gap:8px}.composer-queued-prompt-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px;border:1px solid rgba(58,45,33,.12);border-radius:12px;background:#ffffffd6}.composer-queued-prompt-copy{min-width:0;flex:1}.composer-queued-prompt-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:6px;color:var(--muted);font-size:10px}.composer-queued-prompt-status,.composer-queued-prompt-mode,.composer-queued-prompt-images{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#3a2d2114}.composer-queued-prompt-status-sending{background:#d85b3424;color:#9a4c2d}.composer-queued-prompt-status-queued{background:#2e7c5c1f;color:#2d6a51}.composer-queued-prompt-text{margin:0;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word;color:var(--text)}.composer .composer-queued-prompt-remove{width:auto;margin-top:0;padding:6px 10px;flex-shrink:0}.composer-mode-select{min-width:132px}.composer-input-shell{position:relative;padding:12px 14px;border:1px solid rgba(58,45,33,.16);border-radius:14px;background:#ffffffe6;box-shadow:inset 0 1px #ffffff73}.composer-image-previews{display:flex;flex-direction:column;gap:4px;padding:6px 0 4px}.composer-image-preview{display:flex;align-items:center;gap:8px;flex-shrink:0}.composer-image-preview-thumb{width:64px;height:48px;border-radius:6px;overflow:hidden;border:1px solid rgba(58,45,33,.16);background:#3a2d210f;flex-shrink:0}.composer-image-preview img{display:block;width:100%;height:100%;object-fit:cover}.composer .composer-image-preview-remove{flex-shrink:0;width:auto;margin-top:0;padding:2px 8px;border-radius:4px;border:1px solid rgba(58,45,33,.25);background:transparent;color:#3a2d2199;font-size:12px;line-height:1.4;white-space:nowrap}.composer-completions{margin:0 0 8px;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fffffff2;padding:6px;box-shadow:inset 0 1px #ffffff80}.composer-completion-section{display:flex;flex-direction:column;gap:4px}.composer-completion-section-title{margin:2px 4px;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.composer-completion-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:#ffffffb8;color:var(--text);text-align:left}.composer-completion-item span{font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:11px}.composer-completion-item small{color:var(--muted);font-size:10px;line-height:1.2;text-align:right}.composer-completion-match{color:var(--brand-dark)}.composer-completion-rest{color:var(--text)}.composer-completion-item.active{border-color:#d85b3466;background:#d85b341f}.composer-actions{margin-top:8px;display:flex;align-items:center;gap:8px}.composer-actions .primary{margin-top:0;flex:1}.composer-actions .composer-cancel{margin-top:0;width:auto;min-width:0;padding:6px 9px;font-size:10px;line-height:1;display:inline-flex;align-items:center;gap:4px}.composer-send{display:inline-flex;align-items:center;gap:8px}.composer-send-shortcut{display:inline-flex;align-items:center;padding:1px 5px;border-radius:5px;background:#ffffff47;border:1px solid rgba(255,255,255,.5);font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:10px;font-weight:400;line-height:1.4;opacity:.9}.composer-send:disabled .composer-send-shortcut{opacity:.45}.approvals{display:flex;flex-direction:column;gap:8px}.approval-label{margin-bottom:6px;color:var(--brand-dark);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.session-meta{margin-top:0}.session-meta-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#ffffffd1,#f8f2e9eb)}.session-meta-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.session-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.session-plan-preview{margin:0;max-height:280px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:10px;background:#ffffffdb;font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.session-plan-list{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#ffffffdb;list-style:none;display:flex;flex-direction:column;gap:8px;max-height:280px;overflow:auto}.session-plan-list-item{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.45}.session-plan-content{flex:1;word-break:break-word}.session-plan-status{margin-top:1px;width:14px;height:14px;border-radius:999px;border:1.5px solid rgba(58,45,33,.45);flex:0 0 14px;position:relative}.session-plan-status-completed{background:#4aab7029;border-color:#348756e6}.session-plan-status-completed:after{content:"";position:absolute;left:3px;top:1px;width:4px;height:7px;border:solid rgba(52,135,86,.95);border-width:0 2px 2px 0;transform:rotate(45deg)}.session-plan-status-in_progress{border-color:#2b60a5e6;border-top-color:#2b60a533;animation:session-plan-spin .9s linear infinite}.session-plan-status-pending,.session-plan-status-unknown{background:transparent}@keyframes session-plan-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.timeline-row{display:grid;grid-template-columns:minmax(108px,max-content) minmax(0,1fr) max-content;gap:8px;align-items:center;width:calc(100% - (var(--timeline-depth, 0) * 18px));margin-left:calc(var(--timeline-depth, 0) * 18px);min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#ffffffb8;color:var(--text);text-align:left}.timeline-row-multiline{align-items:start}.timeline-row .timeline-kind{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;white-space:nowrap}.timeline-row .timeline-fold{color:var(--muted);font-size:10px;border:1px solid var(--line);border-radius:999px;padding:1px 6px}.timeline-row .timeline-body{min-width:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-row .timeline-body.multiline{white-space:pre-wrap;text-overflow:clip;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:10;overflow:hidden}.timeline-row .timeline-meta{color:var(--muted);text-align:right;padding-left:8px;font-size:11px}.timeline-row.user{background:#9952d624;border-color:#7e3fbf47}.timeline-row.tool{background:#17756d1a}.timeline-row.error{background:#a02c201f}.timeline-row.thought{background:#8f2d1e14}.timeline-running-indicator{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:8px 10px;border:1px dashed rgba(23,117,109,.35);border-radius:10px;color:var(--accent);font-size:11px;background:#17756d0f}.timeline-running-dot{width:8px;height:8px;border-radius:999px;background:currentColor;animation:timeline-pulse 1.1s ease-in-out infinite}@keyframes timeline-pulse{0%,to{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.timeline-image-badge{margin-left:4px;font-size:11px;opacity:.65}.multi-question-form{display:flex;flex-direction:column;gap:16px;padding:12px;border:1px solid rgba(58,45,33,.16);border-radius:10px;background:#fffaf2eb;max-height:50vh;overflow-y:auto}.question-panel{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;border-bottom:1px solid rgba(58,45,33,.1)}.question-panel:last-of-type{border-bottom:none;padding-bottom:0}.question-header{font-size:11px;font-weight:700;color:var(--accent);margin:0}.question-text{font-size:12px;font-weight:500;color:var(--text);white-space:pre-wrap;word-break:break-word;margin:0}.question-options{display:flex;flex-direction:column;gap:6px}.question-option-btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;border:2px solid rgba(58,45,33,.15);border-radius:8px;background:#ffffffeb;color:var(--text);font-size:11px;text-align:left}.question-option-btn.selected{background:#fff3e5fa;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.question-option-label{font-weight:600;font-size:11px}.question-option-desc{font-size:10px;color:#3a2d2199;line-height:1.3}.question-custom-toggle{border-style:dashed}.question-custom-answer{display:flex;gap:6px;align-items:center}.question-custom-input{flex:1;min-width:0;padding:6px 8px;border:1px solid rgba(58,45,33,.18);border-radius:8px;background:#fffffff5;color:var(--text);font-size:11px}.question-selected-answer{font-size:11px;color:var(--accent);margin:0;font-weight:500}.question-submit-all{position:sticky;bottom:0;padding:10px 16px;border:none;border-radius:8px;background:var(--accent);color:#fff;font-size:12px;font-weight:600}.cli-stage-fullscreen{background:#1a1a1a}.mobile-terminal-stage-viewport{position:relative;flex:1;min-height:0;overflow:hidden;background:#1a1a1a}.mobile-terminal-toggle{background:#17756d24;color:#0d6a63}.mobile-terminal-input-shell{--mobile-terminal-input-offset: 0px;flex-shrink:0;position:sticky;bottom:calc(var(--mobile-terminal-input-offset) + env(safe-area-inset-bottom,0px));z-index:3;display:grid;gap:10px;padding:0 12px calc(12px + env(safe-area-inset-bottom,0px));background:transparent;box-shadow:none}.mobile-terminal-input-shell-fullscreen{position:relative;bottom:auto;padding-top:8px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#1a1a1a,#1a1a1af5);box-shadow:none}.mobile-terminal-input-compose{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px;align-items:stretch}.mobile-terminal-input-compose textarea{width:100%;min-height:56px;resize:vertical;border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:10px 12px;font-size:16px;background:#fffffff5;color:#24180e;line-height:1.5}.mobile-terminal-input-compose textarea:focus-visible{outline:2px solid rgba(216,91,52,.4);outline-offset:2px}.mobile-terminal-send{min-height:56px;align-self:stretch}.mobile-terminal-send-stack{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-height:56px}.mobile-terminal-send-stack .mobile-terminal-send{min-height:0}.mobile-terminal-send-type{background:#ffffff24;color:#f5ede4}.mobile-terminal-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.mobile-terminal-action{min-height:36px;padding:0 8px;border-radius:12px;background:#ffffff1a;color:#f5ede4;font-size:11px}.mobile-terminal-action-accent{background:#d85b343d;color:#fff4ef}.mobile-terminal-fullscreen{position:fixed;inset:0;z-index:320;display:flex;flex-direction:column;background:linear-gradient(180deg,#1f1712fa,#100c0afa),#15110e;color:#f5ede4}.mobile-terminal-fullscreen-header{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top,0px)) 12px 12px;border-bottom:1px solid rgba(255,255,255,.08)}.mobile-terminal-fullscreen-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.mobile-terminal-fullscreen-actions{display:flex;flex-shrink:0;gap:6px;align-items:center;min-width:0}.mobile-terminal-header-button{min-width:44px;min-height:36px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;letter-spacing:.04em;line-height:1}.mobile-terminal-mode-button,.mobile-terminal-toggle{min-width:36px;min-height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1}.mobile-terminal-fullscreen-copy strong,.mobile-terminal-fullscreen-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-terminal-fullscreen-copy strong{font-size:13px;line-height:1.2}.mobile-terminal-fullscreen-copy span{color:#f5ede49e;font-size:11px}.mobile-terminal-back{flex-shrink:0;min-height:36px;padding:0 12px;color:#f5ede4;background:#ffffff1a}.mobile-terminal-fullscreen .mobile-terminal-toggle{color:#f5ede4;background:#ffffff1a}.mobile-terminal-fullscreen .mobile-terminal-toggle.active{background:#d85b343d;color:#fff4ef;box-shadow:inset 0 0 0 1px #ffffff1a}.mobile-terminal-fullscreen .mobile-terminal-mode-button,.mobile-terminal-fullscreen .mobile-terminal-engine-button,.mobile-terminal-fullscreen .mobile-terminal-diff-trigger{color:#f5ede4;background:#ffffff1a}.mobile-terminal-fullscreen-body{display:flex;flex:1;min-height:0;flex-direction:column}.cli-terminal-container-fullscreen{position:absolute;inset:0;border-radius:0;padding:6px 8px 0}.mobile-terminal-surface{position:absolute;inset:0}.mobile-terminal-surface-hidden{opacity:0;pointer-events:none}.mobile-shell-stage{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;height:100%;background:#1a1a1a}.mobile-shell-panel-header{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08)}.mobile-shell-panel-title{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-family:IBM Plex Mono,monospace;font-size:12px;color:#f5ede4}.mobile-shell-panel-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5ede494;font-size:10px}.terminal-viewport-mobile{padding:6px 8px 8px}.terminal-viewport-mobile-fullscreen{height:100%;min-height:0}.main-empty{display:flex;align-items:center;justify-content:center;flex:1;color:var(--muted);font-size:13px}.empty{padding:10px 12px;color:var(--muted);font-size:11px}.session-mobile-hint{margin-top:10px;padding:0 2px;color:var(--muted);font-size:11px;line-height:1.5}.session-meta-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:2px}.session-meta-actions .secondary{width:100%;min-width:0;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px}.session-meta-item{padding:10px;border:1px solid var(--line);border-radius:12px;background:#ffffffd1}.session-meta-item-wide{grid-column:1 / -1}.session-meta-item span{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}.session-meta-item code{display:block;margin:0;overflow-wrap:anywhere;word-break:break-word}.modal-backdrop{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:20px;background:#21140c61}.modal-card{width:min(920px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--line);border-radius:18px;background:#fffcf7fa;box-shadow:var(--shadow);overflow:hidden}.modal-card-small{width:min(360px,calc(100vw - 32px))}.modal-header{flex-shrink:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 10px;border-bottom:1px solid var(--line)}.modal-scroll-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px 14px}.modal-scroll-body>*+*{margin-top:10px}.modal-body{padding:16px 20px}.modal-footer{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px 14px;border-top:1px solid var(--line);background:#fffcf7fa}.modal-footer .secondary{margin-top:0;width:auto;padding:7px 14px}.modal-meta-padded{padding:8px 14px 0}.modal-actions-inline{display:flex;align-items:center;gap:6px}.modal-meta{color:var(--muted);font-size:11px}.modal-body{margin:0;padding:12px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#ffffffc7;white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.5}.modal-btn-refresh{background:#14628a24;color:#0a5c88}.modal-btn-close{background:#af282824;color:#9a1c1c}.modal-attached-images{display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px 0}.modal-attached-image{max-width:240px;max-height:180px;border-radius:6px;border:1px solid rgba(58,45,33,.16);object-fit:contain;background:#3a2d210a}.tool-detail-view{display:flex;flex-direction:column;gap:8px;min-height:0}.tool-detail-fields{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#ffffffc7}.tool-detail-row{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.5}.tool-detail-key{flex:0 0 40px;color:var(--muted);font-size:10px;padding-top:2px;white-space:nowrap}.tool-detail-val{flex:1;min-width:0;word-break:break-word;color:var(--text)}.tool-detail-code{font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:10px;white-space:pre-wrap;word-break:break-all}.tool-detail-status{display:inline-block;padding:1px 8px;border-radius:999px;font-size:10px;font-weight:500;letter-spacing:.03em}.tool-detail-status-completed{background:#34875624;color:#2a6e46;border:1px solid rgba(52,135,86,.32)}.tool-detail-status-pending{background:#d85b3424;color:#8f2d1e;border:1px solid rgba(216,91,52,.32)}.tool-detail-status-failed,.tool-detail-status-canceled,.tool-detail-status-cancelled{background:#a02c2024;color:#8f0000;border:1px solid rgba(160,44,32,.32)}.tool-detail-section{border:1px solid var(--line);border-radius:10px;background:#ffffff80;overflow:hidden}.tool-detail-summary{padding:7px 12px;font-size:11px;color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none}.tool-detail-summary::-webkit-details-marker{display:none}.tool-detail-summary:before{content:"▶ ";font-size:9px}.tool-detail-section[open]>.tool-detail-summary{color:var(--text);border-bottom:1px solid var(--line)}.tool-detail-section[open]>.tool-detail-summary:before{content:"▼ "}.tool-detail-content{margin:0;border-radius:0;border:none;background:transparent}.permission-command-textarea{width:100%;min-height:160px;resize:vertical;margin-top:6px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:10px;line-height:1.5;background:#ffffffeb;color:var(--text);white-space:pre}.diff-title-wrap{min-width:0}.diff-title-path{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;background:#422b1a17;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.readonly-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;border:1px solid rgba(159,36,36,.35);background:#af28281f;color:#9a1c1c;font-size:10px;vertical-align:middle}.markdown-body{white-space:normal}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin:.8em 0 .35em;line-height:1.3}.markdown-body p,.markdown-body ul{margin:.45em 0}.markdown-body ul{padding-left:1.2em}.markdown-body code{padding:.1em .35em;border-radius:6px;background:#422b1a17;font-family:JetBrains Mono,SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,monospace}.markdown-body pre{margin:.6em 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#ffffffd1;overflow:auto}.markdown-body pre code{padding:0;background:transparent}.markdown-body table{width:100%;border-collapse:collapse;margin:.6em 0;font-size:11px}.markdown-body th,.markdown-body td{border:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top}.markdown-body th{background:#422b1a14;font-weight:600}.diff-toolbar-tabs{display:flex;align-items:center;gap:6px;margin-bottom:8px;flex-wrap:wrap}.diff-toolbar-tabs select{min-width:240px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#ffffffe6}.diff-tab{padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#ffffffb3;color:var(--muted)}.diff-tab.active{background:#d85b3429;border-color:#d85b3473;color:var(--brand-dark)}.diff-block{margin:.6em 0;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:auto}.diff-block code{display:block;padding:0;background:transparent}.diff-line{display:block;padding:0 10px;white-space:pre}.diff-line-header{color:#7b4d22;background:#85593014}.diff-line-file,.diff-line-hunk{color:#005c99;background:#005c991a}.diff-line-add{color:#0d5d2a;background:#11974a29}.diff-line-remove{color:#8f1f2f;background:#c9304a29}@media(max-width:1100px){.shell{grid-template-columns:1fr;height:auto}.main-content,.transcript{min-height:70vh}.cli-toolbar{align-items:flex-start;flex-direction:column}.cli-toolbar-info,.cli-toolbar-actions{width:100%}.cli-toolbar-actions{flex-wrap:wrap}.cli-toolbar-actions .secondary{flex:1 1 140px;justify-content:center}.acp-legacy-shell{grid-template-columns:1fr}body{overflow:auto}}@media(max-width:1360px){.session-meta-actions{grid-template-columns:1fr}}.vscode-settings-actions{grid-template-columns:1fr}@media(max-width:720px){.shell{gap:10px;padding:10px}.panel{border-radius:16px}.masthead{padding:12px}.cli-terminal-container{padding:4px 6px 0}.mobile-terminal-input-shell{gap:8px;padding:0 10px calc(10px + env(safe-area-inset-bottom,0px))}.mobile-terminal-fullscreen-header{padding-left:10px;padding-right:10px}.mobile-terminal-fullscreen-copy strong{font-size:12px}}.terminal-drawer{position:fixed;bottom:0;left:0;right:0;z-index:200;border-top:1px solid var(--line);background:#1a1a1a;color:#e8e8e8;display:flex;flex-direction:column;box-shadow:0 -8px 32px #00000040;transition:height .2s ease;height:36px}.terminal-drawer-open{height:320px}.terminal-drawer-header{display:flex;align-items:center;gap:12px;padding:0 12px;height:36px;flex-shrink:0;border-bottom:1px solid rgba(255,255,255,.08)}.terminal-drawer-toggle{display:flex;align-items:center;gap:6px;background:transparent;color:#e8e8e8;font-size:12px;font-weight:600;padding:4px 8px;border-radius:6px;cursor:pointer;letter-spacing:.04em;transition:background .15s}.terminal-drawer-toggle:hover{background:#ffffff1a}.terminal-drawer-icon{font-size:10px;opacity:.7}.terminal-drawer-note{font-size:11px;color:#e8e8e880;font-family:IBM Plex Mono,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.terminal-viewport{flex:1;overflow:hidden;padding:4px 8px;min-height:0}.terminal-viewport .xterm{height:100%}.terminal-viewport .xterm-viewport{overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.shell.multi-session{padding-bottom:48px}.toast-container{position:fixed;top:16px;right:16px;z-index:9000;display:flex;flex-direction:column;gap:8px;max-width:360px;pointer-events:none}.toast-item{display:flex;align-items:flex-start;gap:8px;background:#1e1e1e;border:1px solid rgba(255,255,255,.12);border-left:3px solid #555;border-radius:8px;padding:10px 12px;box-shadow:0 4px 20px #00000080;animation:toast-slide-in .2s ease;pointer-events:all}.toast-warning{border-left-color:#f59e0b}.toast-error{border-left-color:#ef4444}.toast-info{border-left-color:#3b82f6}.toast-content{flex:1;min-width:0}.toast-content-clickable{background:none;border:none;padding:0;text-align:left;cursor:pointer}.toast-content-clickable:hover .toast-body{color:#e8e8e8e6}.toast-title{display:block;font-size:12px;font-weight:700;color:#e8e8e8;margin-bottom:3px}.toast-body{display:block;font-size:11px;color:#e8e8e8a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toast-dismiss{flex-shrink:0;background:none;border:none;color:#e8e8e859;cursor:pointer;font-size:18px;line-height:1;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:color .15s,background .15s}.toast-dismiss:hover{color:#e8e8e8;background:#ffffff14}@keyframes toast-slide-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
|
package/dist/web/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/png" href="/assets/brand-icon.png" />
|
|
7
7
|
<title>乐多汪汪队</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Bll9nc_X.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-y1qgSOLv.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leduo-patrol",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "乐多汪汪队(leduo-patrol)web console with embedded Claude Code CLI terminals.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server/index.js",
|
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@agentclientprotocol/sdk": "^0.15.0",
|
|
27
28
|
"@xterm/addon-fit": "^0.11.0",
|
|
28
29
|
"@xterm/xterm": "^6.0.0",
|
|
30
|
+
"@zed-industries/claude-code-acp": "file:vendor/claude-code-acp",
|
|
29
31
|
"express": "^5.2.1",
|
|
30
32
|
"node-pty": "^1.1.0",
|
|
31
33
|
"react": "^19.2.4",
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2025 Zed Industries, Inc. and contributors
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<a href="https://agentclientprotocol.com/" >
|
|
2
|
+
<img alt="Agent Client Protocol" src="https://zed.dev/img/acp/banner-dark.webp">
|
|
3
|
+
</a>
|
|
4
|
+
|
|
5
|
+
# ACP TypeScript Library
|
|
6
|
+
|
|
7
|
+
The official TypeScript implementation of the Agent Client Protocol (ACP) — a standardized communication protocol between code editors and AI-powered coding agents.
|
|
8
|
+
|
|
9
|
+
Learn more at https://agentclientprotocol.com
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @agentclientprotocol/sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Get Started
|
|
18
|
+
|
|
19
|
+
### Understand the Protocol
|
|
20
|
+
|
|
21
|
+
Start by reading the [official ACP documentation](https://agentclientprotocol.com) to understand the core concepts and protocol specification.
|
|
22
|
+
|
|
23
|
+
### Try the Examples
|
|
24
|
+
|
|
25
|
+
The [examples directory](https://github.com/agentclientprotocol/typescript-sdk/tree/main/src/examples) contains simple implementations of both Agents and Clients in TypeScript. These examples can be run from your terminal or from an ACP Client like [Zed](https://zed.dev), making them great starting points for your own integration!
|
|
26
|
+
|
|
27
|
+
### Explore the API
|
|
28
|
+
|
|
29
|
+
Browse the [TypeScript library reference](https://agentclientprotocol.github.io/typescript-sdk) for detailed API documentation.
|
|
30
|
+
|
|
31
|
+
If you're building an [Agent](https://agentclientprotocol.com/protocol/overview#agent), start with [AgentSideConnection](https://agentclientprotocol.github.io/typescript-sdk/classes/AgentSideConnection.html).
|
|
32
|
+
|
|
33
|
+
If you're building a [Client](https://agentclientprotocol.com/protocol/overview#client), start with [ClientSideConnection](https://agentclientprotocol.github.io/typescript-sdk/classes/ClientSideConnection.html).
|
|
34
|
+
|
|
35
|
+
### Study a Production Implementation
|
|
36
|
+
|
|
37
|
+
For a complete, production-ready implementation, check out the [Gemini CLI Agent](https://github.com/google-gemini/gemini-cli/blob/main/packages/cli/src/zed-integration/zedIntegration.ts).
|
|
38
|
+
|
|
39
|
+
## Resources
|
|
40
|
+
|
|
41
|
+
- [Library docs](https://agentclientprotocol.github.io/typescript-sdk)
|
|
42
|
+
- [Examples](https://github.com/agentclientprotocol/typescript-sdk/tree/main/src/examples)
|
|
43
|
+
- [Protocol Documentation](https://agentclientprotocol.com)
|
|
44
|
+
- [GitHub Repository](https://github.com/agentclientprotocol/typescript-sdk)
|
|
45
|
+
- [NPM Package](https://www.npmjs.com/package/@agentclientprotocol/sdk)
|
|
46
|
+
|
|
47
|
+
## Contributing
|
|
48
|
+
|
|
49
|
+
See the main [repository](https://github.com/agentclientprotocol/typescript-sdk) for contribution guidelines.
|
|
50
|
+
|
|
51
|
+
### License
|
|
52
|
+
|
|
53
|
+
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.
|