@evomap/evolver-core 2.0.0-beta.1 → 2.0.0-beta.10
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/gep/genes.jsonl +5 -0
- package/dist/algo/candidateAssembly.js +23 -14
- package/dist/algo/capabilityCandidates.d.ts +2 -0
- package/dist/algo/capabilityCandidates.js +5 -0
- package/dist/algo/conversationSniffer.d.ts +18 -0
- package/dist/algo/conversationSniffer.js +149 -0
- package/dist/algo/cycleEngine.d.ts +11 -0
- package/dist/algo/cycleEngine.js +14 -6
- package/dist/algo/cycleFailureClassifier.d.ts +1 -1
- package/dist/algo/cycleFailureClassifier.js +13 -5
- package/dist/algo/geneIntake.d.ts +14 -4
- package/dist/algo/geneIntake.js +37 -9
- package/dist/algo/geneSelection.d.ts +18 -1
- package/dist/algo/geneSelection.js +42 -18
- package/dist/algo/index.d.ts +2 -0
- package/dist/algo/index.js +2 -0
- package/dist/algo/memoryGraph.d.ts +62 -0
- package/dist/algo/memoryGraph.js +86 -0
- package/dist/algo/orchestrator.d.ts +3 -0
- package/dist/algo/orchestrator.js +14 -2
- package/dist/assetstore/assetSidecarRecords.d.ts +28 -0
- package/dist/assetstore/assetSidecarRecords.js +376 -0
- package/dist/assetstore/assetSidecarRecovery.d.ts +48 -0
- package/dist/assetstore/assetSidecarRecovery.js +288 -0
- package/dist/assetstore/assetStoreHealth.d.ts +75 -0
- package/dist/assetstore/assetStoreHealth.js +277 -0
- package/dist/assetstore/assetStoreLayout.d.ts +2 -0
- package/dist/assetstore/assetStoreLayout.js +6 -0
- package/dist/assetstore/assetStoreStorage.d.ts +42 -0
- package/dist/assetstore/assetStoreStorage.js +327 -0
- package/dist/assetstore/assetSyncLedger.d.ts +118 -0
- package/dist/assetstore/assetSyncLedger.js +745 -0
- package/dist/assetstore/index.d.ts +5 -1
- package/dist/assetstore/index.js +5 -1
- package/dist/assetstore/localJsonl.d.ts +12 -3
- package/dist/assetstore/localJsonl.js +131 -39
- package/dist/assetstore/pendingSignals.js +3 -1
- package/dist/assetstore/provenance.d.ts +27 -4
- package/dist/assetstore/provenance.js +107 -56
- package/dist/assetstore/provider.d.ts +26 -0
- package/dist/assetstore/provider.js +50 -0
- package/dist/assetstore/reviewFilter.js +5 -2
- package/dist/assetstore/reviewLedger.d.ts +14 -2
- package/dist/assetstore/reviewLedger.js +78 -43
- package/dist/assetstore/seedGenes.d.ts +3 -0
- package/dist/assetstore/seedGenes.js +134 -0
- package/dist/benchmark/antiGeneBenchmark.d.ts +2 -0
- package/dist/benchmark/antiGeneBenchmark.js +11 -1
- package/dist/benchmark/antiGeneImpact.d.ts +16 -0
- package/dist/benchmark/antiGeneImpact.js +34 -0
- package/dist/benchmark/antiGeneRollout.d.ts +2 -0
- package/dist/benchmark/antiGeneRollout.js +13 -1
- package/dist/benchmark/index.d.ts +2 -1
- package/dist/benchmark/index.js +2 -1
- package/dist/benchmark/triggerShift.d.ts +62 -0
- package/dist/benchmark/triggerShift.js +106 -0
- package/dist/events/eventArchive.d.ts +65 -0
- package/dist/events/eventArchive.js +343 -0
- package/dist/events/eventStore.js +2 -12
- package/dist/events/ingest.d.ts +1 -1
- package/dist/events/ingest.js +9 -0
- package/dist/events/paths.d.ts +10 -10
- package/dist/events/paths.js +20 -20
- package/dist/events/public.d.ts +3 -1
- package/dist/events/public.js +2 -1
- package/dist/events/retention.d.ts +24 -1
- package/dist/events/retention.js +133 -37
- package/dist/exec/autoExec.d.ts +6 -1
- package/dist/exec/autoExec.js +34 -0
- package/dist/exec/autonomousCycle.d.ts +2 -0
- package/dist/exec/autonomousCycle.js +5 -0
- package/dist/exec/claudeBridge.d.ts +21 -3
- package/dist/exec/claudeBridge.js +413 -26
- package/dist/exec/openPrRegistry.d.ts +8 -2
- package/dist/exec/openPrRegistry.js +32 -22
- package/dist/exec/prompt.js +9 -0
- package/dist/exec/runnerRegistry.d.ts +90 -18
- package/dist/exec/runnerRegistry.js +603 -42
- package/dist/exec/selfPrObfuscation.d.ts +2 -1
- package/dist/exec/selfPrObfuscation.js +19 -6
- package/dist/hub/agentDirectory.d.ts +90 -0
- package/dist/hub/agentDirectory.js +104 -0
- package/dist/hub/bindings.js +23 -3
- package/dist/hub/capability.d.ts +14 -2
- package/dist/hub/fake.d.ts +4 -2
- package/dist/hub/fake.js +3 -2
- package/dist/hub/index.d.ts +1 -0
- package/dist/hub/index.js +1 -0
- package/dist/hub/sanitize.js +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/issueReporter/index.d.ts +156 -0
- package/dist/issueReporter/index.js +1688 -0
- package/dist/mailbox/catalog.js +3 -0
- package/dist/mailbox/ipcServer.js +2 -2
- package/dist/mailbox/store.d.ts +14 -0
- package/dist/mailbox/store.js +44 -2
- package/dist/material/consumer.js +9 -6
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +1 -0
- package/dist/material/materialArchive.d.ts +81 -0
- package/dist/material/materialArchive.js +466 -0
- package/dist/material/materialStore.d.ts +1 -0
- package/dist/material/materialStore.js +6 -13
- package/dist/ops/savingsCore.js +1 -2
- package/dist/ops/selfUpdate.d.ts +10 -1
- package/dist/ops/selfUpdate.js +64 -15
- package/dist/personality/schema.d.ts +12 -12
- package/dist/schema/common.d.ts +1 -1
- package/dist/schema/common.js +1 -1
- package/dist/schema/material.d.ts +5 -5
- package/dist/strategy/constraintAblation.d.ts +64 -0
- package/dist/strategy/constraintAblation.js +3074 -0
- package/dist/strategy/index.d.ts +2 -1
- package/dist/strategy/index.js +2 -1
- package/dist/trace/trajectoryExport.js +2 -2
- package/dist/util/fetchPort.d.ts +1 -0
- package/dist/util/fetchPort.js +11 -0
- package/dist/util/fileLock.d.ts +24 -5
- package/dist/util/fileLock.js +288 -72
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.js +1 -0
- package/dist/wire/geneHints.d.ts +42 -1
- package/dist/wire/geneHints.js +52 -1
- package/dist/wire/index.d.ts +14 -2
- package/dist/wire/index.js +1 -1
- package/dist/workflow/dsl.d.ts +24 -3
- package/dist/workflow/dsl.js +4 -0
- package/dist/workflow/engine.d.ts +5 -1
- package/dist/workflow/engine.js +3 -0
- package/dist/workflow/index.d.ts +3 -1
- package/dist/workflow/index.js +3 -1
- package/dist/workflow/runtime.d.ts +110 -0
- package/dist/workflow/runtime.js +1298 -0
- package/dist/workflow/stateStore.d.ts +172 -0
- package/dist/workflow/stateStore.js +1044 -0
- package/package.json +6 -1
|
@@ -66,16 +66,16 @@ export declare const personalityStats: z.ZodObject<{
|
|
|
66
66
|
updatedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
success: number;
|
|
69
|
-
n: number;
|
|
70
69
|
updatedAt: string | null;
|
|
71
|
-
avgScore: number;
|
|
72
70
|
fail: number;
|
|
71
|
+
n: number;
|
|
72
|
+
avgScore: number;
|
|
73
73
|
}, {
|
|
74
74
|
success?: number | undefined;
|
|
75
|
-
n?: number | undefined;
|
|
76
75
|
updatedAt?: string | null | undefined;
|
|
77
|
-
avgScore?: number | undefined;
|
|
78
76
|
fail?: number | undefined;
|
|
77
|
+
n?: number | undefined;
|
|
78
|
+
avgScore?: number | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
export type PersonalityStats = z.infer<typeof personalityStats>;
|
|
81
81
|
/** 单条人格变更历史 (可审计; 也镜像进事件流). */
|
|
@@ -133,16 +133,16 @@ export declare const personalityModel: z.ZodObject<{
|
|
|
133
133
|
updatedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
135
|
success: number;
|
|
136
|
-
n: number;
|
|
137
136
|
updatedAt: string | null;
|
|
138
|
-
avgScore: number;
|
|
139
137
|
fail: number;
|
|
138
|
+
n: number;
|
|
139
|
+
avgScore: number;
|
|
140
140
|
}, {
|
|
141
141
|
success?: number | undefined;
|
|
142
|
-
n?: number | undefined;
|
|
143
142
|
updatedAt?: string | null | undefined;
|
|
144
|
-
avgScore?: number | undefined;
|
|
145
143
|
fail?: number | undefined;
|
|
144
|
+
n?: number | undefined;
|
|
145
|
+
avgScore?: number | undefined;
|
|
146
146
|
}>>>;
|
|
147
147
|
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
148
148
|
at: z.ZodString;
|
|
@@ -179,10 +179,10 @@ export declare const personalityModel: z.ZodObject<{
|
|
|
179
179
|
};
|
|
180
180
|
stats: Record<string, {
|
|
181
181
|
success: number;
|
|
182
|
-
n: number;
|
|
183
182
|
updatedAt: string | null;
|
|
184
|
-
avgScore: number;
|
|
185
183
|
fail: number;
|
|
184
|
+
n: number;
|
|
185
|
+
avgScore: number;
|
|
186
186
|
}>;
|
|
187
187
|
history: {
|
|
188
188
|
at: string;
|
|
@@ -205,10 +205,10 @@ export declare const personalityModel: z.ZodObject<{
|
|
|
205
205
|
} | undefined;
|
|
206
206
|
stats?: Record<string, {
|
|
207
207
|
success?: number | undefined;
|
|
208
|
-
n?: number | undefined;
|
|
209
208
|
updatedAt?: string | null | undefined;
|
|
210
|
-
avgScore?: number | undefined;
|
|
211
209
|
fail?: number | undefined;
|
|
210
|
+
n?: number | undefined;
|
|
211
|
+
avgScore?: number | undefined;
|
|
212
212
|
}> | undefined;
|
|
213
213
|
history?: {
|
|
214
214
|
at: string;
|
package/dist/schema/common.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const artifactRef: z.ZodObject<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export type ArtifactRef = z.infer<typeof artifactRef>;
|
|
24
24
|
/** runtime 来源 (D11). 'generic-chat' = 任何输出标准 OpenAI/Anthropic messages 的 AI(经 genericChatAdapter 接入). */
|
|
25
|
-
export declare const sourceAgent: z.ZodEnum<["claude-code", "codex", "cursor", "gemini", "kimi", "kiro", "opencode", "generic-chat"]>;
|
|
25
|
+
export declare const sourceAgent: z.ZodEnum<["claude-code", "codex", "cursor", "gemini", "antigravity", "kimi", "kiro", "opencode", "generic-chat"]>;
|
|
26
26
|
export type SourceAgent = z.infer<typeof sourceAgent>;
|
|
27
27
|
export declare const blastRadius: z.ZodEnum<["file", "module", "package", "system"]>;
|
|
28
28
|
export type BlastRadius = z.infer<typeof blastRadius>;
|
package/dist/schema/common.js
CHANGED
|
@@ -13,5 +13,5 @@ export const artifactRef = z.object({
|
|
|
13
13
|
size: z.number().int().nonnegative(),
|
|
14
14
|
});
|
|
15
15
|
/** runtime 来源 (D11). 'generic-chat' = 任何输出标准 OpenAI/Anthropic messages 的 AI(经 genericChatAdapter 接入). */
|
|
16
|
-
export const sourceAgent = z.enum(['claude-code', 'codex', 'cursor', 'gemini', 'kimi', 'kiro', 'opencode', 'generic-chat']);
|
|
16
|
+
export const sourceAgent = z.enum(['claude-code', 'codex', 'cursor', 'gemini', 'antigravity', 'kimi', 'kiro', 'opencode', 'generic-chat']);
|
|
17
17
|
export const blastRadius = z.enum(['file', 'module', 'package', 'system']);
|
|
@@ -21,7 +21,7 @@ export type Watermark = z.infer<typeof watermark>;
|
|
|
21
21
|
export declare const material: z.ZodEffects<z.ZodObject<{
|
|
22
22
|
materialId: z.ZodString;
|
|
23
23
|
/** Runtime agent that produced a session/tool source. Absent for agent-agnostic origins (proxy trace), #95. */
|
|
24
|
-
sourceAgent: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "cursor", "gemini", "kimi", "kiro", "opencode", "generic-chat"]>>;
|
|
24
|
+
sourceAgent: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "cursor", "gemini", "antigravity", "kimi", "kiro", "opencode", "generic-chat"]>>;
|
|
25
25
|
/** Origin class: a runtime agent session, or the proxy gateway's LLM trace (agent-agnostic), #95.
|
|
26
26
|
* Defaults to runtime_session so pre-#95 records (which only ever held sessions) parse unchanged. */
|
|
27
27
|
sourceKind: z.ZodDefault<z.ZodEnum<["runtime_session", "proxy_trace"]>>;
|
|
@@ -76,7 +76,7 @@ export declare const material: z.ZodEffects<z.ZodObject<{
|
|
|
76
76
|
consumerGroup: string;
|
|
77
77
|
feedsMaterial: boolean;
|
|
78
78
|
extensions: Record<string, unknown>;
|
|
79
|
-
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
79
|
+
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "antigravity" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
80
80
|
payloadRef?: {
|
|
81
81
|
path: string;
|
|
82
82
|
sha256: string;
|
|
@@ -95,7 +95,7 @@ export declare const material: z.ZodEffects<z.ZodObject<{
|
|
|
95
95
|
};
|
|
96
96
|
capturedAt: string;
|
|
97
97
|
consumerGroup: string;
|
|
98
|
-
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
98
|
+
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "antigravity" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
99
99
|
sourceKind?: "runtime_session" | "proxy_trace" | undefined;
|
|
100
100
|
payloadRef?: {
|
|
101
101
|
path: string;
|
|
@@ -120,7 +120,7 @@ export declare const material: z.ZodEffects<z.ZodObject<{
|
|
|
120
120
|
consumerGroup: string;
|
|
121
121
|
feedsMaterial: boolean;
|
|
122
122
|
extensions: Record<string, unknown>;
|
|
123
|
-
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
123
|
+
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "antigravity" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
124
124
|
payloadRef?: {
|
|
125
125
|
path: string;
|
|
126
126
|
sha256: string;
|
|
@@ -139,7 +139,7 @@ export declare const material: z.ZodEffects<z.ZodObject<{
|
|
|
139
139
|
};
|
|
140
140
|
capturedAt: string;
|
|
141
141
|
consumerGroup: string;
|
|
142
|
-
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
142
|
+
sourceAgent?: "claude-code" | "codex" | "cursor" | "gemini" | "antigravity" | "kimi" | "kiro" | "opencode" | "generic-chat" | undefined;
|
|
143
143
|
sourceKind?: "runtime_session" | "proxy_trace" | undefined;
|
|
144
144
|
payloadRef?: {
|
|
145
145
|
path: string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type ConstraintKind = 'must' | 'must_not';
|
|
2
|
+
export type ConstraintTraceSource = 'plan' | 'task' | 'trace';
|
|
3
|
+
export type ConstraintSeverity = 'low' | 'medium' | 'high';
|
|
4
|
+
export type SensitiveClass = 'credential' | 'email' | 'filesystem_path';
|
|
5
|
+
export type TaskSuccessStatus = 'success' | 'failure' | 'unknown';
|
|
6
|
+
export type TaskSuccessSource = 'oracle' | 'task_status' | 'manual' | 'trace';
|
|
7
|
+
export type SensitivitySuccessComparison = 'success_constraint_sensitive' | 'success_constraint_insensitive' | 'failure_constraint_sensitive' | 'failure_constraint_insensitive' | 'unknown_success';
|
|
8
|
+
export interface ConstraintTrace {
|
|
9
|
+
source: ConstraintTraceSource;
|
|
10
|
+
text: string;
|
|
11
|
+
traceId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ExtractedConstraint {
|
|
14
|
+
id: string;
|
|
15
|
+
kind: ConstraintKind;
|
|
16
|
+
textHash: string;
|
|
17
|
+
redactedText: string;
|
|
18
|
+
source: ConstraintTraceSource;
|
|
19
|
+
traceId?: string;
|
|
20
|
+
sensitiveClasses: SensitiveClass[];
|
|
21
|
+
}
|
|
22
|
+
export interface ConstraintAblatedPrompt {
|
|
23
|
+
originalPromptHash: string;
|
|
24
|
+
ablatedPromptHash: string;
|
|
25
|
+
removedConstraintIds: string[];
|
|
26
|
+
redactedPreview?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ConstraintViolation {
|
|
29
|
+
constraintId: string;
|
|
30
|
+
kind: ConstraintKind;
|
|
31
|
+
severity: ConstraintSeverity;
|
|
32
|
+
evidenceHash: string;
|
|
33
|
+
matchedTerms: string[];
|
|
34
|
+
}
|
|
35
|
+
export interface TaskSuccessLabel {
|
|
36
|
+
status: TaskSuccessStatus;
|
|
37
|
+
source: TaskSuccessSource;
|
|
38
|
+
}
|
|
39
|
+
export interface ConstraintAblationScore {
|
|
40
|
+
source: 'constraint_ablation_replay';
|
|
41
|
+
sensitivity: number;
|
|
42
|
+
ablationCount: number;
|
|
43
|
+
baselineViolationCount: number;
|
|
44
|
+
ablatedViolationCount: number;
|
|
45
|
+
mustViolationCount: number;
|
|
46
|
+
mustNotViolationCount: number;
|
|
47
|
+
taskSuccess: TaskSuccessLabel;
|
|
48
|
+
comparison: SensitivitySuccessComparison;
|
|
49
|
+
}
|
|
50
|
+
export interface ConstraintAblationScoreInput {
|
|
51
|
+
baselineViolations: readonly ConstraintViolation[];
|
|
52
|
+
ablatedViolations: readonly ConstraintViolation[];
|
|
53
|
+
removedConstraintIds: readonly string[];
|
|
54
|
+
ablationCount: number;
|
|
55
|
+
taskSuccess: TaskSuccessLabel;
|
|
56
|
+
sensitivityThreshold?: number;
|
|
57
|
+
}
|
|
58
|
+
export declare function redactConstraintText(text: string): string;
|
|
59
|
+
export declare function extractConstraints(traces: readonly ConstraintTrace[]): ExtractedConstraint[];
|
|
60
|
+
export declare function buildConstraintAblatedPrompts(prompt: string, constraints: readonly ExtractedConstraint[], opts?: {
|
|
61
|
+
includeRedactedPreview?: boolean;
|
|
62
|
+
}): ConstraintAblatedPrompt[];
|
|
63
|
+
export declare function detectConstraintViolations(output: string, constraints: readonly ExtractedConstraint[]): ConstraintViolation[];
|
|
64
|
+
export declare function computeConstraintAblationScore(input: ConstraintAblationScoreInput): ConstraintAblationScore;
|