fix(ci): clear signal and docs guard blockers (#85693)

* fix(signal): use lint-safe test api export

* docs: avoid private key sentinel example
This commit is contained in:
Vincent Koc
2026-05-23 18:27:12 +08:00
committed by GitHub
parent cc6c3728c7
commit 3a1d4dd43f
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ Use placeholders that are human-readable but do not resemble real secrets.
## Avoid these patterns in docs
- Private key sentinels such as `-----BEGIN PRIVATE KEY-----`.
- Literal PEM private-key header or footer text.
- Prefixes that resemble live credentials, for example `sk-...`, `xoxb-...`, `AKIA...`.
- Realistic-looking bearer tokens copied from runtime logs.

View File

@@ -1,12 +1,12 @@
import os from "node:os";
import path from "node:path";
import { describe, expect, it } from "vitest";
import { __testing } from "./daemon.js";
import { testApi } from "./daemon.js";
describe("signal daemon args", () => {
it("expands home-relative configPath before passing it to signal-cli", () => {
expect(
__testing.buildDaemonArgs({
testApi.buildDaemonArgs({
cliPath: "signal-cli",
configPath: "~/.openclaw/signal-cli",
httpHost: "127.0.0.1",

View File

@@ -163,7 +163,7 @@ export function spawnSignalDaemon(opts: SignalDaemonOpts): SignalDaemonHandle {
};
}
export const __testing = {
export const testApi = {
buildDaemonArgs,
resolveSignalCliConfigPath,
} as const;