{"id":930,"date":"2026-11-15T16:06:45","date_gmt":"2026-11-15T08:06:45","guid":{"rendered":"https:\/\/www.zhukaifu.cn\/?p=930"},"modified":"2026-11-15T16:06:45","modified_gmt":"2026-11-15T08:06:45","slug":"mattpocock-sandcastle-%c2%b7-%e4%b8%ad%e6%96%87%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.zhukaifu.cn\/?p=930","title":{"rendered":"mattpocock\/sandcastle \u00b7 \u4e2d\u6587\u4ecb\u7ecd"},"content":{"rendered":"<!-- gh-sync:repo:mattpocock\/sandcastle -->\n\n<div id=\"gh-catalog\"><style>#gh-catalog{color-scheme:dark;--bg:#0b1120;--panel:#141f33;--line:#29364e;--text:#e6edf8;--muted:#9aaac3;--accent:#69d4ff}#gh-catalog *{box-sizing:border-box}#gh-catalog{margin:0;background:radial-gradient(ellipse at 15% 0,#172d4b 0,transparent 55%),var(--bg);color:var(--text);font:15px\/1.75 system-ui,\"Microsoft YaHei\",sans-serif;min-height:100vh}#gh-catalog main{max-width:1100px;margin:auto;padding:48px 24px 80px}#gh-catalog a{color:var(--accent);text-decoration:none}#gh-catalog a:hover{text-decoration:underline}#gh-catalog h1{font-size:clamp(27px,4vw,42px);letter-spacing:-.03em;line-height:1.3;margin:22px 0 12px;overflow-wrap:anywhere}#gh-catalog h2{font-size:20px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}#gh-catalog p{margin:12px 0}#gh-catalog .eyebrow{font-size:12px;letter-spacing:.18em;color:var(--accent);font-weight:700}#gh-catalog .meta{color:var(--muted);font-size:13px}#gh-catalog article{background:linear-gradient(135deg,#19273d,#131e30);border:1px solid var(--line);border-radius:18px;padding:26px;margin:16px 0;box-shadow:0 10px 32px #0002}#gh-catalog article:hover{border-color:#456585}#gh-catalog nav{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:18px}#gh-catalog nav a{font-size:14px}#gh-catalog a:focus-visible,#gh-catalog button:focus-visible,#gh-catalog input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}#gh-catalog .rank{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:32px;border-radius:9px;background:#263751;color:#bdcce2;font-size:14px;margin-right:12px;font-variant-numeric:tabular-nums}#gh-catalog .top-rank{background:#514224;color:#ffe09a}#gh-catalog .search-panel{position:sticky;top:0;z-index:3;padding:16px 0 12px;background:#0b1120f2;backdrop-filter:blur(12px)}#gh-catalog .search-row{display:flex;gap:10px;margin-top:8px}#gh-catalog input{width:100%;min-width:0;padding:14px 16px;border:1px solid #405371;border-radius:12px;background:#111e33;color:var(--text);font:inherit}#gh-catalog input::placeholder{color:#91a2bd}#gh-catalog button{border:1px solid #405371;border-radius:12px;background:#22344e;color:var(--text);padding:10px 18px;cursor:pointer;font:inherit;white-space:nowrap}#gh-catalog .empty{border:1px dashed #405371;border-radius:18px;text-align:center;padding:48px 20px;color:var(--muted)}#gh-catalog [hidden]{display:none!important}#gh-catalog li{margin:12px 0}#gh-catalog footer{margin-top:32px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px}@media(max-width:600px){#gh-catalog main{padding:24px 16px 48px}#gh-catalog article{padding:20px 16px}#gh-catalog h2{font-size:17px}#gh-catalog .rank{min-width:34px;margin-right:8px}#gh-catalog .search-panel{padding-top:10px}}#gh-catalog .search-panel{background:linear-gradient(120deg,#203148f5,#1c293cf5);border:1px solid #3c4d65;border-radius:18px;padding:20px 22px 12px;box-shadow:0 12px 32px #0003;margin:24px 0}#gh-catalog .search-panel label{font-weight:600;color:#d5e2f3}#gh-catalog .search-row{flex-wrap:wrap;align-items:center}#gh-catalog .search-row input{flex:1 1 280px;width:auto;background:#111c2c;border-color:#475a73}#gh-catalog .sort-label{font-size:13px}#gh-catalog .search-row select{padding:13px 12px;border-radius:11px;border:1px solid #526581;background:#293b52;color:#edf3fc;font:inherit;max-width:100%}#gh-catalog .search-row button{background:#344961;border-color:#536a85}#gh-catalog .search-row select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#gh-catalog article nav{gap:12px;margin-top:20px}#gh-catalog article nav a{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:10px;font-weight:600;font-size:13px;border:1px solid #526a87;background:#263a52;color:#dce9fa;transition:background .18s,border-color .18s,transform .18s}#gh-catalog article nav a:first-child{background:linear-gradient(135deg,#77ddf5,#96baff);border-color:#8ed6f4;color:#11243a;box-shadow:0 4px 14px #5ea7e51a}#gh-catalog article nav a:hover{background:#38516d;border-color:#8da9cb;text-decoration:none;transform:translateY(-1px)}#gh-catalog article nav a:first-child:hover{background:#b3e9ff;color:#0b1d31}#gh-catalog .collected{display:inline-flex;gap:6px;margin:10px 0 0;padding:4px 10px;background:#223247;border:1px solid #354b63;border-radius:8px;font-size:12px;color:#b6c8df}#gh-catalog .sort-note{font-size:12px;color:#a4b6cc}@media(max-width:600px){#gh-catalog .search-panel{padding:16px}#gh-catalog .search-row input{flex-basis:100%}#gh-catalog article nav a{flex:1;padding:10px 12px}}\n<\/style><main><nav><a href=\"https:\/\/www.zhukaifu.cn\/?p=575\">\u2190 \u70ed\u95e8\u4ed3\u5e93\u5217\u8868<\/a><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/mattpocock\/sandcastle\">\u6253\u5f00 GitHub \u4ed3\u5e93<\/a><\/nav><h1>mattpocock\/sandcastle<\/h1><p class=\"meta\">\u2605 8,828 \u00b7 Forks 945<\/p><article><h2>Sandcastle \u662f\u4e00\u4e2a TypeScript \u5e93\uff0c\u7528\u4e8e\u5728\u9694\u79bb\u73af\u5883\u4e2d\u5b89\u6392 AI \u7f16\u7801\u4ee3\u7406\u6267\u884c\u4efb\u52a1\uff0c\u5e76\u5c06\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u5408\u5e76\u56de\u6765\u3002<\/h2><p>\u4f7f\u7528 sandcastle.run() \u5728 TypeScript \u4e2d\u7f16\u6392\u6c99\u76d2\u5316\u7f16\u7801\u4ee3\u7406\u3002<\/p><ul><li>\u6267\u884c\u6d41\u7a0b\uff1a\u8c03\u7528 sandcastle.run() \u2192 \u6309\u53ef\u914d\u7f6e\u7684\u5206\u652f\u7b56\u7565\u5728\u9694\u79bb\u73af\u5883\u4e2d\u8fd0\u884c\u4ee3\u7406 \u2192 \u5c06\u5206\u652f\u63d0\u4ea4\u5408\u5e76\u56de\u6765\u3002<\/li><li>\u652f\u6301\u7cfb\u7edf\u539f\u751f\u9694\u79bb\u73af\u5883\u3001Docker\u3001Podman \u53ca\u591a\u79cd\u4e91\u670d\u52a1\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u73af\u5883\u63d0\u4f9b\u65b9\u3002<\/li><li>\u9002\u5408\u9700\u8981\u5e76\u884c\u8fd0\u884c\u591a\u4e2a\u65e0\u4eba\u503c\u5b88\u7f16\u7801\u4ee3\u7406\u3001\u642d\u5efa\u4ee3\u7801\u5ba1\u67e5\u6d41\u7a0b\u6216\u7ec4\u7ec7\u81ea\u6709\u4ee3\u7406\u7684\u5f00\u53d1\u8005\u3002<\/li><li>\u5165\u95e8\u53ef\u5148\u9605\u8bfb docs\/guide\/getting-started.md\uff0c\u4e86\u89e3\u524d\u7f6e\u6761\u4ef6\u548c\u5feb\u901f\u5f00\u59cb\uff0c\u518d\u67e5\u770b\u4ee3\u7406\u3001\u9694\u79bb\u73af\u5883\u4e0e\u5206\u652f\u7b56\u7565\u6587\u6863\u3002<\/li><\/ul><\/article><p class=\"meta\">\u4f9d\u636e\u5df2\u8bfb\u53d6\u7684 README \u8d44\u6599\u7f16\u5199\uff1b\u8f83\u957f\u8d44\u6599\u53ef\u80fd\u4f7f\u7528\u8282\u9009\uff0c\u672a\u5b9e\u9645\u6d4b\u8bd5\u4ed3\u5e93\u529f\u80fd\u3002<br>\u8d44\u6599\u6765\u6e90\uff1a<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/raw.githubusercontent.com\/mattpocock\/sandcastle\/HEAD\/README.md\">README<\/a> \u00b7 \u5185\u5bb9\u751f\u6210\u65f6\u95f4\uff1a2026-11-13T12:37:14+00:00<\/p><\/main><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2190 \u70ed\u95e8\u4ed3\u5e93\u5217\u8868\u6253\u5f00 GitHub \u4ed3\u5e93 mattpocock\/sandcast&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-930","post","type-post","status-publish","format-standard","hentry","category-thinking"],"_links":{"self":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=930"}],"version-history":[{"count":2,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":1309,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=\/wp\/v2\/posts\/930\/revisions\/1309"}],"wp:attachment":[{"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhukaifu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}