chore: add repomix-output.xml to .gitignore

This commit is contained in:
Haitao Pan 2026-06-05 02:54:20 +00:00
parent 1e0658e004
commit 3bc137be6b
3 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/ node_modules/
coverage/ coverage/
*.tsbuildinfo *.tsbuildinfo
repomix-output.xml

View File

@ -223,3 +223,13 @@ pnpm test
pnpm typecheck pnpm typecheck
pnpm pack:check pnpm pack:check
``` ```
### Coding standards
- **No unused exports.** Functions and types that are only used within the same file must not be exported. An `export` keyword signals a public API surface that downstream consumers may depend on.
- **No legacy fallback chains.** When renaming config keys or environment variables, remove the old name from the codebase. Multiple fallback paths to the same dependent service (e.g., two env vars for the same secret) create confusion and mask configuration errors.
- **No hardcoded model identifiers** (e.g., kimi-k2.5, minimax-m2.7, glm-5). Model selection must come from configuration or the bridge.
- **No silent error swallowing.** Every `catch` block must log, warn, rethrow, or return a meaningful fallback. Empty `catch` and `.catch(() => {})` are forbidden.
- **No redundant indirection.** If function A only calls B which only calls C with no added logic, inline or remove the middle function.
- **No stale config references.** Scripts in `package.json`, CI workflows, and documentation must reference only tooling that still exists in the project.
- **Multi-agent references** in bridge protocol parameters (`multiAgent: true`, `mode: "multi-agent"`) are legitimate protocol constants and are not dead code. However, framework-level ARIS or internal multi-agent orchestration code that duplicates bridge functionality must be removed.

View File

@ -355,7 +355,7 @@ export async function readXWorkmateArtifact(input: ReadInput): Promise<XWorkmate
}; };
} }
export function formatArtifactManifestMarkdown(input: { function formatArtifactManifestMarkdown(input: {
remoteWorkingDirectory: string; remoteWorkingDirectory: string;
artifactScope?: string; artifactScope?: string;
scopeKind?: XWorkmateArtifactScopeKind; scopeKind?: XWorkmateArtifactScopeKind;
@ -917,7 +917,6 @@ function artifactRefSigningSecret(pluginConfig: Record<string, unknown>): string
return ( return (
optionalString(pluginConfig.artifactRefSigningSecret) || optionalString(pluginConfig.artifactRefSigningSecret) ||
optionalString(process.env.XWORKMATE_ARTIFACT_REF_SIGNING_SECRET) || optionalString(process.env.XWORKMATE_ARTIFACT_REF_SIGNING_SECRET) ||
optionalString(process.env.XWORKMATE_ARTIFACT_DOWNLOAD_SIGNING_SECRET) ||
GENERATED_ARTIFACT_REF_SECRET GENERATED_ARTIFACT_REF_SECRET
); );
} }