@evomap/evolver-core 2.0.0-beta.0
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/dist/algo/antiDistill.d.ts +35 -0
- package/dist/algo/antiDistill.js +167 -0
- package/dist/algo/bans.d.ts +6 -0
- package/dist/algo/bans.js +33 -0
- package/dist/algo/candidateAssembly.d.ts +65 -0
- package/dist/algo/candidateAssembly.js +196 -0
- package/dist/algo/capabilityCandidates.d.ts +38 -0
- package/dist/algo/capabilityCandidates.js +131 -0
- package/dist/algo/confidence.d.ts +106 -0
- package/dist/algo/confidence.js +196 -0
- package/dist/algo/cycleEngine.d.ts +143 -0
- package/dist/algo/cycleEngine.js +417 -0
- package/dist/algo/cycleFailureClassifier.d.ts +52 -0
- package/dist/algo/cycleFailureClassifier.js +104 -0
- package/dist/algo/epigenetics.d.ts +14 -0
- package/dist/algo/epigenetics.js +41 -0
- package/dist/algo/evolutionEvent.d.ts +23 -0
- package/dist/algo/evolutionEvent.js +24 -0
- package/dist/algo/exploration.d.ts +34 -0
- package/dist/algo/exploration.js +55 -0
- package/dist/algo/geneHealth.d.ts +24 -0
- package/dist/algo/geneHealth.js +16 -0
- package/dist/algo/geneIntake.d.ts +37 -0
- package/dist/algo/geneIntake.js +100 -0
- package/dist/algo/genePromotion.d.ts +48 -0
- package/dist/algo/genePromotion.js +53 -0
- package/dist/algo/geneSelection.d.ts +128 -0
- package/dist/algo/geneSelection.js +222 -0
- package/dist/algo/index.d.ts +18 -0
- package/dist/algo/index.js +18 -0
- package/dist/algo/mutation.d.ts +12 -0
- package/dist/algo/mutation.js +22 -0
- package/dist/algo/orchestrator.d.ts +65 -0
- package/dist/algo/orchestrator.js +63 -0
- package/dist/algo/solidify.d.ts +43 -0
- package/dist/algo/solidify.js +63 -0
- package/dist/algo/strategyPresets.d.ts +32 -0
- package/dist/algo/strategyPresets.js +61 -0
- package/dist/assetstore/index.d.ts +8 -0
- package/dist/assetstore/index.js +8 -0
- package/dist/assetstore/learningHistory.d.ts +25 -0
- package/dist/assetstore/learningHistory.js +38 -0
- package/dist/assetstore/localJsonl.d.ts +34 -0
- package/dist/assetstore/localJsonl.js +182 -0
- package/dist/assetstore/pendingSignals.d.ts +22 -0
- package/dist/assetstore/pendingSignals.js +171 -0
- package/dist/assetstore/provenance.d.ts +39 -0
- package/dist/assetstore/provenance.js +109 -0
- package/dist/assetstore/provider.d.ts +48 -0
- package/dist/assetstore/provider.js +36 -0
- package/dist/assetstore/remoteStub.d.ts +32 -0
- package/dist/assetstore/remoteStub.js +36 -0
- package/dist/assetstore/reviewFilter.d.ts +20 -0
- package/dist/assetstore/reviewFilter.js +44 -0
- package/dist/assetstore/reviewLedger.d.ts +55 -0
- package/dist/assetstore/reviewLedger.js +121 -0
- package/dist/benchmark/antiGeneBenchmark.d.ts +79 -0
- package/dist/benchmark/antiGeneBenchmark.js +241 -0
- package/dist/benchmark/antiGeneRollout.d.ts +80 -0
- package/dist/benchmark/antiGeneRollout.js +256 -0
- package/dist/benchmark/benchmark.d.ts +32 -0
- package/dist/benchmark/benchmark.js +26 -0
- package/dist/benchmark/evolutionThesisSolver.d.ts +25 -0
- package/dist/benchmark/evolutionThesisSolver.js +41 -0
- package/dist/benchmark/index.d.ts +5 -0
- package/dist/benchmark/index.js +5 -0
- package/dist/benchmark/thesis.d.ts +85 -0
- package/dist/benchmark/thesis.js +150 -0
- package/dist/bootstrap/envFingerprint.d.ts +45 -0
- package/dist/bootstrap/envFingerprint.js +72 -0
- package/dist/bootstrap/index.d.ts +2 -0
- package/dist/bootstrap/index.js +2 -0
- package/dist/bootstrap/selfEvolve.d.ts +36 -0
- package/dist/bootstrap/selfEvolve.js +26 -0
- package/dist/cycle/cycleTimeline.d.ts +35 -0
- package/dist/cycle/cycleTimeline.js +74 -0
- package/dist/cycle/index.d.ts +2 -0
- package/dist/cycle/index.js +2 -0
- package/dist/cycle/stateMachine.d.ts +6 -0
- package/dist/cycle/stateMachine.js +25 -0
- package/dist/daemon/cycleContext.d.ts +12 -0
- package/dist/daemon/cycleContext.js +13 -0
- package/dist/daemon/drain.d.ts +11 -0
- package/dist/daemon/drain.js +16 -0
- package/dist/daemon/guards.d.ts +87 -0
- package/dist/daemon/guards.js +142 -0
- package/dist/daemon/idempotency.d.ts +11 -0
- package/dist/daemon/idempotency.js +36 -0
- package/dist/daemon/idleScheduler.d.ts +55 -0
- package/dist/daemon/idleScheduler.js +181 -0
- package/dist/daemon/index.d.ts +8 -0
- package/dist/daemon/index.js +8 -0
- package/dist/daemon/stepRunner.d.ts +12 -0
- package/dist/daemon/stepRunner.js +31 -0
- package/dist/daemon/unhandledRejectionWindow.d.ts +21 -0
- package/dist/daemon/unhandledRejectionWindow.js +52 -0
- package/dist/daemon/watchdog.d.ts +11 -0
- package/dist/daemon/watchdog.js +14 -0
- package/dist/events/eventSchema.d.ts +132 -0
- package/dist/events/eventSchema.js +30 -0
- package/dist/events/eventStore.d.ts +32 -0
- package/dist/events/eventStore.js +137 -0
- package/dist/events/ingest.d.ts +34 -0
- package/dist/events/ingest.js +61 -0
- package/dist/events/paths.d.ts +22 -0
- package/dist/events/paths.js +44 -0
- package/dist/events/projectors.d.ts +9 -0
- package/dist/events/projectors.js +11 -0
- package/dist/events/public.d.ts +14 -0
- package/dist/events/public.js +8 -0
- package/dist/events/replayer.d.ts +26 -0
- package/dist/events/replayer.js +67 -0
- package/dist/events/reports.d.ts +90 -0
- package/dist/events/reports.js +244 -0
- package/dist/events/retention.d.ts +70 -0
- package/dist/events/retention.js +177 -0
- package/dist/events/sink.d.ts +5 -0
- package/dist/events/sink.js +1 -0
- package/dist/exec/autoExec.d.ts +137 -0
- package/dist/exec/autoExec.js +221 -0
- package/dist/exec/autonomousCycle.d.ts +48 -0
- package/dist/exec/autonomousCycle.js +78 -0
- package/dist/exec/claudeBridge.d.ts +112 -0
- package/dist/exec/claudeBridge.js +219 -0
- package/dist/exec/index.d.ts +9 -0
- package/dist/exec/index.js +11 -0
- package/dist/exec/openPrRegistry.d.ts +60 -0
- package/dist/exec/openPrRegistry.js +130 -0
- package/dist/exec/policy/blastRadius.d.ts +31 -0
- package/dist/exec/policy/blastRadius.js +67 -0
- package/dist/exec/policy/constraints.d.ts +26 -0
- package/dist/exec/policy/constraints.js +62 -0
- package/dist/exec/policy/destructive.d.ts +45 -0
- package/dist/exec/policy/destructive.js +108 -0
- package/dist/exec/policy/failureMode.d.ts +33 -0
- package/dist/exec/policy/failureMode.js +49 -0
- package/dist/exec/policy/index.d.ts +24 -0
- package/dist/exec/policy/index.js +30 -0
- package/dist/exec/policy/protectedPaths.d.ts +17 -0
- package/dist/exec/policy/protectedPaths.js +65 -0
- package/dist/exec/policyCheck.d.ts +2 -0
- package/dist/exec/policyCheck.js +7 -0
- package/dist/exec/prompt.d.ts +34 -0
- package/dist/exec/prompt.js +108 -0
- package/dist/exec/proofOfWork.d.ts +9 -0
- package/dist/exec/proofOfWork.js +11 -0
- package/dist/exec/runnerRegistry.d.ts +123 -0
- package/dist/exec/runnerRegistry.js +237 -0
- package/dist/exec/selfPr.d.ts +83 -0
- package/dist/exec/selfPr.js +104 -0
- package/dist/exec/selfPrObfuscation.d.ts +21 -0
- package/dist/exec/selfPrObfuscation.js +85 -0
- package/dist/hooks/hooks.d.ts +117 -0
- package/dist/hooks/hooks.js +89 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hub/assetCallLog.d.ts +43 -0
- package/dist/hub/assetCallLog.js +72 -0
- package/dist/hub/bindings.d.ts +28 -0
- package/dist/hub/bindings.js +90 -0
- package/dist/hub/capability.d.ts +278 -0
- package/dist/hub/capability.js +1 -0
- package/dist/hub/conversationDistiller.d.ts +88 -0
- package/dist/hub/conversationDistiller.js +264 -0
- package/dist/hub/fake.d.ts +45 -0
- package/dist/hub/fake.js +69 -0
- package/dist/hub/hubReview.d.ts +91 -0
- package/dist/hub/hubReview.js +106 -0
- package/dist/hub/index.d.ts +10 -0
- package/dist/hub/index.js +10 -0
- package/dist/hub/ingest.d.ts +15 -0
- package/dist/hub/ingest.js +15 -0
- package/dist/hub/questionGenerator.d.ts +59 -0
- package/dist/hub/questionGenerator.js +406 -0
- package/dist/hub/reuseDecision.d.ts +87 -0
- package/dist/hub/reuseDecision.js +127 -0
- package/dist/hub/sanitize.d.ts +52 -0
- package/dist/hub/sanitize.js +321 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +27 -0
- package/dist/mailbox/catalog.d.ts +17 -0
- package/dist/mailbox/catalog.js +53 -0
- package/dist/mailbox/daemon.d.ts +48 -0
- package/dist/mailbox/daemon.js +61 -0
- package/dist/mailbox/dispatch.d.ts +46 -0
- package/dist/mailbox/dispatch.js +62 -0
- package/dist/mailbox/envelope.d.ts +43 -0
- package/dist/mailbox/envelope.js +52 -0
- package/dist/mailbox/index.d.ts +8 -0
- package/dist/mailbox/index.js +8 -0
- package/dist/mailbox/ipcServer.d.ts +46 -0
- package/dist/mailbox/ipcServer.js +168 -0
- package/dist/mailbox/requestReply.d.ts +40 -0
- package/dist/mailbox/requestReply.js +77 -0
- package/dist/mailbox/store.d.ts +74 -0
- package/dist/mailbox/store.js +308 -0
- package/dist/mailbox/wake.d.ts +45 -0
- package/dist/mailbox/wake.js +60 -0
- package/dist/material/boundary.d.ts +7 -0
- package/dist/material/boundary.js +14 -0
- package/dist/material/consumer.d.ts +21 -0
- package/dist/material/consumer.js +52 -0
- package/dist/material/emit.d.ts +55 -0
- package/dist/material/emit.js +52 -0
- package/dist/material/factory.d.ts +27 -0
- package/dist/material/factory.js +25 -0
- package/dist/material/index.d.ts +8 -0
- package/dist/material/index.js +8 -0
- package/dist/material/materialStore.d.ts +24 -0
- package/dist/material/materialStore.js +76 -0
- package/dist/material/sampling.d.ts +21 -0
- package/dist/material/sampling.js +39 -0
- package/dist/material/sources.d.ts +25 -0
- package/dist/material/sources.js +33 -0
- package/dist/material/watermark.d.ts +21 -0
- package/dist/material/watermark.js +76 -0
- package/dist/observers/cursorRewriteObserver.d.ts +46 -0
- package/dist/observers/cursorRewriteObserver.js +103 -0
- package/dist/observers/distillObserver.d.ts +31 -0
- package/dist/observers/distillObserver.js +93 -0
- package/dist/observers/index.d.ts +5 -0
- package/dist/observers/index.js +5 -0
- package/dist/observers/observerBus.d.ts +44 -0
- package/dist/observers/observerBus.js +73 -0
- package/dist/observers/reflectionObserver.d.ts +31 -0
- package/dist/observers/reflectionObserver.js +124 -0
- package/dist/observers/valueDigestObserver.d.ts +50 -0
- package/dist/observers/valueDigestObserver.js +70 -0
- package/dist/ops/cleanup.d.ts +23 -0
- package/dist/ops/cleanup.js +68 -0
- package/dist/ops/health.d.ts +37 -0
- package/dist/ops/health.js +96 -0
- package/dist/ops/index.d.ts +7 -0
- package/dist/ops/index.js +7 -0
- package/dist/ops/recall.d.ts +65 -0
- package/dist/ops/recall.js +152 -0
- package/dist/ops/reuseOutcomes.d.ts +68 -0
- package/dist/ops/reuseOutcomes.js +126 -0
- package/dist/ops/savingsCore.d.ts +47 -0
- package/dist/ops/savingsCore.js +112 -0
- package/dist/ops/selfUpdate.d.ts +106 -0
- package/dist/ops/selfUpdate.js +294 -0
- package/dist/ops/valueLedger.d.ts +205 -0
- package/dist/ops/valueLedger.js +238 -0
- package/dist/ops/valueOutreach.d.ts +70 -0
- package/dist/ops/valueOutreach.js +244 -0
- package/dist/personality/drift.d.ts +45 -0
- package/dist/personality/drift.js +106 -0
- package/dist/personality/events.d.ts +25 -0
- package/dist/personality/events.js +37 -0
- package/dist/personality/evolveOps.d.ts +20 -0
- package/dist/personality/evolveOps.js +93 -0
- package/dist/personality/index.d.ts +11 -0
- package/dist/personality/index.js +11 -0
- package/dist/personality/mutate.d.ts +21 -0
- package/dist/personality/mutate.js +39 -0
- package/dist/personality/pivot.d.ts +23 -0
- package/dist/personality/pivot.js +22 -0
- package/dist/personality/prompt.d.ts +6 -0
- package/dist/personality/prompt.js +62 -0
- package/dist/personality/riskGate.d.ts +42 -0
- package/dist/personality/riskGate.js +80 -0
- package/dist/personality/schema.d.ts +255 -0
- package/dist/personality/schema.js +119 -0
- package/dist/personality/select.d.ts +46 -0
- package/dist/personality/select.js +71 -0
- package/dist/personality/stats.d.ts +46 -0
- package/dist/personality/stats.js +82 -0
- package/dist/personality/store.d.ts +35 -0
- package/dist/personality/store.js +92 -0
- package/dist/schema/common.d.ts +28 -0
- package/dist/schema/common.js +17 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/material.d.ts +201 -0
- package/dist/schema/material.js +50 -0
- package/dist/schema/problem.d.ts +160 -0
- package/dist/schema/problem.js +45 -0
- package/dist/schema/proofOfWork.d.ts +97 -0
- package/dist/schema/proofOfWork.js +9 -0
- package/dist/schema/signal.d.ts +41 -0
- package/dist/schema/signal.js +19 -0
- package/dist/shadow/index.d.ts +6 -0
- package/dist/shadow/index.js +6 -0
- package/dist/shadow/jsonlSink.d.ts +17 -0
- package/dist/shadow/jsonlSink.js +27 -0
- package/dist/shadow/redact.d.ts +11 -0
- package/dist/shadow/redact.js +18 -0
- package/dist/shadow/shadowHub.d.ts +12 -0
- package/dist/shadow/shadowHub.js +42 -0
- package/dist/shadow/shadowMailbox.d.ts +17 -0
- package/dist/shadow/shadowMailbox.js +25 -0
- package/dist/shadow/shadowStore.d.ts +18 -0
- package/dist/shadow/shadowStore.js +55 -0
- package/dist/shadow/sink.d.ts +37 -0
- package/dist/shadow/sink.js +18 -0
- package/dist/signals/cycleHistoryFromEvents.d.ts +11 -0
- package/dist/signals/cycleHistoryFromEvents.js +96 -0
- package/dist/signals/expand.d.ts +34 -0
- package/dist/signals/expand.js +125 -0
- package/dist/signals/extractor.d.ts +25 -0
- package/dist/signals/extractor.js +57 -0
- package/dist/signals/index.d.ts +6 -0
- package/dist/signals/index.js +6 -0
- package/dist/signals/metaSignals.d.ts +57 -0
- package/dist/signals/metaSignals.js +158 -0
- package/dist/signals/signalGate.d.ts +15 -0
- package/dist/signals/signalGate.js +40 -0
- package/dist/signals/traceSignals.d.ts +44 -0
- package/dist/signals/traceSignals.js +123 -0
- package/dist/signatures/classifier.d.ts +16 -0
- package/dist/signatures/classifier.js +29 -0
- package/dist/signatures/index.d.ts +2 -0
- package/dist/signatures/index.js +2 -0
- package/dist/signatures/signatures.d.ts +22 -0
- package/dist/signatures/signatures.js +42 -0
- package/dist/strategy/experiment.d.ts +48 -0
- package/dist/strategy/experiment.js +63 -0
- package/dist/strategy/index.d.ts +2 -0
- package/dist/strategy/index.js +2 -0
- package/dist/strategy/strategyPoint.d.ts +30 -0
- package/dist/strategy/strategyPoint.js +23 -0
- package/dist/trace/index.d.ts +2 -0
- package/dist/trace/index.js +2 -0
- package/dist/trace/trajectory.d.ts +82 -0
- package/dist/trace/trajectory.js +117 -0
- package/dist/trace/trajectoryExport.d.ts +237 -0
- package/dist/trace/trajectoryExport.js +1818 -0
- package/dist/trigger/budget.d.ts +16 -0
- package/dist/trigger/budget.js +20 -0
- package/dist/trigger/engine.d.ts +12 -0
- package/dist/trigger/engine.js +23 -0
- package/dist/trigger/index.d.ts +6 -0
- package/dist/trigger/index.js +6 -0
- package/dist/trigger/problemBuilder.d.ts +24 -0
- package/dist/trigger/problemBuilder.js +32 -0
- package/dist/trigger/trigger.d.ts +22 -0
- package/dist/trigger/trigger.js +27 -0
- package/dist/trigger/valueModel.d.ts +26 -0
- package/dist/trigger/valueModel.js +25 -0
- package/dist/trigger/wfq.d.ts +13 -0
- package/dist/trigger/wfq.js +25 -0
- package/dist/util/fileLock.d.ts +24 -0
- package/dist/util/fileLock.js +227 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +2 -0
- package/dist/util/version.d.ts +12 -0
- package/dist/util/version.js +51 -0
- package/dist/verify/index.d.ts +4 -0
- package/dist/verify/index.js +4 -0
- package/dist/verify/rollback.d.ts +22 -0
- package/dist/verify/rollback.js +33 -0
- package/dist/verify/sandboxRunner.d.ts +39 -0
- package/dist/verify/sandboxRunner.js +116 -0
- package/dist/verify/sandboxedValidation.d.ts +35 -0
- package/dist/verify/sandboxedValidation.js +56 -0
- package/dist/verify/validation.d.ts +41 -0
- package/dist/verify/validation.js +85 -0
- package/dist/wire/canonicalize.golden.d.ts +23 -0
- package/dist/wire/canonicalize.golden.js +46 -0
- package/dist/wire/geneHints.d.ts +64 -0
- package/dist/wire/geneHints.js +100 -0
- package/dist/wire/index.d.ts +91 -0
- package/dist/wire/index.js +3 -0
- package/dist/wire/schemaGate.d.ts +11 -0
- package/dist/wire/schemaGate.js +49 -0
- package/dist/workflow/dsl.d.ts +54 -0
- package/dist/workflow/dsl.js +15 -0
- package/dist/workflow/engine.d.ts +30 -0
- package/dist/workflow/engine.js +94 -0
- package/dist/workflow/index.d.ts +2 -0
- package/dist/workflow/index.js +2 -0
- package/package.json +29 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
export declare const CODING_TRAJECTORY_SCHEMA = "evomap.coding_trajectory.v1";
|
|
2
|
+
export interface TraceReadStats {
|
|
3
|
+
rowsScanned: number;
|
|
4
|
+
rowsRead: number;
|
|
5
|
+
invalidJson: number;
|
|
6
|
+
encryptedRows: number;
|
|
7
|
+
skippedMissingSecret: number;
|
|
8
|
+
decryptFailures: number;
|
|
9
|
+
nonTraceSkipped: number;
|
|
10
|
+
}
|
|
11
|
+
export interface NodeSecretKeyringEntry {
|
|
12
|
+
version?: string | number;
|
|
13
|
+
node_secret_version?: string | number;
|
|
14
|
+
nodeSecretVersion?: string | number;
|
|
15
|
+
node_secret?: string;
|
|
16
|
+
nodeSecret?: string;
|
|
17
|
+
secret?: string;
|
|
18
|
+
}
|
|
19
|
+
export type NodeSecretKeyringInput = Record<string, string> | readonly NodeSecretKeyringEntry[];
|
|
20
|
+
export interface TraceReadOptions {
|
|
21
|
+
nodeSecret?: string;
|
|
22
|
+
nodeSecretKeyring?: NodeSecretKeyringInput;
|
|
23
|
+
hubPrivateKey?: string;
|
|
24
|
+
allowPartial?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface NormalizedToolCall {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
input?: unknown;
|
|
30
|
+
arguments?: unknown;
|
|
31
|
+
function?: unknown;
|
|
32
|
+
bytes: number;
|
|
33
|
+
declared?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface CodingTrajectoryAttempt {
|
|
36
|
+
attempt_index: number;
|
|
37
|
+
model?: string | null;
|
|
38
|
+
provider?: string;
|
|
39
|
+
upstream_mode?: string;
|
|
40
|
+
status?: number | null;
|
|
41
|
+
error?: string;
|
|
42
|
+
request_body?: unknown;
|
|
43
|
+
response_body?: unknown;
|
|
44
|
+
body_truncated?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface CodingTrajectoryTurn {
|
|
47
|
+
turn_index: number;
|
|
48
|
+
request_id: string;
|
|
49
|
+
timestamp: string;
|
|
50
|
+
provider: string;
|
|
51
|
+
endpoint: string;
|
|
52
|
+
model: string;
|
|
53
|
+
chosen_model?: string;
|
|
54
|
+
original_model?: string;
|
|
55
|
+
status: number | null;
|
|
56
|
+
duration_ms: number | null;
|
|
57
|
+
ttfb_ms?: number | null;
|
|
58
|
+
is_stream: boolean;
|
|
59
|
+
finish_reason: string;
|
|
60
|
+
response_id: string;
|
|
61
|
+
previous_response_id: string;
|
|
62
|
+
input_tokens: number;
|
|
63
|
+
output_tokens: number;
|
|
64
|
+
metadata?: unknown;
|
|
65
|
+
usage?: unknown;
|
|
66
|
+
risk?: unknown;
|
|
67
|
+
fidelity?: unknown;
|
|
68
|
+
confidentiality?: unknown;
|
|
69
|
+
request_headers?: unknown;
|
|
70
|
+
response_headers?: unknown;
|
|
71
|
+
transport?: unknown;
|
|
72
|
+
transport_metadata?: unknown;
|
|
73
|
+
source_record?: unknown;
|
|
74
|
+
source_record_index?: number;
|
|
75
|
+
raw_row?: unknown;
|
|
76
|
+
raw_row_index?: number;
|
|
77
|
+
request_body: unknown;
|
|
78
|
+
response_body: unknown;
|
|
79
|
+
reasoning?: unknown;
|
|
80
|
+
thinking_empty?: boolean;
|
|
81
|
+
reasoning_signature?: string;
|
|
82
|
+
encrypted_signature?: string;
|
|
83
|
+
encrypted_content?: unknown;
|
|
84
|
+
diff?: unknown;
|
|
85
|
+
validation?: unknown;
|
|
86
|
+
tool_calls: NormalizedToolCall[];
|
|
87
|
+
redaction?: string;
|
|
88
|
+
body_truncated?: boolean;
|
|
89
|
+
attempts?: CodingTrajectoryAttempt[];
|
|
90
|
+
response_events_truncated?: boolean;
|
|
91
|
+
error?: string;
|
|
92
|
+
stream_error?: string;
|
|
93
|
+
stream_cancelled?: boolean;
|
|
94
|
+
complete: boolean;
|
|
95
|
+
incomplete_reasons?: string[];
|
|
96
|
+
}
|
|
97
|
+
export interface CodingTrajectoryNativeCall {
|
|
98
|
+
call_index: number;
|
|
99
|
+
provider?: string;
|
|
100
|
+
timestamp?: string;
|
|
101
|
+
request_time?: string;
|
|
102
|
+
response_time?: string;
|
|
103
|
+
ttfb_ms?: number | null;
|
|
104
|
+
request_headers?: unknown;
|
|
105
|
+
response_headers?: unknown;
|
|
106
|
+
transport?: unknown;
|
|
107
|
+
transport_metadata?: unknown;
|
|
108
|
+
request_body?: unknown;
|
|
109
|
+
response_body?: unknown;
|
|
110
|
+
metadata?: unknown;
|
|
111
|
+
usage?: unknown;
|
|
112
|
+
risk?: unknown;
|
|
113
|
+
fidelity?: unknown;
|
|
114
|
+
confidentiality?: unknown;
|
|
115
|
+
source_record?: unknown;
|
|
116
|
+
raw_row?: unknown;
|
|
117
|
+
redaction?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface CodingTrajectory {
|
|
120
|
+
schema: typeof CODING_TRAJECTORY_SCHEMA;
|
|
121
|
+
session_id: string;
|
|
122
|
+
source_kind?: 'proxy_trace' | 'runtime_session';
|
|
123
|
+
source_agent?: string;
|
|
124
|
+
source_path?: string;
|
|
125
|
+
session_model?: string;
|
|
126
|
+
session_provider?: string;
|
|
127
|
+
session_tools?: unknown;
|
|
128
|
+
client_source?: string;
|
|
129
|
+
system_prompt?: string;
|
|
130
|
+
metadata?: unknown;
|
|
131
|
+
usage?: unknown;
|
|
132
|
+
risk?: unknown;
|
|
133
|
+
fidelity?: unknown;
|
|
134
|
+
confidentiality?: unknown;
|
|
135
|
+
source_record?: unknown;
|
|
136
|
+
source_records?: unknown[];
|
|
137
|
+
raw_rows?: unknown[];
|
|
138
|
+
task: string;
|
|
139
|
+
providers: string[];
|
|
140
|
+
endpoints: string[];
|
|
141
|
+
languages: string[];
|
|
142
|
+
stats: {
|
|
143
|
+
turns: number;
|
|
144
|
+
input_tokens: number;
|
|
145
|
+
output_tokens: number;
|
|
146
|
+
total_tokens: number;
|
|
147
|
+
tool_call_count: number;
|
|
148
|
+
tool_types: Record<string, number>;
|
|
149
|
+
has_tool_calls: boolean;
|
|
150
|
+
has_code_edit: boolean;
|
|
151
|
+
has_test_execution: boolean;
|
|
152
|
+
test_commands: string[];
|
|
153
|
+
has_failure_correction: boolean;
|
|
154
|
+
has_truncated_stream: boolean;
|
|
155
|
+
has_incomplete_turns: boolean;
|
|
156
|
+
};
|
|
157
|
+
native_calls?: CodingTrajectoryNativeCall[];
|
|
158
|
+
turns: CodingTrajectoryTurn[];
|
|
159
|
+
}
|
|
160
|
+
type JsonRecord = Record<string, unknown>;
|
|
161
|
+
export interface RuntimeSessionTurn {
|
|
162
|
+
role: 'user' | 'assistant' | 'tool' | 'system';
|
|
163
|
+
text: string;
|
|
164
|
+
timestamp?: string;
|
|
165
|
+
model?: string;
|
|
166
|
+
inputTokens?: number;
|
|
167
|
+
outputTokens?: number;
|
|
168
|
+
toolName?: string;
|
|
169
|
+
toolInput?: unknown;
|
|
170
|
+
toolUseId?: string;
|
|
171
|
+
toolResult?: unknown;
|
|
172
|
+
errorMessage?: string;
|
|
173
|
+
reasoning?: boolean;
|
|
174
|
+
thinkingEmpty?: boolean;
|
|
175
|
+
reasoningSignature?: string;
|
|
176
|
+
encryptedSignature?: string;
|
|
177
|
+
encryptedContent?: unknown;
|
|
178
|
+
sourceRecord?: unknown;
|
|
179
|
+
rawRow?: unknown;
|
|
180
|
+
metadata?: unknown;
|
|
181
|
+
usage?: unknown;
|
|
182
|
+
risk?: unknown;
|
|
183
|
+
fidelity?: unknown;
|
|
184
|
+
confidentiality?: unknown;
|
|
185
|
+
isMeta?: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface RuntimeSessionNativeCall {
|
|
188
|
+
provider?: string;
|
|
189
|
+
timestamp?: string;
|
|
190
|
+
request_time?: string;
|
|
191
|
+
response_time?: string;
|
|
192
|
+
ttfb_ms?: number;
|
|
193
|
+
request_headers?: unknown;
|
|
194
|
+
response_headers?: unknown;
|
|
195
|
+
transport?: unknown;
|
|
196
|
+
transport_metadata?: unknown;
|
|
197
|
+
request_body?: unknown;
|
|
198
|
+
response_body?: unknown;
|
|
199
|
+
request?: unknown;
|
|
200
|
+
response?: unknown;
|
|
201
|
+
metadata?: unknown;
|
|
202
|
+
usage?: unknown;
|
|
203
|
+
risk?: unknown;
|
|
204
|
+
fidelity?: unknown;
|
|
205
|
+
confidentiality?: unknown;
|
|
206
|
+
sourceRecord?: unknown;
|
|
207
|
+
rawRow?: unknown;
|
|
208
|
+
}
|
|
209
|
+
export interface RuntimeSessionTrajectoryInput {
|
|
210
|
+
sourceAgent: string;
|
|
211
|
+
sourcePath: string;
|
|
212
|
+
sessionId?: string;
|
|
213
|
+
provider?: string;
|
|
214
|
+
model?: string;
|
|
215
|
+
tools?: unknown;
|
|
216
|
+
startedAt?: string;
|
|
217
|
+
clientSource?: string;
|
|
218
|
+
systemPrompt?: string;
|
|
219
|
+
metadata?: unknown;
|
|
220
|
+
usage?: unknown;
|
|
221
|
+
risk?: unknown;
|
|
222
|
+
fidelity?: unknown;
|
|
223
|
+
confidentiality?: unknown;
|
|
224
|
+
sourceRecord?: unknown;
|
|
225
|
+
rawRows?: readonly unknown[];
|
|
226
|
+
incompleteReasons?: readonly string[];
|
|
227
|
+
nativeCalls?: readonly RuntimeSessionNativeCall[];
|
|
228
|
+
turns: readonly RuntimeSessionTurn[];
|
|
229
|
+
}
|
|
230
|
+
export declare function stableUserIdHash(value: unknown): string;
|
|
231
|
+
export declare function readTraceRowsFromJsonl(text: string, opts?: TraceReadOptions): {
|
|
232
|
+
rows: JsonRecord[];
|
|
233
|
+
stats: TraceReadStats;
|
|
234
|
+
};
|
|
235
|
+
export declare function buildCodingTrajectoryFromSessionLog(input: RuntimeSessionTrajectoryInput): CodingTrajectory | null;
|
|
236
|
+
export declare function buildCodingTrajectories(rows: readonly JsonRecord[]): CodingTrajectory[];
|
|
237
|
+
export {};
|