Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
if: github.event.pull_request.user.login != 'renovate[bot]'

- name: Check PR title
if: github.event.pull_request.user.login != 'renovate[bot]'
uses: zrr1999/zendev/actions/validate-title@v0.0.7
with:
text: ${{ github.event.pull_request.title }}
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ AI 代理配置、工作流程与项目规范。项目概览见 [README](./READM

- `package.json`(根目录脚本通过 pnpm `--filter './apps/*'` 在各 app 上执行 dev/build 等)与 `pnpm-workspace.yaml`
- Git **pre-commit** 由 **[prek](https://github.com/j178/prek)** 管理:`prek.toml`(与 spore 仓库对齐的 `pre-commit-hooks`、tombi、actionlint、typos、zendev、`vp check --fix`)。克隆后 `pnpm install` 会执行 `prepare` → `prek install`;首次建议再运行 `prek install-hooks`。需本机已安装 `prek`(例如 `uv tool install prek` 或 `uvx prek` 相关用法)。
- **版本锁定(代理改依赖前必读)**:Astro 与各 app 保持一致且当前固定为 **`6.1.8`**;Vite+ 栈通过 workspace **catalog + overrides** 固定为 **`0.1.18`**。将 Astro 升到 **6.1.10+ / 6.2** 或将 vite-plus 升到 **0.1.19+** 前,须在本地跑通 **`pnpm run build`**,否则可能遇到 vite-plus-core 在 `generateBundle` 中的 **`Not implemented`**(背景见 [vitejs/vite#22356](https://github.com/vitejs/vite/issues/22356))。`@astrojs/internal-helpers` override 固定在 **`0.10.0`** 以匹配 `@astrojs/mdx` v6 的 markdown helper 导出。
- **版本约束(代理改依赖前必读)**:Astro Vite+ 版本统一放在 workspace catalog / overrides 中管理,app 侧优先使用 `catalog:`,避免重复锁死同一版本。调整 Astro vite-plus 版本前,须在本地跑通 **`vp run build`**,否则可能遇到 vite-plus-core 在 `generateBundle` 中的 **`Not implemented`**(背景见 [vitejs/vite#22356](https://github.com/vitejs/vite/issues/22356))。`@astrojs/internal-helpers` 暂由 override 固定以匹配 `@astrojs/mdx` v6 的 markdown helper 导出。
- **Astro 内容集合与 Zod**:请使用 `import { z } from "astro/zod"`,与 `defineCollection` **分两条 import**,见 `apps/blog/src/content.config.ts`。
- `.github/workflows/` - CI / 校验(不负责生产部署);含与 spore 类似的 **`ci-static-checks.yml`**(`setup-vp` + `prek-action`)、**`ci-pr-checks.yml`**(zendev PR 标题)及按路径触发的 typos、vale、外链、workflow 校验等
- `.github/agents/` - 代理配置(若存在)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Astro](https://astro.build) 个人站:主页、博客(Markdown / Typst)、幻灯片。**生产**:`zrr.dev`、`blog.zrr.dev`、`slides.zrr.dev`。旧域名 `sixbones.dev` 等仍为 `308` 入口,须在 Cloudflare 侧配置跳转(参见下表)。

**栈**:Tailwind、[Cloudflare Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/) + Wrangler。**工具**:Vite+([vite-plus.dev](https://vite-plus.dev),全局 `vp`);日常开发与安装依赖请以 `vp` 为准(勿用裸 `pnpm` / `npm` / `yarn` 替代 toolchain),详见 [AGENTS.md](./AGENTS.md)。workspace 详见 `pnpm-workspace.yaml`pre-commit、[版本锁定](AGENTS.md#配置)(Astro **`6.1.8`**、Vite+ **`0.1.18`** 等)亦在 AGENTS。
**栈**:Tailwind、[Cloudflare Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/) + Wrangler。**工具**:Vite+([vite-plus.dev](https://vite-plus.dev),全局 `vp`);日常开发与安装依赖请以 `vp` 为准(勿用裸 `pnpm` / `npm` / `yarn` 替代 toolchain),详见 [AGENTS.md](./AGENTS.md)。workspace 版本约束详见 `pnpm-workspace.yaml`pre-commit 与依赖调整注意事项见 AGENTS。

## 开发与检查

Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/all-in-one.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "使用 ArchLinux + Incus 搭建 all in one 的小主机"
author: "zrr1999"
author: "Zhan Rongrui"
description: "目前最流行的 AIO 方案是 EXSI 和 PVE,但是其实还有一个更加轻量级的方案,只需要一个普通 Linux 的主机即可"
pubDatetime: 2024-10-13
modDatetime: 2024-11-05
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/egglog-quickstart-01.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Egglog 快速入门(一):用等价饱和定义自然数运算"
author: "zrr1999"
author: "Zhan Rongrui"
description: "以 Peano 自然数的加法与乘法为例,介绍 egglog 语言:datatype、constructor、rewrite、check、run-schedule 与 saturate,以及 egg 与 egglog 的关系。"
pubDatetime: 2026-02-13
modDatetime: 2026-02-13
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/egglog-quickstart-02.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Egglog 快速入门(二):从自然数到整数、有理数与实数"
author: "zrr1999"
author: "Zhan Rongrui"
description: "承接第一篇的 Peano 自然数,逐步扩展:先引入 Neg 构造器得到整数,再定义有理数为整数对,并展示 rule、:when、relation、birewrite 等 egglog 特性。"
pubDatetime: 2026-02-15
modDatetime: 2026-02-15
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/egglog-quickstart-03.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Egglog 快速入门(三):复数定义与内置类型"
author: "zrr1999"
author: "Zhan Rongrui"
description: "承接第二篇的实数定义,先纯构造定义复数,再介绍 egglog 内置的 i64、Rational、f64、Vec、Set、MultiSet 等类型,以及 function、extract、cost 等特性,并展示如何用它们实现高效复数运算。"
pubDatetime: 2026-02-17
modDatetime: 2026-02-17
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/eq-type-lsp.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "__eq__ 的返回类型与里氏替换原则"
author: "zrr1999"
author: "Zhan Rongrui"
description: "讨论 object.__eq__ 返回 bool 与里氏替换原则的冲突、返回非 bool 的特定情形(如 NumPy、array-api 规范下的数组),以及 typeshed 与各社区的实践取舍"
pubDatetime: 2026-01-24
modDatetime: 2026-01-24
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/gaokao-math-formulas.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "高考数学中可用的公式定理与使用建议"
author: "zrr1999"
author: "Zhan Rongrui"
description: "按在解答题中的使用风险分类,整理常用的公式定理,供备考时取舍参考"
pubDatetime: 2018-02-23
modDatetime: 2018-04-08
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/incus-qcow2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "将 qcow2 镜像导入 incus"
author: "zrr1999"
author: "Zhan Rongrui"
description: "许多系统官方只给了 qcow2 镜像的格式,我们需要一些处理才能导入 incus"
pubDatetime: 2024-11-07
modDatetime: 2024-11-07
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/linux-gateway.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "利用 nftables 搭建 Linux 网关"
author: "zrr1999"
author: "Zhan Rongrui"
description: "与 OpenWRT 相比,自建 Linux 网关更加灵活,而且可以使用自己熟悉的任何发行版(以 ArchLinux 为例)"
pubDatetime: 2024-08-21
modDatetime: 2024-10-04
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/multi-agent-design-paradigms.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "多 Agent 系统设计范式:从理论到实践的完整指南"
author: "zrr1999"
author: "Zhan Rongrui"
description: "从设计方案与设计范式的宏观角度,系统梳理主流多 Agent 系统构建思路"
pubDatetime: 2026-01-25
modDatetime: 2026-01-25
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/openprose-case-study.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "OpenProse 案例研究:当 DSL 的执行器是大模型"
author: "zrr1999"
author: "Zhan Rongrui"
description: "以 OpenProse 为例,分析当领域专用语言的执行器由大模型充当时,为何会出现「形式确定、执行却不确定」的脱节,以及对多 Agent 与智能体式编程的设计启示。"
pubDatetime: 2026-01-25
modDatetime: 2026-01-25
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/pycapsule-dlpack.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "PyCapsule:Python 与其他语言之间的指针传递桥梁"
author: "zrr1999"
author: "Zhan Rongrui"
description: "介绍 PyCapsule 的概念、原理和在 DLPack 中的作用"
pubDatetime: 2026-01-19
modDatetime: 2026-01-25
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/pytest-introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Pytest:Python 测试框架入门指南"
author: "zrr1999"
author: "Zhan Rongrui"
description: "在开发深度学习框架 Boning 的过程中,我调研并引入了 pytest 及其插件生态。本文介绍 pytest 的核心特性以及我在项目中使用的插件"
pubDatetime: 2025-12-27
modDatetime: 2025-12-27
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/rational-decomposition.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "有理分式分解的一种快捷方法"
author: "zrr1999"
author: "Zhan Rongrui"
description: "在学习信号与系统等学科时,我们经常会遇到有理分式分解的问题,这里介绍一种有理分式分解的一种快捷方法"
pubDatetime: 2021-12-30
modDatetime: 2025-10-24
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/simple-cache.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#metadata((
title: "一种针对主干网络的缓存机制的简单实现",
author: "zrr1999",
author: "Zhan Rongrui",
description: "一种针对主干网络的缓存机制的简单实现",
pubDatetime: "2025-06-04",
tags: ("缓存", "深度学习"),
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/sparse-tensor.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "稀疏张量计算的简单实现"
author: "zrr1999"
author: "Zhan Rongrui"
description: "稀疏张量有 COO 和 CSR 两种常见的表示格式,这里用 Python 实现了稀疏张量的转置和求和算子"
pubDatetime: 2024-08-31
tags: ["稀疏张量"]
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/data/blog/welford-algorithm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Welford算法:在线计算均值和方差的优雅解决方案"
author: "zrr1999"
author: "Zhan Rongrui"
description: "Welford算法是一种在线计算均值和方差的数值稳定算法,本文从改进点、公式推导、具体实现三个方面详细介绍这一经典算法"
pubDatetime: 2025-10-24
tags: ["算法", "数值计算", "统计学"]
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@resvg/resvg-js": "^2.6.2",
"@tailwindcss/vite": "^4.2.4",
"@vite-pwa/astro": "^1.2.0",
"astro": "6.1.8",
"astro": "catalog:",
"astro-mermaid": "^2.0.0",
"astro-pagefind": "^2.0.0",
"astro-typst": "^0.12.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const SITE = {
website: "https://blog.zrr.dev/",
author: "zrr1999",
author: "Zhan Rongrui",
profile: "https://blog.zrr.dev/",
desc: "写一点对自己有用的笔记。",
title: "六个骨头的博客",
Expand Down
2 changes: 1 addition & 1 deletion apps/root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@astrojs/check": "^0.9.9",
"@lucide/astro": "^1.14.0",
"@tailwindcss/vite": "^4.2.4",
"astro": "6.1.8",
"astro": "catalog:",
"tailwindcss": "^4.2.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/root/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function getFriendIconUrls(friend: { url: string; icon?: string }): string[] {
<h1
class="display-font text-5xl font-semibold tracking-tight text-(--fg) md:text-6xl"
>
你好,我是 zrr
你好,我是六个骨头
</h1>
<p class="mt-5 text-lg leading-relaxed text-(--muted) md:text-xl">
百度飞桨研发工程师。做一些有意思的项目,也写一点对自己有用的笔记。
Expand Down
2 changes: 1 addition & 1 deletion apps/slides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@astrojs/preact": "^5.1.2",
"@tailwindcss/vite": "^4.2.4",
"@vite-pwa/astro": "^1.2.0",
"astro": "6.1.8",
"astro": "catalog:",
"preact": "^10.29.1",
"tailwindcss": "^4.2.4"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"prepare": "pnpx @j178/prek install --hook-type commit-msg --hook-type pre-commit"
},
"devDependencies": {
"oxlint": "1.61.0",
"oxlint": "1.64.0",
"vite-plus": "catalog:",
"wrangler": "4.84.1"
"wrangler": "4.90.1"
},
"packageManager": "pnpm@11.6.0"
}
Loading
Loading