Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7e80b04
fix(bilibili): 分页恢复未绑定来源锚点
xiaoland Nov 27, 2026
887e4bc
ref(core): 用独立结果验证领取、恢复、取消与发布合同
xiaoland Nov 28, 2026
9d11afd
ref(ci): 统一本地与 CI 契约入口并为浏览器验收创建独占数据库
xiaoland Nov 28, 2026
0a70e73
fix(web): 在已连接页面验证可访问性并修复标题与地标
xiaoland Nov 28, 2026
cf2be5c
ref(webext): 通过真实浏览器重启和读回验证采集结果
xiaoland Nov 28, 2026
deb62a7
fix(mail): 在隔离邮件正文中显示已材化的 CID 图片
xiaoland Nov 28, 2026
4eff425
fix(web): 避免图谱预览把不完整关系写入共享缓存
xiaoland Nov 28, 2026
83c3b7a
fix(twitter): 使用 Host 词表验收图谱键盘交互
xiaoland Nov 28, 2026
76c98ef
fix(webext): 等待空配置初始化后再设置迁移夹具
xiaoland Nov 28, 2026
f8ac19e
fix(mail): 共享并发只读 MIME 解析并保留循环保护
xiaoland Nov 28, 2026
4cd9c52
test(mail): 保留真实 Python Peer 的附件下载专项验收
xiaoland Nov 28, 2026
ef3d61c
test(mail): 对齐内建解析器注册与 Peer JSON 边界
xiaoland Nov 28, 2026
3ccf4b7
test(workspace): verify resolved configuration and development commands
xiaoland Nov 28, 2026
ddab152
fix(core): bind blob and observability requests to the SDK transport
xiaoland Nov 28, 2026
b2f0d13
fix(core): renew expired database tokens for long-running peers
xiaoland Nov 28, 2026
6a047fe
test(core): exercise cancellation, observation and persisted settings…
xiaoland Nov 28, 2026
715a5c4
fix(capture): reject a stored capture with no materials or annotation
xiaoland Nov 28, 2026
9728521
test(web): verify native extension workflows and fail-fast SQL restore
xiaoland Nov 28, 2026
047c652
test(extensions): preserve wire contracts and exercise Mail recovery …
xiaoland Nov 28, 2026
0b38597
refactor(extensions): keep build configuration private to each producer
xiaoland Nov 28, 2026
ee95521
fix(runtime): require admitted image digests and external database pr…
xiaoland Nov 28, 2026
14e1698
test(release): verify registry handoffs and public assets over HTTP
xiaoland Nov 28, 2026
6942a79
test(delivery): run actual UI overlays and Pages preview preparation
xiaoland Nov 28, 2026
b844d66
fix(webext): enforce browser versions and preserve published install …
xiaoland Nov 28, 2026
c72adbc
test(webext): exercise production wake events and Firefox navigation
xiaoland Nov 28, 2026
d7bc5a9
test(web): verify source overlay commands and native setup selectors
xiaoland Nov 28, 2026
7cc8317
test(webext): compare the actual worktree profile on macOS
xiaoland Nov 28, 2026
a54379e
test(release): distinguish SDK publication refusals by their diagnostics
xiaoland Nov 28, 2026
4ff0a7c
test(webext): keep native clicks responsive on a locked macOS display
xiaoland Nov 28, 2026
ae1a4b7
fix(dev): wait for leased Core search capabilities
xiaoland Nov 28, 2026
e600fec
test: retire obsolete task-specific acceptance scripts
xiaoland Nov 28, 2026
15c59c4
test: remove redundant checks at their owning boundaries
xiaoland Nov 28, 2026
8bc072b
test(web): keep GitHub participation check in the same document
xiaoland Nov 28, 2026
d23d692
fix(core): bind cached Peer credentials to the selected secret
xiaoland Nov 28, 2026
7e4ceb5
test: verify owning behavior and reuse Core in Web acceptance
xiaoland Nov 28, 2026
d39b2a7
test: tighten cold input rejection and remove repeated assertions
xiaoland Nov 28, 2026
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
9 changes: 9 additions & 0 deletions .changeset/bind-sdk-transport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@inkcre/core': patch
---

独立 SDK 的二进制存储和外部观测请求会沿用构造连接时的 Fetch,调用方稍后更换全局 Fetch 时,已有客户端仍通过原传输访问该连接。

持续运行的 Web Peer 在已有 JWT 到期后会在下一次数据库或 Peer 请求时重新签名。

切换连接时,发往新数据库的请求使用新连接的密钥,即使旧令牌仍在有效期内。
7 changes: 7 additions & 0 deletions .changeset/clear-web-heading-hierarchy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@inkcre/web': patch
---

