Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge pull request #2836 from zqchris/fix-pi-credential-read-bypass

Lizi1ff5cbcc9d29
diff --cc packages/maker-core/src/agents/pi/__tests__/cindyBridgeSource.test.ts
index b71a892e7d,99865e872b..96838b5fe8
--- a/packages/maker-core/src/agents/pi/__tests__/cindyBridgeSource.test.ts
+++ b/packages/maker-core/src/agents/pi/__tests__/cindyBridgeSource.test.ts
@@@ -20,13 -22,13 +22,17 @@@ import { runInNewContext } from 'node:v
import ts from 'typescript';
import { describe, expect, it } from 'vitest';
-import { CINDY_BRIDGE_EXTENSION_SOURCE } from '../cindy-bridge-source.js';
+import {
+ CINDY_BRIDGE_EXTENSION_SOURCE,
+ CINDY_PI_BASH_DEFAULT_TIMEOUT_SECONDS,
+ CINDY_PI_BASH_MAX_TIMEOUT_SECONDS,
+} from '../cindy-bridge-source.js';
type ReviewSearchHelpers = {
+ collectReadonlyCredentialEvidence: (
+ toolName: string,
+ input: unknown,
+ ) => { paths: string[]; touchesCredential: boolean };
filterReviewGrepResult: (
result: unknown,
input: unknown,