@evo-dev/core 0.0.1-alpha.2 → 0.0.1-alpha.20
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/assets/skills/coding/knowledge-distillation/SKILL.md +5 -3
- package/assets/team/agents/code-reviewer.md +48 -0
- package/assets/team/agents/docs-maintainer.md +51 -0
- package/assets/team/agents/implementation-engineer.md +51 -0
- package/assets/team/agents/product-scope-analyst.md +58 -0
- package/assets/team/agents/release-engineer.md +55 -0
- package/assets/team/agents/security-boundary-reviewer.md +50 -0
- package/assets/team/agents/solution-architect.md +51 -0
- package/assets/team/agents/verification-engineer.md +51 -0
- package/assets/team/team.md +102 -0
- package/dist/assets/index.js +5 -5
- package/dist/config/index.js +793 -241
- package/dist/index.js +20840 -12908
- package/dist/plugins/index.js +13 -13
- package/package.json +1 -1
- package/src/agents/index.ts +1 -265
- package/src/code-agent-traces/index.ts +11 -12
- package/src/config/index.ts +2 -0
- package/src/config/settings.ts +116 -7
- package/src/config/store.ts +1 -1
- package/src/daemon/index.ts +1 -41
- package/src/evolution/candidates/index.ts +730 -0
- package/src/evolution/control/index.ts +20 -0
- package/src/evolution/evidence/analysis.ts +533 -0
- package/src/evolution/evidence/index.ts +3 -0
- package/src/evolution/evidence/session-memory/analysis.ts +287 -0
- package/src/evolution/evidence/session-memory/constants.ts +9 -0
- package/src/evolution/evidence/session-memory/index.ts +9 -0
- package/src/evolution/evidence/session-memory/paths.ts +29 -0
- package/src/evolution/evidence/session-memory/policy.ts +39 -0
- package/src/evolution/evidence/session-memory/retention.ts +643 -0
- package/src/evolution/evidence/session-memory/segment.ts +216 -0
- package/src/evolution/evidence/session-memory/semantic-packet.ts +408 -0
- package/src/evolution/evidence/session-memory/sensitivity.ts +335 -0
- package/src/evolution/evidence/session-memory/state-machine.ts +249 -0
- package/src/evolution/evidence/session-memory/storage.ts +744 -0
- package/src/evolution/evidence/session-memory/types.ts +296 -0
- package/src/evolution/evidence/session-memory/updater.ts +199 -0
- package/src/evolution/formatters.ts +169 -0
- package/src/evolution/imports/apply.ts +435 -0
- package/src/evolution/imports/diff.ts +472 -0
- package/src/evolution/imports/index.ts +7 -0
- package/src/evolution/imports/materialize.ts +640 -0
- package/src/evolution/imports/paths.ts +129 -0
- package/src/evolution/imports/stage.ts +414 -0
- package/src/evolution/imports/storage.ts +952 -0
- package/src/evolution/imports/types.ts +226 -0
- package/src/evolution/index.ts +19 -2827
- package/src/evolution/knowledge/change-store.ts +558 -0
- package/src/evolution/knowledge/changes.ts +459 -0
- package/src/evolution/knowledge/freshness.ts +69 -0
- package/src/{knowledge → evolution/knowledge}/index.ts +1532 -206
- package/src/evolution/knowledge/review.ts +446 -0
- package/src/evolution/knowledge/support.ts +135 -0
- package/src/evolution/paths.ts +44 -0
- package/src/evolution/processor/distillation.ts +518 -0
- package/src/evolution/processor/index.ts +3 -0
- package/src/evolution/processor/process.ts +594 -0
- package/src/{learning → evolution/review}/index.ts +10 -14
- package/src/evolution/schema.ts +639 -0
- package/src/evolution/shared.ts +1053 -0
- package/src/evolution/triggers/classification.ts +102 -0
- package/src/evolution/triggers/index.ts +295 -0
- package/src/hooks/index.ts +281 -197
- package/src/index.ts +15 -4
- package/src/projects/index.ts +934 -0
- package/src/runtime-logs/index.ts +100 -13
- package/src/team/index.ts +582 -3
- package/src/utils/errors.ts +13 -0
- package/src/utils/fs.ts +40 -0
- package/src/utils/hash.ts +9 -0
- package/src/utils/ids.ts +12 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/parsing.ts +11 -0
- package/src/utils/text.ts +18 -0
- package/src/utils/time.ts +5 -0
- package/src/workflow/index.ts +3 -21
- package/src/project/index.ts +0 -507
- package/src/task/index.ts +0 -840
package/src/daemon/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { randomBytes } from "node:crypto";
|
|
|
2
2
|
import { mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { type IncomingMessage, createServer } from "node:http";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
|
-
import { listEvolutionTriggers, processEvolutionTriggers } from "../evolution/index.ts";
|
|
5
|
+
import { listEvolutionTriggers, processEvolutionTriggers } from "../evolution/control/index.ts";
|
|
6
6
|
import { listObservabilityEvents } from "../observability/index.ts";
|
|
7
7
|
import {
|
|
8
8
|
type TeamRuntimeAdapter,
|
|
@@ -251,8 +251,6 @@ export async function handleDaemonRequest(
|
|
|
251
251
|
}
|
|
252
252
|
if (input.method !== "GET") return notFound(warnings);
|
|
253
253
|
|
|
254
|
-
if (input.path === "/tasks")
|
|
255
|
-
return ok(await collectTaskSummaries(input.homeDir, warnings), warnings);
|
|
256
254
|
if (input.path === "/observability/events")
|
|
257
255
|
return ok(await collectObservabilitySummaries(input.homeDir, warnings), warnings);
|
|
258
256
|
if (input.path === "/memory/candidates")
|
|
@@ -407,33 +405,6 @@ function isAllowedLocalOrigin(origin: string | null): boolean {
|
|
|
407
405
|
}
|
|
408
406
|
}
|
|
409
407
|
|
|
410
|
-
async function collectTaskSummaries(homeDir: string, warnings: string[]): Promise<unknown[]> {
|
|
411
|
-
const root = join(homeDir, ".evodev", "STATE", "tasks");
|
|
412
|
-
if (!(await pathExists(root))) {
|
|
413
|
-
warnings.push("Task store not found; returning empty tasks.");
|
|
414
|
-
return [];
|
|
415
|
-
}
|
|
416
|
-
const contracts = await collectNamedFiles(root, "contract.json");
|
|
417
|
-
const summaries: unknown[] = [];
|
|
418
|
-
for (const file of contracts) {
|
|
419
|
-
try {
|
|
420
|
-
const contract = JSON.parse(await readFile(file, "utf8"));
|
|
421
|
-
summaries.push(
|
|
422
|
-
sanitizeMetadata({
|
|
423
|
-
taskId: contract.taskId,
|
|
424
|
-
status: contract.status,
|
|
425
|
-
mode: contract.route?.mode ?? null,
|
|
426
|
-
workflowId: contract.route?.workflowId ?? null,
|
|
427
|
-
verificationStatus: contract.verification?.status ?? null,
|
|
428
|
-
}),
|
|
429
|
-
);
|
|
430
|
-
} catch {
|
|
431
|
-
warnings.push(`Skipped unreadable task contract: ${file}`);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return summaries;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
408
|
async function collectObservabilitySummaries(
|
|
438
409
|
homeDir: string,
|
|
439
410
|
warnings: string[],
|
|
@@ -841,17 +812,6 @@ function describeError(error: unknown): string {
|
|
|
841
812
|
return error instanceof Error ? error.message : String(error);
|
|
842
813
|
}
|
|
843
814
|
|
|
844
|
-
async function collectNamedFiles(root: string, name: string): Promise<string[]> {
|
|
845
|
-
const entries = await readdir(root, { withFileTypes: true });
|
|
846
|
-
const files: string[] = [];
|
|
847
|
-
for (const entry of entries) {
|
|
848
|
-
const path = join(root, entry.name);
|
|
849
|
-
if (entry.isDirectory()) files.push(...(await collectNamedFiles(path, name)));
|
|
850
|
-
else if (entry.isFile() && entry.name === name) files.push(path);
|
|
851
|
-
}
|
|
852
|
-
return files;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
815
|
function ok(data: unknown, warnings: string[]): { status: number; body: DaemonResponseBody } {
|
|
856
816
|
return { status: 200, body: { ok: true, data: sanitizeMetadata(data), warnings } };
|
|
857
817
|
}
|