补齐来源页面的一级标题,并修正 Peer 与扩展卡片的标题层级。将扩展卡片内的 Peer 控制行标记为具名分组,避免多张卡片产生同名地标,使辅助技术能够按页面和卡片导航,同时保留现有视觉样式。

图谱预览不再将有限场景的可见边当作节点的完整关系集合缓存,修复重新打开邮件后无法读取已下载内嵌图片等场景之外的持久化内容。
6 changes: 6 additions & 0 deletions .changeset/direct-native-build-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@inkcre/ext-github': patch
'@inkcre/ext-twitter': patch
---

简化 MF 构建配置,保留既有可重定位制品及 Host 公开入口。
7 changes: 7 additions & 0 deletions .changeset/quiet-mail-inline-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@inkcre/ext-mail': patch
---

修复普通邮件隔离正文无法显示已下载 CID 图片的问题:将已材化的图片字节转换为正文专用 data URL,清除源邮件自带的 SVG 图像引用,保留禁止脚本与同源访问的 sandbox,以及远程图片阻断;MIME 条目的独立打开继续使用 Blob URL。

允许图谱预览与邮件详情共享同一 MIME 部件的只读加载,避免重新打开已下载图片时误报正在加载。刷新、显式材化和不同投影保持独立;进入自定义或递归内容前停止接纳共享读取,保留循环终止保护和自定义内容兼容。
5 changes: 5 additions & 0 deletions .changeset/tidy-bilibili-anchor-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@inkcre/ext-bilibili': patch
---

恢复收藏采集时分页查找已有来源锚点,避免来源更新失败后因数据库单页上限重复创建锚点。
5 changes: 5 additions & 0 deletions .changeset/validate-empty-capture-graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@inkcre/ext-capture': patch
---

已存储的采集同时缺少材料和附注时显示读取错误。只有附注的采集仍可正常阅读。
52 changes: 21 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Verify canonical candidate admission boundaries
run: node --test scripts/test-core-release.mjs

- name: Resolve admitted Core once to an immutable release
id: release
run: node scripts/resolve-core-release.mjs
Expand Down Expand Up @@ -129,22 +126,8 @@ jobs:
- name: 构建并校验相互兼容的 Host 与 MF 产物
run: pnpm build

- name: Verify independent SDK and Job observations
run: pnpm check:sdk && pnpm check:web

- name: 验证 B 站收藏采集规则
run: pnpm --filter @inkcre/ext-bilibili test

- name: Verify independent MF publication
run: >-
node --test scripts/test-extension-publication.mjs scripts/test-core-sdk-publication.mjs
scripts/tests/independent-extension-release.test.mjs
scripts/tests/release-checkout.test.mjs
scripts/tests/core-sdk-compatibility.test.mjs
scripts/tests/pages-preview.test.mjs
scripts/tests/browser-automation-transport.test.mjs
scripts/tests/job-cancellation.test.mjs
scripts/tests/source-anchor.test.mjs
- name: 验证 SDK、运行时、采集与发布的独立契约
run: pnpm test:contracts

peer-database:
# Existing branch protection binds this exact check name.
Expand Down Expand Up @@ -180,8 +163,8 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run the selected real core service and isolated browser/database chain
run: pnpm test:e2e:web
- name: 验证邮件阅读及独占浏览器与数据库链路
run: pnpm test:e2e:web:with-mail
env:
INKCRE_CORE_IMAGE: ${{ needs.core-release.outputs.image }}

Expand All @@ -193,12 +176,14 @@ jobs:
path: |
test-results/playwright
test-results/database
test-results/mail-newsletter
if-no-files-found: ignore
retention-days: 7

browser-extension:
# Existing branch protection binds this exact check name.
name: client-webext E2E
needs: core-release
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -218,23 +203,28 @@ jobs:
- name: Install the frozen workspace
run: pnpm install --frozen-lockfile

- name: Install the exact browser engine
run: pnpm exec playwright install --with-deps chromium

- name: Load the exact Chromium extension build
run: pnpm test:e2e:webext
- name: 安装锁定的 Chromium 和 Firefox
run: pnpm exec playwright install --with-deps chromium firefox

- name: Build the Firefox extension
run: pnpm --filter @inkcre/webext build:firefox
- name: Authenticate to GHCR
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Verify WebExt delivery rules
run: node --test scripts/tests/webext-release.test.mjs
- name: 验证浏览器扩展产物与独占数据库采集、重启恢复
run: pnpm test:e2e:webext
env:
INKCRE_CORE_IMAGE: ${{ needs.core-release.outputs.image }}

