@bolloon/bolloon-agent 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.auto-evolve-calls +1 -0
- package/.last-auto-evolve-baseline +1 -0
- package/Bolloon.md +103 -0
- package/dist/agents/pi-sdk.js +264 -12
- package/dist/bootstrap/bootstrap.js +114 -0
- package/dist/bootstrap/context-collector.js +296 -0
- package/dist/bootstrap/lifecycle-hooks.js +109 -0
- package/dist/bootstrap/project-context.js +151 -0
- package/dist/index.js +11 -0
- package/dist/llm/pi-ai.js +31 -21
- package/dist/pi-ecosystem-judgment/adaptive-scan.js +231 -0
- package/dist/pi-ecosystem-judgment/causal-judge.js +449 -0
- package/dist/pi-ecosystem-judgment/detect-hook.js +168 -0
- package/dist/pi-ecosystem-judgment/distill-prompt.js +226 -0
- package/dist/pi-ecosystem-judgment/evolve-judgment.js +170 -0
- package/dist/pi-ecosystem-judgment/human-value-pipeline.js +21 -0
- package/dist/pi-ecosystem-judgment/human-value-store.js +283 -22
- package/dist/pi-ecosystem-judgment/injection-gate.js +166 -0
- package/dist/pi-ecosystem-judgment/monitor-gate.js +188 -0
- package/dist/security/builtin-guards.js +124 -0
- package/dist/security/context-router-tool.js +106 -0
- package/dist/security/react-harness.js +143 -0
- package/dist/security/tool-gate.js +235 -0
- package/dist/utils/auto-evolve-policy.js +117 -0
- package/dist/utils/clamp.js +7 -0
- package/dist/utils/double.js +6 -0
- package/dist/web/client.js +668 -204
- package/dist/web/index.html +24 -4
- package/dist/web/server.js +531 -10
- package/lefthook.yml +29 -0
- package/package.json +3 -2
- package/scripts/auto-evolve-loop.ts +376 -0
- package/scripts/auto-evolve-oneshot.sh +155 -0
- package/scripts/auto-evolve-snapshot.sh +136 -0
- package/scripts/detect-schema-changes.sh +48 -0
- package/scripts/diff-reviewer.ts +159 -0
- package/scripts/weekly-report.ts +364 -0
- package/src/agents/pi-sdk.ts +293 -15
- package/src/bootstrap/bootstrap.ts +132 -0
- package/src/bootstrap/context-collector.ts +342 -0
- package/src/bootstrap/lifecycle-hooks.ts +176 -0
- package/src/bootstrap/project-context.ts +163 -0
- package/src/index.ts +11 -0
- package/src/llm/pi-ai.ts +33 -22
- package/src/security/builtin-guards.ts +162 -0
- package/src/security/context-router-tool.ts +122 -0
- package/src/security/react-harness.ts +177 -0
- package/src/security/tool-gate.ts +294 -0
- package/src/utils/auto-evolve-policy.ts +138 -0
- package/src/utils/clamp.ts +5 -0
- package/src/web/client.js +668 -204
- package/src/web/index.html +24 -4
- package/src/web/server.ts +596 -10
- package/staging/auto-evolve/clean-001/.review-verdict +9 -0
- package/staging/auto-evolve/clean-001/clean-001.patch +14 -0
- package/staging/auto-evolve/e2e-001/.patch-id +1 -0
- package/staging/auto-evolve/e2e-001/.review-verdict +12 -0
- package/staging/auto-evolve/e2e-001/e2e-001.patch +11 -0
- package/staging/auto-evolve/test-bad/.review-verdict +12 -0
- package/staging/auto-evolve/test-bad/test-bad.patch +11 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
diff --git a/src/utils/_e2e-clean.ts b/src/utils/_e2e-clean.ts
|
|
2
|
+
new file mode 100644
|
|
3
|
+
index 0000000..314f5a1
|
|
4
|
+
--- /dev/null
|
|
5
|
+
+++ b/src/utils/_e2e-clean.ts
|
|
6
|
+
@@ -0,0 +1,8 @@
|
|
7
|
+
+/**
|
|
8
|
+
+ * _e2e-clean.ts — 干净的 LLM 改动示例
|
|
9
|
+
+ */
|
|
10
|
+
+export function formatBytes(n: number): string {
|
|
11
|
+
+ if (n < 1024) return `${n} B`;
|
|
12
|
+
+ if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`;
|
|
13
|
+
+ return `${(n / 1024 / 1024).toFixed(1)} MB`;
|
|
14
|
+
+}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e2e-001
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
diff --git a/src/utils/_e2e-real.ts b/src/utils/_e2e-real.ts
|
|
2
|
+
new file mode 100644
|
|
3
|
+
index 0000000..abcaa65
|
|
4
|
+
--- /dev/null
|
|
5
|
+
+++ b/src/utils/_e2e-real.ts
|
|
6
|
+
@@ -0,0 +1,5 @@
|
|
7
|
+
+export function processInput(input: any): any {
|
|
8
|
+
+ const result: any = JSON.parse(input);
|
|
9
|
+
+ console.log('processing', result);
|
|
10
|
+
+ return result;
|
|
11
|
+
+}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
diff --git a/src/utils/foo.ts b/src/utils/foo.ts
|
|
2
|
+
new file mode 100644
|
|
3
|
+
index 0000000..abc
|
|
4
|
+
--- /dev/null
|
|
5
|
+
+++ b/src/utils/foo.ts
|
|
6
|
+
@@ -0,0 +1,5 @@
|
|
7
|
+
+export function parseInput(input: string): any {
|
|
8
|
+
+ const x: any = JSON.parse(input);
|
|
9
|
+
+ console.log('parsed', x);
|
|
10
|
+
+ return x;
|
|
11
|
+
+}
|