@tangle-network/agent-eval 2.0.12 → 2.0.13
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/CHANGELOG.md +15 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-C0FBdYa6.d.ts → agent-profile-8S2LfCvs.d.ts} +4 -4
- package/dist/{agent-profile-C0FBdYa6.d.ts.map → agent-profile-8S2LfCvs.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +36 -4
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +1 -1
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/{benchmark-command-Be5O6A2v.js → benchmark-command-C7ObyGm9.js} +177 -29
- package/dist/benchmark-command-C7ObyGm9.js.map +1 -0
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +6 -6
- package/dist/campaign/index.js +7 -7
- package/dist/{campaign-CE08mvQO.js → campaign-CaO2k8Jb.js} +7 -7
- package/dist/{campaign-CE08mvQO.js.map → campaign-CaO2k8Jb.js.map} +1 -1
- package/dist/{campaign-evidence-DRvr7lZU.d.ts → campaign-evidence-DcTgo4ze.d.ts} +2 -2
- package/dist/{campaign-evidence-DRvr7lZU.d.ts.map → campaign-evidence-DcTgo4ze.d.ts.map} +1 -1
- package/dist/cli.js +616 -24
- package/dist/cli.js.map +1 -1
- package/dist/{client-DUMIaMob.d.ts → client-3sR4_h5q.d.ts} +2 -2
- package/dist/{client-DUMIaMob.d.ts.map → client-3sR4_h5q.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +9 -9
- package/dist/contract/index.js +5 -5
- package/dist/{default-registry-DFRlBniE.d.ts → default-registry-CVklg2e-.d.ts} +2 -2
- package/dist/{default-registry-DFRlBniE.d.ts.map → default-registry-CVklg2e-.d.ts.map} +1 -1
- package/dist/{define-agent-eval-BHn6t-DC.js → define-agent-eval-BLHr0_IP.js} +3 -3
- package/dist/{define-agent-eval-BHn6t-DC.js.map → define-agent-eval-BLHr0_IP.js.map} +1 -1
- package/dist/{define-agent-eval-n63vmQMR.d.ts → define-agent-eval-DZ7wWMHC.d.ts} +5 -5
- package/dist/{define-agent-eval-n63vmQMR.d.ts.map → define-agent-eval-DZ7wWMHC.d.ts.map} +1 -1
- package/dist/{evaluation-VbjqORBn.d.ts → evaluation-D50Dzyce.d.ts} +2 -2
- package/dist/{evaluation-VbjqORBn.d.ts.map → evaluation-D50Dzyce.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +2 -2
- package/dist/hosted/index.d.ts +2 -2
- package/dist/hosted/index.js +1 -1
- package/dist/{index-BEXEYURJ.d.ts → index-Bam453Y5.d.ts} +8 -8
- package/dist/{index-BEXEYURJ.d.ts.map → index-Bam453Y5.d.ts.map} +1 -1
- package/dist/{index-CbzPtg7O.d.ts → index-CYrvUGQl.d.ts} +13 -13
- package/dist/{index-CbzPtg7O.d.ts.map → index-CYrvUGQl.d.ts.map} +1 -1
- package/dist/{index-rrPT3Pw0.d.ts → index-CxciVDt0.d.ts} +2 -2
- package/dist/{index-rrPT3Pw0.d.ts.map → index-CxciVDt0.d.ts.map} +1 -1
- package/dist/{index-Dt3zWlRa.d.ts → index-D1ghgNRI.d.ts} +3 -3
- package/dist/{index-Dt3zWlRa.d.ts.map → index-D1ghgNRI.d.ts.map} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +4 -4
- package/dist/{llm-judge-CgF3ZM3R.js → llm-judge-ChGnwj4s.js} +2 -2
- package/dist/{llm-judge-CgF3ZM3R.js.map → llm-judge-ChGnwj4s.js.map} +1 -1
- package/dist/{matrix-B95YsrV7.d.ts → matrix-CAeyP9m-.d.ts} +2 -2
- package/dist/{matrix-B95YsrV7.d.ts.map → matrix-CAeyP9m-.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +6 -6
- package/dist/multishot/index.js +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-1xzXK-B6.js → optimization-method-D2uCSc2j.js} +4 -4
- package/dist/{optimization-method-1xzXK-B6.js.map → optimization-method-D2uCSc2j.js.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/{run-improvement-loop-BPhkYKV2.d.ts → run-improvement-loop-C9z817z_.d.ts} +7 -7
- package/dist/{run-improvement-loop-BPhkYKV2.d.ts.map → run-improvement-loop-C9z817z_.d.ts.map} +1 -1
- package/dist/search/index.d.ts +3 -3
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-BkkDo75N.js → search-kernel-B1TEQ9pa.js} +2 -2
- package/dist/{search-kernel-BkkDo75N.js.map → search-kernel-B1TEQ9pa.js.map} +1 -1
- package/dist/{search-kernel-CDSEWa2X.d.ts → search-kernel-CZmj8gJW.d.ts} +3 -3
- package/dist/{search-kernel-CDSEWa2X.d.ts.map → search-kernel-CZmj8gJW.d.ts.map} +1 -1
- package/dist/{search-ledger-sormHFLS.js → search-ledger-EjLGVZ4X.js} +9 -5
- package/dist/search-ledger-EjLGVZ4X.js.map +1 -0
- package/dist/{search-ledger-types-BhZE848w.d.ts → search-ledger-types-D4FsvPP9.d.ts} +8 -2
- package/dist/search-ledger-types-D4FsvPP9.d.ts.map +1 -0
- package/dist/{search-shipper-BJ2Bkx2q.js → search-shipper-DtSnRfOJ.js} +2 -2
- package/dist/{search-shipper-BJ2Bkx2q.js.map → search-shipper-DtSnRfOJ.js.map} +1 -1
- package/dist/{search-summary-DMckFUNY.js → search-summary-C5fewoUi.js} +2 -2
- package/dist/{search-summary-DMckFUNY.js.map → search-summary-C5fewoUi.js.map} +1 -1
- package/dist/{self-improve-CMrPmjYE.js → self-improve-CQM7hIL_.js} +3 -3
- package/dist/{self-improve-CMrPmjYE.js.map → self-improve-CQM7hIL_.js.map} +1 -1
- package/dist/{self-improve-D0TtJz4e.d.ts → self-improve-Eo-EAWL8.d.ts} +7 -7
- package/dist/{self-improve-D0TtJz4e.d.ts.map → self-improve-Eo-EAWL8.d.ts.map} +1 -1
- package/dist/{skillopt-optimization-method-D-BPMi8J.js → skillopt-optimization-method-DQ4urRij.js} +3 -3
- package/dist/{skillopt-optimization-method-D-BPMi8J.js.map → skillopt-optimization-method-DQ4urRij.js.map} +1 -1
- package/dist/{store-tool-spans-M3WxeRrG.d.ts → store-tool-spans-BD5Z304_.d.ts} +2 -2
- package/dist/{store-tool-spans-M3WxeRrG.d.ts.map → store-tool-spans-BD5Z304_.d.ts.map} +1 -1
- package/dist/{systemone-C26IFS-a.d.ts → systemone-D7FQ7n00.d.ts} +3 -3
- package/dist/{systemone-C26IFS-a.d.ts.map → systemone-D7FQ7n00.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/traces.d.ts +1 -1
- package/dist/{tree-BX9ykHi3.js → tree-CljLPWVm.js} +3 -3
- package/dist/{tree-BX9ykHi3.js.map → tree-CljLPWVm.js.map} +1 -1
- package/dist/{types-CBT-XcX5.d.ts → types-BtWzceBY.d.ts} +4 -2
- package/dist/types-BtWzceBY.d.ts.map +1 -0
- package/dist/{types-CYPV2dlR.d.ts → types-XxFZ2IAT.d.ts} +2 -2
- package/dist/{types-CYPV2dlR.d.ts.map → types-XxFZ2IAT.d.ts.map} +1 -1
- package/docs/search-ledger.md +1 -1
- package/docs/skill-eval.md +10 -3
- package/package.json +1 -1
- package/dist/benchmark-command-Be5O6A2v.js.map +0 -1
- package/dist/search-ledger-sormHFLS.js.map +0 -1
- package/dist/search-ledger-types-BhZE848w.d.ts.map +0 -1
- package/dist/types-CBT-XcX5.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [2.0.13] — 2026-11-26
|
|
8
|
+
|
|
9
|
+
- docs(search-ledger): the subscription cost basis
|
|
10
|
+
- feat(search-ledger): a subscription seat is a known cost basis with no dollar figure
|
|
11
|
+
- style: format change-ledger
|
|
12
|
+
- feat(skill-usage): read change ledger rows a gateway writes for whole turns
|
|
13
|
+
- feat(skill-usage): read Codex rollouts as skill sessions, with change ledger rows placed by the id the hook saw
|
|
14
|
+
- test(change-ledger): a subagent is keyed by its own id
|
|
15
|
+
- style: format the change-ledger join
|
|
16
|
+
- feat(change-ledger): read the harness's record of each commit and pull request, so an intent joins exactly the changes its span made
|
|
17
|
+
- fix: import IntentTurn
|
|
18
|
+
- feat(intent-record): let the caller skip typed turns that are no intent
|
|
19
|
+
- style: format
|
|
20
|
+
- feat(intent-record): cut typed turns into intents, join them to procedure versions and change outcomes
|
|
21
|
+
|
|
7
22
|
## [2.0.12] — 2026-11-25
|
|
8
23
|
|
|
9
24
|
- test: restore setup; lint
|
package/dist/adapters/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as CostReceipt } from "../cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-
|
|
3
|
-
import "../index-
|
|
2
|
+
import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-BtWzceBY.js";
|
|
3
|
+
import "../index-Bam453Y5.js";
|
|
4
4
|
export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
|
|
5
5
|
/** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
|
|
6
6
|
url?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as CostReceipt, f as CostReceiptInput, m as CustomTokenPricing } from "./cost-ledger-CSP-OfFe.js";
|
|
2
2
|
import { dt as TraceAnalysisStore, i as AnalystFinding, m as EvidenceRef, p as AnalystUsageReceipt } from "./types-B1W3v8dT.js";
|
|
3
3
|
import { i as ChatResponse, r as ChatRequest } from "./chat-client-BlTooBDA.js";
|
|
4
|
-
import { E as SearchExecutionIdentity, Q as SearchTaskOutcome, a as SearchAttemptAccounting, et as SearchTraceRef, j as SearchModelIdentity, z as SearchOperationRecordedEvent } from "./search-ledger-types-
|
|
5
|
-
import { r as CampaignCellResult } from "./types-
|
|
6
|
-
import { o as SearchCellResult } from "./search-kernel-
|
|
4
|
+
import { E as SearchExecutionIdentity, Q as SearchTaskOutcome, a as SearchAttemptAccounting, et as SearchTraceRef, j as SearchModelIdentity, z as SearchOperationRecordedEvent } from "./search-ledger-types-D4FsvPP9.js";
|
|
5
|
+
import { r as CampaignCellResult } from "./types-BtWzceBY.js";
|
|
6
|
+
import { o as SearchCellResult } from "./search-kernel-CZmj8gJW.js";
|
|
7
7
|
import { AgentProfile, AgentProfile as AgentProfile$1, HarnessType, HarnessType as HarnessType$1 } from "@tangle-network/agent-interface";
|
|
8
8
|
interface AnalystEvidenceExpectation {
|
|
9
9
|
uri: string;
|
|
@@ -551,4 +551,4 @@ declare function agentProfileId(profile: AgentProfile): string;
|
|
|
551
551
|
*/
|
|
552
552
|
declare function agentProfileHash(profile: AgentProfile): string;
|
|
553
553
|
export { RunAnalystBenchmarkOptions as $, campaignCellMeasurement as A, AnalystBenchmarkObservation as B, ExternalOptimizerProcessLimits as C, ExternalTextCandidate as D, ExternalOptimizerWireCounts as E, AnalystBenchmarkCase as F, AnalystBenchmarkSummary as G, AnalystBenchmarkProvenance as H, AnalystBenchmarkDatasetRef as I, AnalystEvidenceResolutionError as J, AnalystEvidenceExpectation as K, AnalystBenchmarkDescriptor as L, searchModelIdentity as M, searchProposalExecution as N, ExternalTextEvaluationRequest as O, searchReceiptAccounting as P, AnalystLatencyDistribution as Q, AnalystBenchmarkError as R, ExternalOptimizerModelExecutionObservation as S, ExternalOptimizerRunnerCommand as T, AnalystBenchmarkResult as U, AnalystBenchmarkOutput as V, AnalystBenchmarkRunner as W, AnalystFindingScore as X, AnalystEvidenceResolver as Y, AnalystIssueExpectation as Z, ExternalOptimizerEvaluationRefusalReason as _, ProfileAxisSpec as a, ExternalOptimizerModelCallRequest as b, expandProfileAxes as c, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS as d, runAnalystBenchmark as et, ExternalEvaluationMeasurement as f, ExternalOptimizerEvaluationObservation as g, ExternalOptimizerEndpointFormat as h, HarnessType$1 as i, campaignCellSearchResult as j, CampaignCellMeasurement as k, harnessAxisOf as l, ExternalOptimizerChatRequest as m, CODING_HARNESSES as n, agentProfileHash as o, ExternalOptimizerCallbackLimits as p, AnalystEvidenceResolution as q, HARNESS_NATIVE_MODEL as r, agentProfileId as s, AgentProfile$1 as t, traceStoreEvidenceResolver as tt, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS as u, ExternalOptimizerModelBudget as v, ExternalOptimizerResumeMode as w, ExternalOptimizerModelCallResult as x, ExternalOptimizerModelCall as y, AnalystBenchmarkLabelState as z };
|
|
554
|
-
//# sourceMappingURL=agent-profile-
|
|
554
|
+
//# sourceMappingURL=agent-profile-8S2LfCvs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profile-
|
|
1
|
+
{"version":3,"file":"agent-profile-8S2LfCvs.d.ts","names":["_$___cost_ledger0.CostReceiptInput"],"sources":["../src/analyst/benchmark.ts","../src/campaign/search-campaign-cell.ts","../src/campaign/external-optimizer-contracts.ts","../src/agent-profile.ts"],"mappings":";;;;;;;UAUiB;EACf;EACA,OAAO;;UAGQ;EACf;EACA;EACA;EACA;EACA,oBAAoB;EACpB;;EAEA,4BAA4B;;KAGlB;UAEK,qBAAqB;EACpC;;EAEA;;EAEA,YAAY;EACZ,OAAO;EACP,yBAAyB;;EAEzB,2BAA2B;EAC3B;EACA,WAAW;;UAGI;EACf;EACA;EACA;EACA;EACA;EACA,mBAAmB;EACnB;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;EACA;;UAGe;EACf,UAAU;EACV;EACA;;UAGe;EACf;EACA;EACA,oBAAoB;EACpB,QAAQ;;EAER;;KAGU,wBAAwB,qBAAqB;EACvD;EACA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AAM;;EAEN,qBAAqB;;;EAGrB;;;;;;EAMA;;;;;;;cAQW;;;;;;;;;;;;;;;;;;;iBAoBG,kBAAkB,MAAM,kBAAkB;;;;;;;;iBAkD1C,cACd,SAAS,KAAK;EACX,SAAS;EAAa;;;;;;;;;iBAiBX,eAAe,SAAS;;;;;;;;;;;iBAmDxB,iBAAiB,SAAS"}
|
package/dist/analyst/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { $ as parseRawFinding, A as FindingParseOutcome, B as FindingTreatment,
|
|
|
3
3
|
import { a as ChatTransport, d as SandboxSdkTransportOpts, f as createChatClient, i as ChatResponse, l as MockTransportOpts, n as ChatClient, o as CreateChatClientOpts, r as ChatRequest, s as CustomTransportOpts, t as ChatCallOpts, u as OpenAiCompatibleTransportOpts } from "../chat-client-BlTooBDA.js";
|
|
4
4
|
import { t as BootstrapInterval } from "../cluster-BJ0nW3P7.js";
|
|
5
5
|
import { Zt as NominalAgreementOptions } from "../index-Bk1XEkP7.js";
|
|
6
|
-
import { $ as RunAnalystBenchmarkOptions, B as AnalystBenchmarkObservation, F as AnalystBenchmarkCase, G as AnalystBenchmarkSummary, H as AnalystBenchmarkProvenance, I as AnalystBenchmarkDatasetRef, J as AnalystEvidenceResolutionError, K as AnalystEvidenceExpectation, L as AnalystBenchmarkDescriptor, Q as AnalystLatencyDistribution, R as AnalystBenchmarkError, S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, U as AnalystBenchmarkResult, V as AnalystBenchmarkOutput, W as AnalystBenchmarkRunner, X as AnalystFindingScore, Y as AnalystEvidenceResolver, Z as AnalystIssueExpectation, et as runAnalystBenchmark, q as AnalystEvidenceResolution, t as AgentProfile, tt as traceStoreEvidenceResolver, y as ExternalOptimizerModelCall, z as AnalystBenchmarkLabelState } from "../agent-profile-
|
|
7
|
-
import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-
|
|
6
|
+
import { $ as RunAnalystBenchmarkOptions, B as AnalystBenchmarkObservation, F as AnalystBenchmarkCase, G as AnalystBenchmarkSummary, H as AnalystBenchmarkProvenance, I as AnalystBenchmarkDatasetRef, J as AnalystEvidenceResolutionError, K as AnalystEvidenceExpectation, L as AnalystBenchmarkDescriptor, Q as AnalystLatencyDistribution, R as AnalystBenchmarkError, S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, U as AnalystBenchmarkResult, V as AnalystBenchmarkOutput, W as AnalystBenchmarkRunner, X as AnalystFindingScore, Y as AnalystEvidenceResolver, Z as AnalystIssueExpectation, et as runAnalystBenchmark, q as AnalystEvidenceResolution, t as AgentProfile, tt as traceStoreEvidenceResolver, y as ExternalOptimizerModelCall, z as AnalystBenchmarkLabelState } from "../agent-profile-8S2LfCvs.js";
|
|
7
|
+
import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-CVklg2e-.js";
|
|
8
8
|
import { a as ExactAnalystRunPolicySnapshot, c as ExactAnalystSnapshot, d as ExactExecutionComponentSnapshot, i as ExactAnalystRunEvent, l as ExactCapableAnalyst, n as ExactAnalystExecutionPlanSnapshot, o as ExactAnalystRunResult, r as ExactAnalystRunCompletion, s as ExactAnalystRunSummary, t as ExactAnalystBudgetSnapshot, u as ExactExecutionComponentIdentity } from "../exact-types-BIHqYBYf.js";
|
|
9
9
|
import { g as SystemOneState } from "../systemone-protocol-C4t7JH4Y.js";
|
|
10
|
-
import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-
|
|
10
|
+
import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-D7FQ7n00.js";
|
|
11
11
|
import { n as buildTraceToolsForGroup, t as TraceToolGroupName } from "../tool-groups-SlnoQNyT.js";
|
|
12
12
|
import { a as BudgetPolicy, c as RegistryRunOpts, i as AnalystRegistryOptions, n as ExactAnalystRunExecutionError, o as ExactAnalystBudgetPolicy, r as AnalystHooks, s as ExactRegistryRunOpts, t as AnalystRegistry } from "../registry-BeInzotS.js";
|
|
13
|
-
import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-
|
|
13
|
+
import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-D1ghgNRI.js";
|
|
14
14
|
import { C as runPrimeExchange, D as ReplyRowDecoded, E as ReplyEnvelope, O as ReplyRowRejection, S as projectPrimeTrajectory, T as ReplyContract, _ as buildPrimePrompt, a as PrimeProjectionOutcome, b as normalizePrimeUsage, c as PrimeProtocolIdentity, d as PrimeRepairPromptSpec, f as PrimeRepairState, g as analystUsageReceiptFromPrimeUsage, h as PrimeTurnRecord, i as PrimeProjectionDelivery, l as PrimeRawUsage, m as PrimeRowDecoded, n as PrimeExchangeOutcome, o as PrimeProjectionSource, p as PrimeReplyContract, r as PrimeFailure, s as PrimePromptSpec, t as PrimeExchangeOptions, u as PrimeRejectedRow, v as buildPrimeRepairPrompt, w as DecodedReply, x as primeProtocolSha256, y as mergePrimeRawUsage } from "../prime-protocol-BRMk6dGI.js";
|
|
15
15
|
import { i as nodeHttpPrimeBridgeTransport, n as PrimeBridgeTransportRequest, r as PrimeBridgeTransportResult, t as PrimeBridgeTransport } from "../prime-bridge-transport-Cfqir_Im.js";
|
|
16
16
|
import { x as SupervisorRunSources } from "../types-xVtEOBhO.js";
|
|
@@ -82,6 +82,17 @@ interface SessionChange {
|
|
|
82
82
|
callId: string;
|
|
83
83
|
at: string | null;
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* A message a person typed, in the session's order. The text is the person's own
|
|
87
|
+
* words: a consumer reads it to label the turn and keeps only a digest.
|
|
88
|
+
*/
|
|
89
|
+
interface SessionUserTurn {
|
|
90
|
+
id: string;
|
|
91
|
+
at: string | null;
|
|
92
|
+
/** How many events the session recorded before this turn. */
|
|
93
|
+
eventIndex: number;
|
|
94
|
+
text: string;
|
|
95
|
+
}
|
|
85
96
|
interface SkillSessionRecord {
|
|
86
97
|
harness: string;
|
|
87
98
|
sessionId: string;
|
|
@@ -96,6 +107,19 @@ interface SkillSessionRecord {
|
|
|
96
107
|
* does not look for them; an empty list when it looked and found none.
|
|
97
108
|
*/
|
|
98
109
|
changes?: SessionChange[];
|
|
110
|
+
/**
|
|
111
|
+
* Other ids a harness's own hooks name a tool call by, mapped to the id of
|
|
112
|
+
* the event that holds it. A change ledger row carries the id its hook saw;
|
|
113
|
+
* where that is not the id the session recorded the call under (a call a
|
|
114
|
+
* Codex script made inside one `exec` call), this is how the row finds its
|
|
115
|
+
* place. Undefined when every hook id is the recorded id.
|
|
116
|
+
*/
|
|
117
|
+
callAliases?: Readonly<Record<string, string>>;
|
|
118
|
+
/**
|
|
119
|
+
* What a person typed, in recorded order. Undefined when the reader does not
|
|
120
|
+
* tell a person's turn from an agent's relay or a harness's injection.
|
|
121
|
+
*/
|
|
122
|
+
turns?: SessionUserTurn[];
|
|
99
123
|
/** What the reader could not read in this session, in its own words. */
|
|
100
124
|
gaps: string[];
|
|
101
125
|
}
|
|
@@ -138,6 +162,14 @@ interface MessageSkillInvocation {
|
|
|
138
162
|
interface HarnessSkillMarkers {
|
|
139
163
|
/** The skill a tool call invokes, or null when it invokes none. */
|
|
140
164
|
skillOfToolCall?: (call: SessionToolCall) => string | null;
|
|
165
|
+
/**
|
|
166
|
+
* The skill file a tool call read, for a harness that loads a skill by
|
|
167
|
+
* reading its file. The call is then the invocation; the session holds no
|
|
168
|
+
* loaded text a version can come from, so the report reads the file.
|
|
169
|
+
*/
|
|
170
|
+
skillFileOfToolCall?: (call: SessionToolCall) => string | null;
|
|
171
|
+
/** Hook ids of tool calls, by the id the session recorded the call under; see {@link SkillSessionRecord.callAliases}. */
|
|
172
|
+
callAliases?: Readonly<Record<string, string>>;
|
|
141
173
|
/** Loaded text by the id of the tool call it answers. */
|
|
142
174
|
loadedByCallId?: ReadonlyMap<string, LoadedSkillText>;
|
|
143
175
|
/** Invocations that are not tool calls, by the id of the message that carries them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/skill-usage/session-record.ts","../../src/skill-usage/claude-code.ts","../../src/skill-usage/harness-session.ts","../../src/skill-usage/skill-file.ts","../../src/skill-usage/report.ts","../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-behavioral-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/definition.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/benchmark-runner-prime.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/bind.ts","../../src/analyst/define.ts","../../src/analyst/domain-taxonomy.ts","../../src/analyst/failure-modes.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/promote.ts","../../src/analyst/proposal-findings.ts","../../src/analyst/rollup.ts","../../src/analyst/team-shape.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAmBY;;UAGK;;;;EAIf;;;;;;EAMA;;UAGe;EACf;;;EAGA;EACA;EACA,SAAS;EACT;;EAEA,SAAS;;EAET;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;UAGe;EACf;EACA;EACA;;EAEA;;EAEA,OAAO;;KAGG,oBAAoB,uBAAuB,gBAAgB;;;;;;UAOtD;EACf;;EAEA;EACA;;UAGe;EACf;EACA;;EAEA;EACA;;;EAGA,QAAQ;;;;;EAKR,UAAU;;EAEV;;;KAIU;EACN;EAAiB;EAAgB,OAAO;;EACxC;EAAkB;EAAgB;;;KAG5B,qBAAqB,cAAc,oBAAoB,SAAS;UCyH3D;;EAEf;;;;;;;;wBAgCqB,wBACrB,mBACA,UAAS,iCACR,eAAe;;UCrPD;EACf;;EAEA;;;UAIe;EACf;EACA,SAAS,QAAQ;EACjB,QAAQ;;;UAIO;;EAEf,mBAAmB,MAAM;;EAEzB,iBAAiB,oBAAoB;;EAErC,yBAAyB,oBAAoB;;;;;EAK7C,qBAAqB,MAAM;;;;;;;;;;;wBAoCb,+BACd,SAAS,gBACT,UAAS,sBACR;;KC9DS;EAEN;EACA;;EAEA;;EAEA;;EAEA;EAAkB;EAAc;;;wBAGtB,cAAc,eAAe;UCR5B;;EAEf;;EAEA,WA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EA;EACA,SAAS;EACT,MAAM;;;wBAmCQ,kCAAkC;EAChD,OAAO;EACP,cAAc;EACd;EACA;EACA,mBAAmB;EACnB,eAAe;EACf,mBAAmB;EACnB,cAAc;EACd;EACA;IACE;;;wBAuHY,wBACd,eAAe,cACf,mBAAmB,oBACnB,UAAS;EAA4B;IACpC;KCjQS;UAEK;EACf,YAAY;EACZ;EACA;EACA;EACA;EACA;;UAGe;EACf,eAAe;EACf,mBAAmB;EACnB;IAAe,YAAY;IAAY;;EACvC,wBAAwB;EACxB;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,mBAAmB;EACnB;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,iBAAiB;;KAGP,0CAEC,sCACA,iCACA;UAEI;EACf;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA,oCAAoC;;UAGrB;EACf,eAAe;EACf,WAAW,sBAAsB;;KAGvB;UAEK;;;;;EAKf,WAAW;;UAGI,kCACP,yBACN;UAEa,oCAAoC;EACnD;;EAEA;;UAGe,yCAAyC;EACxD;EACA;EACA;EACA;;UAGe,2CACP,kCACN;wBCtGY,qBAAqB,QACnC,KAAK,YACL,OAAO,QACP,UAAS,8BACR,qBAAqB;;wBAsGR,6BACd,mBAAmB,YACnB,iBACA,UAAS,mCACR;wBC9Ga,mBAAmB,QACjC,KAAK,mBACL,OAAO,QACP,UAAS,4BACR,qBAAqB;;wBAwFR,gCACd,2BACA,aAAa,uBACb,UAAS,qCACR;KCjHS;UAEK;EACf;EACA;EACA,QAAQ;;UAGO;EACf,QAAQ;EACR;EAKA;IAAe;IAAe;;EAC9B,SAAS;EACT;EACA;EACA;EACA;;UAGe;EACf;EACA;;KCdU;UAEK;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;;UAGe;EACf;EAC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A,SAAS;;UCvEM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;;UClBM;EACf;EACA;EACA;IACE,SAAS;IACT;IACA;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D,uBAAuB;IACvB,0BAA0B;IAC1B;MACE;MACA;MACA;MACA,QAAQ;;IAEV;MACE;MACA;;MAEA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,UAAU;MACV;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;MAEF;MACA;MACA;;MAEA;MACA;MACA;;;EAGJ,QAAQ;EACR,aAAa;EACb,uBAAuB;EACvB,qBAAqB;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,UAAU;;UAGK;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;IAEA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA,aAAa;EACb;;qBAGW;qBACA;qBACA;qBACA;wBC5KS,6BACpB,eACC,QAAQ;UCuEM;EACf,uBACE,SAAS,+BACT,QAAQ,wCACL,uBAAuB;EAC5B,2BACE,mBACA;IACE;IACA,aAAa,SAAS,OAAO;QAE5B,QAAQ;;;;;;;;;KAUV;;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;EAExB;;EAEA;EACA,uBAAuB;EACvB;IAAU;IAAc;;;EAExB;;EAEA,eAAe;;EAEf,iBAAiB;;EAEjB,sBAAsB;;UAGP;EACf,uBAAuB;EACvB;;UAGe;EACf,OAAO;EACP;;EAEA;;EAEA;EACA;EACA,UAAU;;EAEV,QAAQ,OAAO,gBAAgB;EAC/B;IAAS,SAAS;IAAiB,YAAY;IAAiB,eAAe;;EAC/E;IAAe;IAAe;;EAC9B;IAAU;IAAc;;;KAGd;EACN;EAAiB,OAAO;;EACxB;EAAkB;IAAS;;;;wBAuBjB,0BACd,SAAS,sBACT,wBAAwB;EACrB;EAAiB,OAAO;;EAAqB;EAAkB;IAAS;;;wBAkB7D,kBAAkB,OAAO,iBAAiB;;;;;;wBAqa1C,oBAAoB,QAAQ"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/skill-usage/session-record.ts","../../src/skill-usage/claude-code.ts","../../src/skill-usage/harness-session.ts","../../src/skill-usage/skill-file.ts","../../src/skill-usage/report.ts","../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-behavioral-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/definition.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/benchmark-runner-prime.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/bind.ts","../../src/analyst/define.ts","../../src/analyst/domain-taxonomy.ts","../../src/analyst/failure-modes.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/promote.ts","../../src/analyst/proposal-findings.ts","../../src/analyst/rollup.ts","../../src/analyst/team-shape.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAmBY;;UAGK;;;;EAIf;;;;;;EAMA;;UAGe;EACf;;;EAGA;EACA;EACA,SAAS;EACT;;EAEA,SAAS;;EAET;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;UAGe;EACf;EACA;EACA;;EAEA;;EAEA,OAAO;;KAGG,oBAAoB,uBAAuB,gBAAgB;;;;;;UAOtD;EACf;;EAEA;EACA;;;;;;UAOe;EACf;EACA;;EAEA;EACA;;UAGe;EACf;EACA;;EAEA;EACA;;;EAGA,QAAQ;;;;;EAKR,UAAU;;;;;;;;EAQV,cAAc,SAAS;;;;;EAKvB,QAAQ;;EAER;;;KAIU;EACN;EAAiB;EAAgB,OAAO;;EACxC;EAAkB;EAAgB;;;KAG5B,qBAAqB,cAAc,oBAAoB,SAAS;UCiG3D;;EAEf;;;;;;;;wBASqB,wBACrB,mBACA,UAAS,iCACR,eAAe;;UC9ND;EACf;;EAEA;;;UAIe;EACf;EACA,SAAS,QAAQ;EACjB,QAAQ;;;UAIO;;EAEf,mBAAmB,MAAM;;;;;;EAMzB,uBAAuB,MAAM;;EAE7B,cAAc,SAAS;;EAEvB,iBAAiB,oBAAoB;;EAErC,yBAAyB,oBAAoB;;;;;EAK7C,qBAAqB,MAAM;;;;;;;;;;;wBAqCb,+BACd,SAAS,gBACT,UAAS,sBACR;;KCxES;EAEN;EACA;;EAEA;;EAEA;;EAEA;EAAkB;EAAc;;;wBAGtB,cAAc,eAAe;UCR5B;;EAEf;;EAEA,WAAW,kBAAkB;;EAE7B,iBAAiB,iBAAiB;;;KAIxB;EACN;EAAc;;EACd;EAAc;EAAqB;;;;EAEnC;EAAc;EAA8B;;UAEjC;EACf;EACA;EACA;EACA;EACA;;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A;IACE;;;wBAuHY,wBACd,eAAe,cACf,mBAAmB,oBACnB,UAAS;EAA4B;IACpC;KCjQS;UAEK;EACf,YAAY;EACZ;EACA;EACA;EACA;EACA;;UAGe;EACf,eAAe;EACf,mBAAmB;EACnB;IAAe,YAAY;IAAY;;EACvC,wBAAwB;EACxB;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,mBAAmB;EACnB;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,iBAAiB;;KAGP,0CAEC,sCACA,iCACA;UAEI;EACf;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA,oCAAoC;;UAGrB;EACf,eAAe;EACf,WAAW,sBAAsB;;KAGvB;UAEK;;;;;EAKf,WAAW;;UAGI,kCACP,yBACN;UAEa,oCAAoC;EACnD;;EAEA;;UAGe,yCAAyC;EACxD;EACA;EACA;EACA;;UAGe,2CACP,kCACN;wBCtGY,qBAAqB,QACnC,KAAK,YACL,OAAO,QACP,UAAS,8BACR,qBAAqB;;wBAsGR,6BACd,mBAAmB,YACnB,iBACA,UAAS,mCACR;wBC9Ga,mBAAmB,QACjC,KAAK,mBACL,OAAO,QACP,UAAS,4BACR,qBAAqB;;wBAwFR,gCACd,2BACA,aAAa,uBACb,UAAS,qCACR;KCjHS;UAEK;EACf;EACA;EACA,QAAQ;;UAGO;EACf,QAAQ;EACR;EAKA;IAAe;IAAe;;EAC9B,SAAS;EACT;EACA;EACA;EACA;;UAGe;EACf;EACA;;KCdU;UAEK;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;EACT;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,cAAc;EACd,UAAU,OAAO;;UAGF;EACf,UAAU;EACV,SAAS;EACT,OAAO,MAAM;IAA6B;;;KChChC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;EACA,SAAS;;UClBM;EACf;EACA;EACA;IACE,SAAS;IACT;IACA;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D,uBAAuB;IACvB,0BAA0B;IAC1B;MACE;MACA;MACA;MACA,QAAQ;;IAEV;MACE;MACA;;MAEA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,UAAU;MACV;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;MAEF;MACA;MACA;;MAEA;MACA;MACA;;;EAGJ,QAAQ;EACR,aAAa;EACb,uBAAuB;EACvB,qBAAqB;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,UAAU;;UAGK;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;IAEA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA,aAAa;EACb;;qBAGW;qBACA;qBACA;qBACA;wBC5KS,6BACpB,eACC,QAAQ;UCuEM;EACf,uBACE,SAAS,+BACT,QAAQ,wCACL,uBAAuB;EAC5B,2BACE,mBACA;IACE;IACA,aAAa,SAAS,OAAO;QAE5B,QAAQ;;;;;;;;;KAUV;;UAGK;EACR;EACA;;UAGe;EACf,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA,Q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f,OAAO;EACP;;EAEA;;EAEA;EACA;EACA,UAAU;;EAEV,QAAQ,OAAO,gBAAgB;EAC/B;IAAS,SAAS;IAAiB,YAAY;IAAiB,eAAe;;EAC/E;IAAe;IAAe;;EAC9B;IAAU;IAAc;;;KAGd;EACN;EAAiB,OAAO;;EACxB;EAAkB;IAAS;;;;wBAuBjB,0BACd,SAAS,sBACT,wBAAwB;EACrB;EAAiB,OAAO;;EAAqB;EAAkB;IAAS;;;wBAkB7D,kBAAkB,OAAO,iBAAiB;;;;;;wBAqa1C,oBAAoB,QAAQ"}
|
package/dist/analyst/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { n as createChatClient } from "../chat-client-TkNgQDLj.js";
|
|
|
11
11
|
import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-CR5MSL2k.js";
|
|
12
12
|
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "../findings-store-Drnjid7m.js";
|
|
13
13
|
import { m as validDecisionIdentity, o as systemOneAnalyst, t as DECISION_POINT_AUC_BAR } from "../decision-point-CjC56Enj.js";
|
|
14
|
-
import { A as agentRxBenchmarkCase, B as renderSkillUsageTable, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, H as
|
|
14
|
+
import { A as agentRxBenchmarkCase, B as renderSkillUsageTable, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, H as claudeCodeSkillSessions, I as traceStoreEvidenceResolver, M as normalizeAgentRxCategory, N as externalId, O as codeTraceBenchCase, P as positiveStep, R as buildSkillUsageReport, S as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, T as ANALYST_BENCHMARK_MANIFEST_FILE, U as skillSessionFromHarnessSession, W as readSkillFile, _ as readAnalystBenchmarkArtifact, a as runInlineAnalystDefinition, b as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, c as publicRlmAnalystDefinition, d as publicDirectAnalystDefinition, f as runChunkedAnalystDefinition, g as expandCodeTraceFailureBlocks, h as analystDefinitionProtocolSha256, i as primeCodeTraceAnalystDefinition, j as agentRxPredictionsToFindings, k as codeTracerPredictionsToFindings, l as runReplVariableAnalystDefinition, m as analystDefinitionAsymmetries, n as createPrimeBenchmarkRunner, o as loadPublicBenchmarkRows, p as AnalystExpressivenessError, r as primeAnalystProtocolSha256, s as createPublicBenchmarkRlmRunner, t as runAnalystBenchmarkCommand, u as createPublicBenchmarkDirectRunner, v as CODE_TRACE_BENCH_ANALYST_PROMPT, w as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, x as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, y as publicBenchmarkProtocolSha256 } from "../benchmark-command-C7ObyGm9.js";
|
|
15
15
|
import { a as normalizePrimeUsage, c as runPrimeExchange, i as mergePrimeRawUsage, n as buildPrimePrompt, o as primeProtocolSha256, r as buildPrimeRepairPrompt, s as projectPrimeTrajectory, t as analystUsageReceiptFromPrimeUsage } from "../prime-protocol-CrhpXRz9.js";
|
|
16
16
|
import { t as nodeHttpPrimeBridgeTransport } from "../prime-bridge-transport-Csd5SQg7.js";
|
|
17
17
|
import { t as clusterBootstrapMean } from "../cluster-bootstrap-CTC8Dd30.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as CustomTokenPricing, t as CostLedger } from "../cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import "../index-
|
|
2
|
+
import "../index-CYrvUGQl.js";
|
|
3
3
|
import { a as ChatTransport, n as ChatClient } from "../chat-client-BlTooBDA.js";
|
|
4
4
|
import { d as SystemOneRequest, g as SystemOneState, s as SystemOneQuestions } from "../systemone-protocol-C4t7JH4Y.js";
|
|
5
|
-
import "../systemone-
|
|
5
|
+
import "../systemone-D7FQ7n00.js";
|
|
6
6
|
import { a as SystemOneReviewReport, r as SystemOneReviewCheck, t as PreparedSystemOneReview } from "../systemone-review-DpAXWDkL.js";
|
|
7
7
|
import { IncomingHttpHeaders, OutgoingHttpHeaders } from "node:http";
|
|
8
8
|
import { Browser, BrowserContext, Locator, Page } from "playwright";
|
|
@@ -30,21 +30,40 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "nod
|
|
|
30
30
|
import { arch, platform } from "node:os";
|
|
31
31
|
import { pathToFileURL } from "node:url";
|
|
32
32
|
import { link, lstat, mkdir, open, readFile, readdir, realpath, stat, unlink } from "node:fs/promises";
|
|
33
|
-
import { readSessionInput } from "@tangle-network/harness-sessions";
|
|
33
|
+
import { codexRefForFile, readSessionInput } from "@tangle-network/harness-sessions";
|
|
34
34
|
import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
35
35
|
import { performance } from "node:perf_hooks";
|
|
36
36
|
import { linearSumAssignment } from "linear-sum-assignment";
|
|
37
37
|
// src/skill-usage/change-refs.ts
|
|
38
|
-
|
|
38
|
+
/** Claude Code's shell tool, and Codex's: `exec_command`, `shell`, and `exec`, the code-mode tool whose JavaScript runs the shell. */
|
|
39
|
+
const SHELL_TOOLS = /* @__PURE__ */ new Set([
|
|
40
|
+
"Bash",
|
|
41
|
+
"exec_command",
|
|
42
|
+
"shell",
|
|
43
|
+
"shell_command",
|
|
44
|
+
"exec"
|
|
45
|
+
]);
|
|
39
46
|
/** `gh pr create`, or a wrapper named `gh-<identity>`, including its flags up to the subcommand. */
|
|
40
47
|
const PR_COMMAND = /\bgh(?:-[\w-]+)?\s+(?:-\S+\s+\S+\s+)*pr\s+(create|merge)\b/g;
|
|
41
48
|
const PULL_URL = /https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)/g;
|
|
42
49
|
const MERGE_ARGS = /\bpr\s+merge\s+(?:(?:https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/)?(\d+))/;
|
|
43
50
|
const REPO_FLAG = /(?:-R|--repo)[\s=]+([\w.-]+\/[\w.-]+)/;
|
|
51
|
+
/**
|
|
52
|
+
* The shell text of a call: the `command` or `cmd` of its input (a string, or an
|
|
53
|
+
* argv joined), or, for Codex's `exec`, the JavaScript, which holds the commands.
|
|
54
|
+
*/
|
|
55
|
+
function shellCommandText(call) {
|
|
56
|
+
if (!SHELL_TOOLS.has(call.name)) return null;
|
|
57
|
+
if (typeof call.input === "string") return call.name === "exec" ? call.input : null;
|
|
58
|
+
const input = record$1(call.input);
|
|
59
|
+
const command = input?.command ?? input?.cmd;
|
|
60
|
+
if (typeof command === "string") return command;
|
|
61
|
+
if (Array.isArray(command) && command.every((part) => typeof part === "string")) return command.join(" ");
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
44
64
|
function githubPullRequestRefs(call) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (typeof command !== "string") return [];
|
|
65
|
+
const command = shellCommandText(call);
|
|
66
|
+
if (command === null) return [];
|
|
48
67
|
const kinds = /* @__PURE__ */ new Set();
|
|
49
68
|
for (const match of command.matchAll(PR_COMMAND)) kinds.add(match[1]);
|
|
50
69
|
if (kinds.size === 0) return [];
|
|
@@ -106,7 +125,7 @@ function costUsage(usage) {
|
|
|
106
125
|
...usage.cacheWrite === null ? {} : { cacheWriteTokens: usage.cacheWrite }
|
|
107
126
|
};
|
|
108
127
|
}
|
|
109
|
-
function invocation(fields, loaded) {
|
|
128
|
+
function invocation(fields, loaded, skillFile = null) {
|
|
110
129
|
return {
|
|
111
130
|
kind: "skill",
|
|
112
131
|
...fields,
|
|
@@ -114,7 +133,7 @@ function invocation(fields, loaded) {
|
|
|
114
133
|
bodySha256: skillBodySha256(loaded.body),
|
|
115
134
|
source: "session"
|
|
116
135
|
},
|
|
117
|
-
skillFile: loaded?.skillFile ??
|
|
136
|
+
skillFile: loaded?.skillFile ?? skillFile
|
|
118
137
|
};
|
|
119
138
|
}
|
|
120
139
|
/**
|
|
@@ -133,6 +152,7 @@ function skillSessionFromHarnessSession(session, markers = {}) {
|
|
|
133
152
|
const placedToolCalls = /* @__PURE__ */ new Set();
|
|
134
153
|
const events = [];
|
|
135
154
|
const changes = [];
|
|
155
|
+
const turns = [];
|
|
136
156
|
const placeModelCall = (id) => {
|
|
137
157
|
const call = modelCalls.get(id);
|
|
138
158
|
if (call === void 0 || placedModelCalls.has(id)) return;
|
|
@@ -174,7 +194,7 @@ function skillSessionFromHarnessSession(session, markers = {}) {
|
|
|
174
194
|
invoker: "agent",
|
|
175
195
|
at: call.startedAt,
|
|
176
196
|
failed
|
|
177
|
-
}, markers.loadedByCallId?.get(id)));
|
|
197
|
+
}, markers.loadedByCallId?.get(id), markers.skillFileOfToolCall?.(call) ?? null));
|
|
178
198
|
};
|
|
179
199
|
for (const message of session.messages) {
|
|
180
200
|
if (message.inherited === true) continue;
|
|
@@ -183,6 +203,15 @@ function skillSessionFromHarnessSession(session, markers = {}) {
|
|
|
183
203
|
for (const part of message.parts) if (part.type === "tool-call") placeToolCall(part.toolCallId);
|
|
184
204
|
continue;
|
|
185
205
|
}
|
|
206
|
+
if (message.role === "user" && message.actor === "human") {
|
|
207
|
+
const text = message.parts.flatMap((part) => part.type === "text" ? [part.text] : []).join("\n").trim();
|
|
208
|
+
if (text !== "") turns.push({
|
|
209
|
+
id: message.id,
|
|
210
|
+
at: message.at,
|
|
211
|
+
eventIndex: events.length,
|
|
212
|
+
text
|
|
213
|
+
});
|
|
214
|
+
}
|
|
186
215
|
const marker = markers.invocationsByMessageId?.get(message.id);
|
|
187
216
|
if (marker !== void 0) events.push(invocation({
|
|
188
217
|
callId: message.id,
|
|
@@ -205,9 +234,29 @@ function skillSessionFromHarnessSession(session, markers = {}) {
|
|
|
205
234
|
endedAt: session.endedAt,
|
|
206
235
|
events,
|
|
207
236
|
...markers.changesOfToolCall === void 0 ? {} : { changes },
|
|
237
|
+
...markers.callAliases === void 0 || Object.keys(markers.callAliases).length === 0 ? {} : { callAliases: markers.callAliases },
|
|
238
|
+
turns,
|
|
208
239
|
gaps
|
|
209
240
|
};
|
|
210
241
|
}
|
|
242
|
+
// src/skill-usage/transcript-walk.ts
|
|
243
|
+
/** Finding the session files under a harness's store: one walk, shared by every reader. */
|
|
244
|
+
async function walkTranscripts(directory, walk, wanted = (name) => name.endsWith(".jsonl")) {
|
|
245
|
+
const entries = await readdir(directory, { withFileTypes: true });
|
|
246
|
+
entries.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
247
|
+
for (const entry of entries) {
|
|
248
|
+
const path = join(directory, entry.name);
|
|
249
|
+
if (entry.isDirectory()) try {
|
|
250
|
+
await walkTranscripts(path, walk, wanted);
|
|
251
|
+
} catch (error) {
|
|
252
|
+
walk.unreadable.push({
|
|
253
|
+
source: path,
|
|
254
|
+
error: errorMessage(error)
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
else if ((entry.isFile() || entry.isSymbolicLink()) && wanted(entry.name)) walk.files.push(path);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
211
260
|
// src/skill-usage/claude-code.ts
|
|
212
261
|
/**
|
|
213
262
|
* Claude Code transcripts as skill session records.
|
|
@@ -389,22 +438,6 @@ function skillSession(records, identity) {
|
|
|
389
438
|
...skillMarkers(records, identity.parentSessionId !== null)
|
|
390
439
|
});
|
|
391
440
|
}
|
|
392
|
-
async function walkTranscripts(directory, walk) {
|
|
393
|
-
const entries = await readdir(directory, { withFileTypes: true });
|
|
394
|
-
entries.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
395
|
-
for (const entry of entries) {
|
|
396
|
-
const path = join(directory, entry.name);
|
|
397
|
-
if (entry.isDirectory()) try {
|
|
398
|
-
await walkTranscripts(path, walk);
|
|
399
|
-
} catch (error) {
|
|
400
|
-
walk.unreadable.push({
|
|
401
|
-
source: path,
|
|
402
|
-
error: errorMessage(error)
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
else if ((entry.isFile() || entry.isSymbolicLink()) && entry.name.endsWith(".jsonl")) walk.files.push(path);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
441
|
/**
|
|
409
442
|
* Every transcript under a Claude Code projects directory, one read per file:
|
|
410
443
|
* top-level sessions and each subagent's own file. A file or folder that cannot
|
|
@@ -443,6 +476,120 @@ async function* claudeCodeSkillSessions(directory, options = {}) {
|
|
|
443
476
|
};
|
|
444
477
|
}
|
|
445
478
|
}
|
|
479
|
+
// src/skill-usage/codex.ts
|
|
480
|
+
/**
|
|
481
|
+
* Codex rollouts as skill session records.
|
|
482
|
+
*
|
|
483
|
+
* `@tangle-network/harness-sessions` owns what a rollout's tool calls, model
|
|
484
|
+
* calls, typed turns and usage are. This module adds what the rollout says about
|
|
485
|
+
* skills and changes:
|
|
486
|
+
*
|
|
487
|
+
* | Fact | Record |
|
|
488
|
+
* |---|---|
|
|
489
|
+
* | a skill invocation | a shell call that reads a `skills/<name>/SKILL.md` file with a viewer (`cat`, `sed`, `head`, `nl`...); Codex has no skill tool, so the read is the invocation |
|
|
490
|
+
* | the skill's version | none from the session: the read is often partial (`head -70`), so the report reads the skill file as it is now and says so |
|
|
491
|
+
* | a change | a pull request a shell call opened or merged, as for Claude Code; the change ledger adds commits |
|
|
492
|
+
*
|
|
493
|
+
* Inside Codex's code-mode `exec` tool a script runs shell commands, and the
|
|
494
|
+
* hook that wrote a change ledger row saw the command's own id (`exec-<uuid>`),
|
|
495
|
+
* not the id of the `exec` call. The rollout records that id on the command's
|
|
496
|
+
* completion event, between the call and its output, so it names the call when
|
|
497
|
+
* exactly one `exec` call is open. With none or several open it names none, and
|
|
498
|
+
* the session says how many ids it could not place.
|
|
499
|
+
*/
|
|
500
|
+
/** A viewer reading a skill file: `cat path`, `sed -n '1,80p' path`, `head -70 path`. */
|
|
501
|
+
const SKILL_READ = /\b(?:cat|head|tail|sed|nl|bat|less|more|awk)\b[^\n;&|]*?(?:^|[\s'"=])((?:[\w~.$/-]*\/)?skills\/([\w.-]+)\/SKILL\.md)\b/;
|
|
502
|
+
/** The skill a shell call reads, and the file it reads it from. */
|
|
503
|
+
function skillRead(call) {
|
|
504
|
+
const command = shellCommandText(call);
|
|
505
|
+
if (command === null) return null;
|
|
506
|
+
const match = SKILL_READ.exec(command);
|
|
507
|
+
if (match === null) return null;
|
|
508
|
+
return {
|
|
509
|
+
skill: match[2],
|
|
510
|
+
file: match[1]
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
/** The ids hooks name nested commands by, mapped to the `exec` call that ran them. */
|
|
514
|
+
function execCallAliases(records) {
|
|
515
|
+
const aliases = {};
|
|
516
|
+
const open = /* @__PURE__ */ new Set();
|
|
517
|
+
let unplaced = 0;
|
|
518
|
+
for (const value of records) {
|
|
519
|
+
const entry = record$1(value);
|
|
520
|
+
const payload = record$1(entry?.payload);
|
|
521
|
+
if (entry === null || payload === null) continue;
|
|
522
|
+
if (entry.type === "response_item") {
|
|
523
|
+
const callId = stringField(payload, "call_id");
|
|
524
|
+
if (callId === void 0) continue;
|
|
525
|
+
if (payload.type === "custom_tool_call" && payload.name === "exec") open.add(callId);
|
|
526
|
+
else if (payload.type === "custom_tool_call_output") open.delete(callId);
|
|
527
|
+
} else if (entry.type === "event_msg" && payload.type === "item_completed") {
|
|
528
|
+
const item = record$1(payload.item);
|
|
529
|
+
if (item === null || item.type !== "CommandExecution") continue;
|
|
530
|
+
const id = stringField(item, "id");
|
|
531
|
+
if (id === void 0 || !id.startsWith("exec-")) continue;
|
|
532
|
+
const [only] = open;
|
|
533
|
+
if (open.size === 1 && only !== void 0) aliases[id] = only;
|
|
534
|
+
else unplaced += 1;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return {
|
|
538
|
+
aliases,
|
|
539
|
+
unplaced
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
/** One rollout's parsed lines as a skill session record. */
|
|
543
|
+
function rolloutSession(records, path) {
|
|
544
|
+
const session = readSessionInput("codex", { records }, codexRefForFile(path));
|
|
545
|
+
const { aliases, unplaced } = execCallAliases(records);
|
|
546
|
+
const value = skillSessionFromHarnessSession(session, {
|
|
547
|
+
skillOfToolCall: (call) => skillRead(call)?.skill ?? null,
|
|
548
|
+
skillFileOfToolCall: (call) => skillRead(call)?.file ?? null,
|
|
549
|
+
changesOfToolCall: githubPullRequestRefs,
|
|
550
|
+
callAliases: aliases
|
|
551
|
+
});
|
|
552
|
+
if (unplaced > 0) value.gaps.push(`${unplaced} commands run inside code-mode scripts name no single script, so a change ledger row for them cannot be placed`);
|
|
553
|
+
return value;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Every rollout under a Codex sessions directory (`~/.codex/sessions`, or one
|
|
557
|
+
* account's), one read per file: top-level threads and each subagent's own. A
|
|
558
|
+
* file or folder that cannot be read is a failed read with its reason. Throws
|
|
559
|
+
* when the directory itself cannot be read.
|
|
560
|
+
*/
|
|
561
|
+
async function* codexSkillSessions(directory, options = {}) {
|
|
562
|
+
const walk = {
|
|
563
|
+
files: [],
|
|
564
|
+
unreadable: []
|
|
565
|
+
};
|
|
566
|
+
try {
|
|
567
|
+
await walkTranscripts(directory, walk, (name) => name.startsWith("rollout-") && name.endsWith(".jsonl"));
|
|
568
|
+
} catch (error) {
|
|
569
|
+
throw new ValidationError(`codexSkillSessions: cannot read ${directory}: ${errorMessage(error)}`);
|
|
570
|
+
}
|
|
571
|
+
for (const failure of walk.unreadable) yield {
|
|
572
|
+
succeeded: false,
|
|
573
|
+
...failure
|
|
574
|
+
};
|
|
575
|
+
for (const path of walk.files) try {
|
|
576
|
+
if (options.sinceMs !== void 0 && (await stat(path)).mtimeMs < options.sinceMs) continue;
|
|
577
|
+
const parsed = await parseCodeAgentJsonlFile(path);
|
|
578
|
+
const value = rolloutSession(parsed.entries, path);
|
|
579
|
+
if (parsed.malformedLines > 0) value.gaps.push(`${parsed.malformedLines} lines are not JSON`);
|
|
580
|
+
yield {
|
|
581
|
+
succeeded: true,
|
|
582
|
+
source: path,
|
|
583
|
+
value
|
|
584
|
+
};
|
|
585
|
+
} catch (error) {
|
|
586
|
+
yield {
|
|
587
|
+
succeeded: false,
|
|
588
|
+
source: path,
|
|
589
|
+
error: errorMessage(error)
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
}
|
|
446
593
|
// src/skill-usage/report.ts
|
|
447
594
|
const OVERLAP_NOTE = "A session that invokes several skills counts its later work under each of them, so the after-invocation columns overlap across rows and do not add up.";
|
|
448
595
|
const PRICING_NOTE = "costUsd prices each model call with the cost ledger: the rates the caller gave for that model, else the ledger model table. Cache reads and writes are priced only at a rate the table names for that model; a call with cache tokens on a model without one, or a model with no row, is counted as not priced and stays out of the total.";
|
|
@@ -478,7 +625,7 @@ function modelCallCost(model, usage, pricing) {
|
|
|
478
625
|
return priced.costUnknown ? null : priced.costUsd;
|
|
479
626
|
}
|
|
480
627
|
/** What one session did after position `from`, to its end. */
|
|
481
|
-
function afterInvocation(session, from, startedAt, options) {
|
|
628
|
+
function afterInvocation(session, from, startedAt, options, until = null) {
|
|
482
629
|
const after = {
|
|
483
630
|
toolCalls: 0,
|
|
484
631
|
toolErrors: 0,
|
|
@@ -491,7 +638,8 @@ function afterInvocation(session, from, startedAt, options) {
|
|
|
491
638
|
pricedModelCalls: 0,
|
|
492
639
|
unpricedModelCalls: 0
|
|
493
640
|
};
|
|
494
|
-
|
|
641
|
+
const stop = until === null ? session.events.length : Math.min(until.eventIndex, session.events.length);
|
|
642
|
+
for (let index = from + 1; index < stop; index++) {
|
|
495
643
|
const event = session.events[index];
|
|
496
644
|
if (event.kind === "tool") {
|
|
497
645
|
after.toolCalls += 1;
|
|
@@ -513,7 +661,7 @@ function afterInvocation(session, from, startedAt, options) {
|
|
|
513
661
|
}
|
|
514
662
|
}
|
|
515
663
|
const start = instant(startedAt);
|
|
516
|
-
const end = instant(session.endedAt);
|
|
664
|
+
const end = instant(until === null ? session.endedAt : until.at);
|
|
517
665
|
if (start !== null && end !== null && end >= start) after.wallMs = end - start;
|
|
518
666
|
return after;
|
|
519
667
|
}
|
|
@@ -7646,6 +7794,6 @@ function printSuccessSummary(artifact, paths) {
|
|
|
7646
7794
|
function shellQuote(value) {
|
|
7647
7795
|
return /^[a-zA-Z0-9_./:@%+=,-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
7648
7796
|
}
|
|
7649
|
-
export { agentRxBenchmarkCase as A, renderSkillUsageTable as B, ANALYST_BENCHMARK_COST_LEDGER_FILE as C, AGENT_RX_UPSTREAM_REVISION as D, ANALYST_BENCHMARK_OBSERVATIONS_FILE as E, runAnalystBenchmark as F,
|
|
7797
|
+
export { agentRxBenchmarkCase as A, renderSkillUsageTable as B, ANALYST_BENCHMARK_COST_LEDGER_FILE as C, AGENT_RX_UPSTREAM_REVISION as D, ANALYST_BENCHMARK_OBSERVATIONS_FILE as E, runAnalystBenchmark as F, claudeCodeSkillSessions as H, traceStoreEvidenceResolver as I, afterInvocation as L, normalizeAgentRxCategory as M, externalId as N, codeTraceBenchCase as O, positiveStep as P, buildSkillUsageReport as R, ANALYST_BENCHMARK_IMPLEMENTATION_FILES as S, ANALYST_BENCHMARK_MANIFEST_FILE as T, skillSessionFromHarnessSession as U, codexSkillSessions as V, readSkillFile as W, readAnalystBenchmarkArtifact as _, runInlineAnalystDefinition as a, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 as b, publicRlmAnalystDefinition as c, publicDirectAnalystDefinition as d, runChunkedAnalystDefinition as f, expandCodeTraceFailureBlocks as g, analystDefinitionProtocolSha256 as h, primeCodeTraceAnalystDefinition as i, agentRxPredictionsToFindings as j, codeTracerPredictionsToFindings as k, runReplVariableAnalystDefinition as l, analystDefinitionAsymmetries as m, createPrimeBenchmarkRunner as n, loadPublicBenchmarkRows as o, AnalystExpressivenessError as p, primeAnalystProtocolSha256 as r, createPublicBenchmarkRlmRunner as s, runAnalystBenchmarkCommand as t, createPublicBenchmarkDirectRunner as u, CODE_TRACE_BENCH_ANALYST_PROMPT as v, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE as w, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 as x, publicBenchmarkProtocolSha256 as y, instant as z };
|
|
7650
7798
|
|
|
7651
|
-
//# sourceMappingURL=benchmark-command-
|
|
7799
|
+
//# sourceMappingURL=benchmark-command-C7ObyGm9.js.map
|