- name: Upload browser evidence on failure
if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: browser-extension-failure-evidence
path: test-results/playwright
path: |
test-results/playwright
test-results/database
if-no-files-found: ignore
retention-days: 7
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ For UI work, read the installed `@inkcre/ui-web` package's `DESIGN.md` and `skil
- `.env` files are dotenv data, not shell scripts. Load them through the application because values may contain shell metacharacters.
- Generated contracts under `contracts/` are checked-in projections. Change their source and regenerate; do not edit them directly.
- The `apps/webext/` WXT extension and the `apps/web/` Vue SPA share `@inkcre/core` but run in different security contexts. Changes that cross the seam must be validated against both runtimes.
- For test changes, check the actual entry point in `package.json`, `playwright.config.ts`, and CI. Put independent producer fixtures (including legacy persisted bytes) in the tests. Exercise browser recovery through the shipped wake-up events.
- Development, release, and artifact checks under `scripts/` are acceptance entry points too. Exercise CLI behavior at process boundaries and check the resolved configuration or published artifact when that owns the contract.
- Follow `.agents/prompts/code-for-human.md` for source changes.

## Governance And Workflow
Expand Down
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ and the distinction between applications, SDK packages, and native Extension rel

## Verification and pull requests

Run `pnpm check` before opening or updating a pull request. Also run the behavior-level command that
matches the change, normally `pnpm test:e2e:web`, `pnpm test:e2e:webext`, or a narrower documented
acceptance command. Record what actually ran and any unmet environment condition in the pull-request
body; a package build is not evidence of browser behavior.
打开或更新 PR 前运行 `pnpm check`,并执行与变更行为对应的验收入口。`pnpm test:e2e` 包含 Web、WebExt 的独占数据库/浏览器路径和 Mail 阅读验收;局部复验使用 `pnpm test:e2e:web`、`pnpm test:e2e:webext`、`pnpm test:mail` 或文档中说明的专项入口。

Core 构建完成后,`pnpm test:contracts` 可集中验证 SDK、运行时、采集和发布合同;本地默认检查与 CI 使用同一入口。在 PR 正文记录实际执行结果、跳过项和未满足的环境条件。产物构建通过不能代替浏览器行为证明。

