docs: document channel plugin contracts · openclaw/openclaw@867d789
plugins-core.authorize-config-write.policy.contract.test.ts
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Reaction message id tests cover channel action message id extraction and normalization. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { resolveReactionMessageId } from "./reaction-message-id.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channel catalog contract tests cover bundled and registry-backed channel catalog invariants. |
1 | 2 | import { |
2 | 3 | describeBundledMetadataOnlyChannelCatalogContract, |
3 | 4 | describeChannelCatalogEntryContract, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channel import guardrail tests cover forbidden imports across channel plugin boundaries. |
1 | 2 | import { spawnSync } from "node:child_process"; |
2 | 3 | import fs from "node:fs"; |
3 | 4 | import { basename, dirname, resolve } from "node:path"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard A tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 0, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard B tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 1, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard C tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 2, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard D tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 3, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard E tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 4, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard F tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 5, shardCount: 8 }); |
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Directory registry shard G tests cover directory channel contracts against registry-backed fixtures. |
1 | 2 | import { installDirectoryContractRegistryShard } from "./test-helpers/registry-backed-contract-shards.js"; |
2 | 3 | |
3 | 4 | installDirectoryContractRegistryShard({ shardIndex: 6, shardCount: 8 }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。