External fork workflows require maintainer approval and receive no preview or production credentials.
A maintainer may perform a trusted Pages preview after the ordinary checks pass. Frozen dependency
Expand Down
5 changes: 2 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build",
"test:a11y": "playwright test accessibility.spec.ts",
"test:a11y:report": "playwright test accessibility.spec.ts --reporter=html"
"test:a11y": "pnpm -w test:e2e:web --project accessibility",
"test:a11y:report": "pnpm -w test:e2e:web --project accessibility --reporter=html"
},
"dependencies": {
"@dagrejs/dagre": "^3.1.2",
Expand All @@ -34,7 +34,6 @@
"zod-config": "^1.4.0"
},
"devDependencies": {
"@axe-core/playwright": "^4.14.0",
"@iconify-json/mdi": "^1.2.3",
"@module-federation/vite": "^1.1.0",
"@playwright/test": "1.61.1",
Expand Down
27 changes: 0 additions & 27 deletions apps/web/playwright.config.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

&__id {
@include apply-font(label-lg);
display: inline;
margin: 0;
}

&__version {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const {
<article class="extension-card" :aria-label="extension.nickname ?? extension.name">
<header class="extension-card__header">
<div>
<span class="extension-card__id">{{ extension.nickname ?? extension.name }}</span>
<h2 class="extension-card__id">{{ extension.nickname ?? extension.name }}</h2>
<p class="extension-card__hint">{{ extension.name }}</p>
</div>
<div class="extension-card__actions">
Expand All @@ -102,9 +102,10 @@ const {
</div>
</header>
<h3 class="extension-card__hint">{{ t('extension.usedOnPeers') }}</h3>
<section
<div
v-for="{ peer, pin, status } in rows"
:key="peer.id"
role="group"
class="extension-card__peer-row"
:aria-label="peer.name"
>
Expand Down Expand Up @@ -177,7 +178,7 @@ const {
@click="removePeer(peer)"
/>
</div>
</section>
</div>
<InkDialog
v-model="docsOpen"
:title="t('extension.documentation')"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/peer/peerCard/peerCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

&__title {
// Title is an inline-edit InkInput, not plain text — remove its default
// h3-adjacent margins that conflict with the inline input's own layout.
// heading margins that conflict with the inline input's own layout.
display: flex;
align-items: center;
min-inline-size: 0;
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/peer/peerCard/peerCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ const formatCapability = (cap: unknown): string => {
<article class="entity-card peer-card">
<header class="entity-card__header">
<div class="entity-card__title-group">
<h3 class="entity-card__title peer-card__title">
<h2 class="entity-card__title peer-card__title">
<InkInput v-model="peer.name" type="inline" @confirm="savePeer" />
</h3>
</h2>
<span :class="['peer-card__status-badge', statusConfig.class]">
{{ statusConfig.text }}
</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/styles/entity-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// <article class="entity-card">
// <header class="entity-card__header">
// <div class="entity-card__title-group">
// <h3 class="entity-card__title">…</h3>
// <h2 class="entity-card__title">…</h2>
// <span class="entity-card__status">…</span> <!-- optional -->
// </div>
// </header>
Expand Down
27 changes: 6 additions & 21 deletions apps/web/src/views/info-base/graph/useGraphScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export interface GraphSceneHooks {

interface PendingPreview {
block: Block
relations: Relation[]
owns: () => boolean
}

Expand Down Expand Up @@ -192,11 +191,6 @@ export function useGraphScene(hooks: GraphSceneHooks) {
}

function setGraph(graph: GraphModel): void {
const incident = new Map<number, Relation[]>()
for (const relation of graph.relations) {
incident.set(relation.from_, [...(incident.get(relation.from_) ?? []), relation])
incident.set(relation.to_, [...(incident.get(relation.to_) ?? []), relation])
}
nodes.value = graph.blocks.map((block) =>
blockNode(block, {
focal: block.id === focalBlock.value,
Expand All @@ -211,7 +205,7 @@ export function useGraphScene(hooks: GraphSceneHooks) {
})
)
applyPresentation()
void loadPreviews(graph.blocks, incident, generation)
void loadPreviews(graph.blocks, generation)
// Layout after a short delay to allow Vue Flow to measure nodes.
setTimeout(() => {
hooks.layoutAndRoute()
Expand All @@ -233,7 +227,8 @@ export function useGraphScene(hooks: GraphSceneHooks) {
const lookupBeforeRestore =
allowRestoreRetry && ['idle', 'restoring'].includes(extensionHostRestoreState.value)
try {
const resolver = await ResolverCache.getResolver(entry.block, entry.relations)
// A bounded scene is not the complete relation set owned by a Resolver.
const resolver = await ResolverCache.getResolver(entry.block)
const solvedContent = await resolver.getSolvedContent({ materializeMissing: false })
if (!entry.owns()) return
nodes.value = nodes.value.map((node) =>
Expand Down Expand Up @@ -270,11 +265,7 @@ export function useGraphScene(hooks: GraphSceneHooks) {
pendingPreviews.value = []
})

async function loadPreviews(
blocks: Block[],
incident: Map<number, Relation[]>,
current: number
): Promise<void> {
async function loadPreviews(blocks: Block[], current: number): Promise<void> {
previewReady.value = false
const meta = { ...configStore.metaConfig }
const host = getExtensionHost()
Expand All @@ -288,7 +279,7 @@ export function useGraphScene(hooks: GraphSceneHooks) {
async function worker(): Promise<void> {
while (index < blocks.length) {
const block = blocks[index++]!
await resolvePreview({ block, relations: incident.get(block.id) ?? [], owns }, true)
await resolvePreview({ block, owns }, true)
}
}
await Promise.all(Array.from({ length: Math.min(4, blocks.length) }, () => worker()))
Expand Down Expand Up @@ -466,12 +457,6 @@ export function useGraphScene(hooks: GraphSceneHooks) {
return
}

const incident = new Map<number, Relation[]>()
for (const relation of graph.relations) {
incident.set(relation.from_, [...(incident.get(relation.from_) ?? []), relation])
incident.set(relation.to_, [...(incident.get(relation.to_) ?? []), relation])
}

// Add new nodes with temporary positions (positioned by the layout hook)
const newNodes = newBlocks.map((block) =>
blockNode(block, {
Expand Down Expand Up @@ -510,7 +495,7 @@ export function useGraphScene(hooks: GraphSceneHooks) {
}))

// Load previews for new blocks only
void loadPreviews(newBlocks, incident, generation)
void loadPreviews(newBlocks, generation)

// Layout only new nodes around existing graph, then focus camera.
// Set skipLayout to prevent the view from re-layouting all nodes.
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/views/sources/sources.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async function onCreateSource(source: Source) {

<template>
<main class="sources-view" :aria-label="t('sidePanel.sources')">
<h1 class="sr-only">{{ t('sidePanel.sources') }}</h1>
<header v-if="connected" class="sources-view__header">
<CreateSource @create="onCreateSource" />
<InkButton
Expand Down
Loading
Loading