literally-aeo 0.1.1 → 0.2.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/README.md +42 -6
- package/dist/author-tools.js +33 -64
- package/dist/cli.mjs +2723 -1616
- package/dist/lib/agents/author-schema.js +4 -5
- package/dist/lib/agents/author-validation.js +5 -6
- package/dist/lib/agents/copy-validation.js +4 -5
- package/dist/lib/agents/verifier.js +8 -8
- package/dist/lib/analysis/domain-classifier.js +8 -8
- package/dist/lib/analysis/domain-labels.js +3 -4
- package/dist/lib/analysis/progress.js +3 -4
- package/dist/lib/analysis/sentiment.js +8 -8
- package/dist/lib/author/examples.js +5 -6
- package/dist/lib/bundle/contracts.js +5 -6
- package/dist/lib/bundle/export.js +22 -19
- package/dist/lib/bundle/isolation.js +17 -0
- package/dist/lib/bundle/journal.js +6 -7
- package/dist/lib/bundle/project-journal.js +11 -10
- package/dist/lib/bundle/project.js +19 -16
- package/dist/lib/bundle/read.js +23 -20
- package/dist/lib/bundle/recorder.js +9 -8
- package/dist/lib/bundle/redact.js +6 -7
- package/dist/lib/bundle/trace-coverage.js +6 -7
- package/dist/lib/bundle/verify-integrity.js +8 -9
- package/dist/lib/bundle/verify-measurement.js +10 -11
- package/dist/lib/bundle/verify-report.js +11 -12
- package/dist/lib/bundle/verify.js +17 -18
- package/dist/lib/bundle/writer-lock.js +3 -1
- package/dist/lib/capture-manifest.js +3 -4
- package/dist/lib/checks/run-checks.js +10 -9
- package/dist/lib/chunks/chunk-2B5QF6UQ.js +159 -0
- package/dist/lib/chunks/{chunk-ZBDUE3A5.js → chunk-2GU6CNQI.js} +12 -7
- package/dist/lib/chunks/{chunk-CKUTDJAB.js → chunk-2ROXN2EC.js} +42 -7
- package/dist/lib/chunks/{chunk-XHWRSGX3.js → chunk-3JO5TXBA.js} +1 -1
- package/dist/lib/chunks/{chunk-XL4JIQ5X.js → chunk-4PD65FRJ.js} +7 -3
- package/dist/lib/chunks/{chunk-GMKF2FU4.js → chunk-5JPYM4MD.js} +1 -1
- package/dist/lib/chunks/{chunk-5VNYUCLL.js → chunk-622NMXN6.js} +6 -9
- package/dist/lib/chunks/{chunk-XNRSHATN.js → chunk-663HABKP.js} +5 -5
- package/dist/lib/chunks/{chunk-RMFT4KKK.js → chunk-6G25V4CF.js} +1 -1
- package/dist/lib/chunks/{chunk-GVC4LH2N.js → chunk-6GHHNPFJ.js} +1 -1
- package/dist/lib/chunks/{chunk-KMRQSIZW.js → chunk-6GOBBNDU.js} +16 -1
- package/dist/lib/chunks/{chunk-SBAZBOPI.js → chunk-6P7EZJI7.js} +4 -2
- package/dist/lib/chunks/chunk-7XO3SQAX.js +117 -0
- package/dist/lib/chunks/{chunk-SWS3K62X.js → chunk-7Z27HQWL.js} +3 -3
- package/dist/lib/chunks/{chunk-IPNK7FYT.js → chunk-AYY4MYTW.js} +1 -1
- package/dist/lib/chunks/{chunk-WDSCJEDG.js → chunk-BE4ENGUY.js} +10 -10
- package/dist/lib/chunks/{chunk-FKLNEB2P.js → chunk-BGOIPHJZ.js} +39 -11
- package/dist/lib/chunks/{chunk-7GXRDAUY.js → chunk-BLKLPUYR.js} +2 -2
- package/dist/lib/chunks/chunk-BSRKN6FU.js +93 -0
- package/dist/lib/chunks/{chunk-PCYNBDZ7.js → chunk-CO5T6WU5.js} +14 -9
- package/dist/lib/chunks/{chunk-E3OEE5XN.js → chunk-CUYVHXHI.js} +2 -2
- package/dist/lib/chunks/{chunk-2GY42RIJ.js → chunk-D3GE3OCB.js} +1 -1
- package/dist/lib/chunks/chunk-DVFFYY5G.js +74 -0
- package/dist/lib/chunks/{chunk-ZXGATMMH.js → chunk-EBUQPCKB.js} +1 -1
- package/dist/lib/chunks/{chunk-4E4NDGOZ.js → chunk-EE26FNSY.js} +1 -1
- package/dist/lib/chunks/{chunk-AUB5THIS.js → chunk-EJ655TVU.js} +1 -1
- package/dist/lib/chunks/{chunk-S2AM76LT.js → chunk-F4W5YHDZ.js} +2 -2
- package/dist/lib/chunks/chunk-FAUFE7MI.js +31 -0
- package/dist/lib/chunks/{chunk-FNDJUELJ.js → chunk-FOCJ7HPC.js} +7 -7
- package/dist/lib/chunks/{chunk-FPAN3VRW.js → chunk-FUAUPNRO.js} +26 -18
- package/dist/lib/chunks/{chunk-OQVIRYT5.js → chunk-G62E525I.js} +2 -2
- package/dist/lib/chunks/{chunk-2NJEWPCV.js → chunk-GDKGZQ3T.js} +2 -2
- package/dist/lib/chunks/{chunk-HSZ3DM74.js → chunk-GEFKDW7X.js} +15 -2
- package/dist/lib/chunks/{chunk-47IZBMP2.js → chunk-GESHTTSA.js} +2 -2
- package/dist/lib/chunks/chunk-GNMFJ2OK.js +321 -0
- package/dist/lib/chunks/{chunk-NVBMIPXR.js → chunk-HFRAHG5C.js} +44 -26
- package/dist/lib/chunks/{chunk-MHAKYFDF.js → chunk-HQG63ZKO.js} +11 -11
- package/dist/lib/chunks/{chunk-OORO55OM.js → chunk-HTOD4W4E.js} +21 -6
- package/dist/lib/chunks/{chunk-Q2PWES4B.js → chunk-I3XGRGXE.js} +1 -1
- package/dist/lib/chunks/{chunk-WUELMJ22.js → chunk-IE7NAL6B.js} +1 -1
- package/dist/lib/chunks/{chunk-KRFHQQS7.js → chunk-JXMDOAKA.js} +17 -17
- package/dist/lib/chunks/{chunk-S7KJZIUR.js → chunk-KJMU5KH4.js} +2 -2
- package/dist/lib/chunks/{chunk-POUSX3T4.js → chunk-L7MEIRJB.js} +1 -1
- package/dist/lib/chunks/{chunk-CPT2GKKW.js → chunk-LOBXOZ2R.js} +1 -1
- package/dist/lib/chunks/{chunk-IAR6XGEW.js → chunk-ML4W6KC6.js} +1 -1
- package/dist/lib/chunks/{chunk-WKH6BJAZ.js → chunk-MNWO7EHC.js} +4 -4
- package/dist/lib/chunks/{chunk-D2LPQO6Y.js → chunk-MRL5RUP7.js} +1 -1
- package/dist/lib/chunks/{chunk-IEVAFDW7.js → chunk-NCXSNHXX.js} +3 -3
- package/dist/lib/chunks/{chunk-HFOYASRQ.js → chunk-NGHAP2P5.js} +4 -4
- package/dist/lib/chunks/{chunk-ZLOOC46D.js → chunk-OKL7GN2F.js} +3 -3
- package/dist/lib/chunks/{chunk-3DG7GHFA.js → chunk-OQU5IXAJ.js} +5 -5
- package/dist/lib/chunks/{chunk-I7VNIW6Q.js → chunk-OU73OUX4.js} +16 -10
- package/dist/lib/chunks/{chunk-56VOFZ7T.js → chunk-QHUDJVPJ.js} +90 -24
- package/dist/lib/chunks/{chunk-KHU5DRBE.js → chunk-QSJ4IKUF.js} +9 -9
- package/dist/lib/chunks/{chunk-FBFZBLTY.js → chunk-R6XDZWUL.js} +7 -8
- package/dist/lib/chunks/{chunk-CJ5YD3CU.js → chunk-RJ5R6YYA.js} +5 -5
- package/dist/lib/chunks/{chunk-LPND3VNQ.js → chunk-RR46EDDR.js} +33 -25
- package/dist/lib/chunks/chunk-RYCRL3YA.js +106 -0
- package/dist/lib/chunks/{chunk-Z4LMDKBU.js → chunk-SHUMCKCS.js} +2 -2
- package/dist/lib/chunks/{chunk-3EBWDHPK.js → chunk-TJQ5OPLQ.js} +10 -12
- package/dist/lib/chunks/chunk-U64NCRRR.js +97 -0
- package/dist/lib/chunks/chunk-U772TN32.js +67 -0
- package/dist/lib/chunks/{chunk-YR67JG2V.js → chunk-UEMZYHYJ.js} +8 -3
- package/dist/lib/chunks/{chunk-J46W3EMQ.js → chunk-UZJSTJFP.js} +5 -5
- package/dist/lib/chunks/{chunk-XJVXASDD.js → chunk-V7OAPKNF.js} +3 -3
- package/dist/lib/chunks/{chunk-WE2WPNG2.js → chunk-VKM6MMA4.js} +66 -7
- package/dist/lib/chunks/{chunk-YWJPJI3W.js → chunk-VL253W5C.js} +3 -1
- package/dist/lib/chunks/{chunk-MD4AVTK2.js → chunk-VPZQGND4.js} +3 -3
- package/dist/lib/chunks/{chunk-X2Y2ZNG3.js → chunk-W2VGLWTS.js} +3 -3
- package/dist/lib/chunks/{chunk-6AUEDSTU.js → chunk-W5DC23OP.js} +1 -1
- package/dist/lib/chunks/chunk-W5X7WJYL.js +91 -0
- package/dist/lib/chunks/{chunk-QFVRCSJ2.js → chunk-WDOA5JEH.js} +2 -0
- package/dist/lib/chunks/{chunk-I3TMFPK4.js → chunk-WVACVWBL.js} +2 -2
- package/dist/lib/chunks/{chunk-MIF5IYNR.js → chunk-XDG6NPJB.js} +26 -29
- package/dist/lib/chunks/{chunk-X6E44EGV.js → chunk-XR44YSHT.js} +2 -2
- package/dist/lib/chunks/chunk-Y2CZ6FZY.js +61 -0
- package/dist/lib/chunks/{chunk-5KKLUM7M.js → chunk-YAAUWCJ4.js} +1 -1
- package/dist/lib/chunks/{chunk-3KQFLOC7.js → chunk-YRBIC5QH.js} +1 -1
- package/dist/lib/chunks/chunk-ZIGNJAPC.js +11 -0
- package/dist/lib/cli/bundle-commands.js +71 -65
- package/dist/lib/cli/guide-command.js +25 -0
- package/dist/lib/cli/io.js +1 -1
- package/dist/lib/cli/run-commands.js +270 -104
- package/dist/lib/cli/status-command.js +234 -0
- package/dist/lib/codex-workflow/aggregate.js +8 -9
- package/dist/lib/codex-workflow/author-tools.js +6 -7
- package/dist/lib/codex-workflow/author.js +17 -17
- package/dist/lib/codex-workflow/capture.js +10 -9
- package/dist/lib/codex-workflow/checkpoint.js +6 -7
- package/dist/lib/codex-workflow/checks.js +6 -7
- package/dist/lib/codex-workflow/codex-binary.js +13 -0
- package/dist/lib/codex-workflow/codex-home.js +6 -3
- package/dist/lib/codex-workflow/copy-editor.js +14 -14
- package/dist/lib/codex-workflow/copy-recovery.js +3 -4
- package/dist/lib/codex-workflow/copy.js +11 -11
- package/dist/lib/codex-workflow/finish.js +17 -18
- package/dist/lib/codex-workflow/host-models.js +7 -7
- package/dist/lib/codex-workflow/loop.js +42 -38
- package/dist/lib/codex-workflow/quality.js +3 -4
- package/dist/lib/codex-workflow/run-inputs.js +5 -6
- package/dist/lib/codex-workflow/run-source.js +14 -13
- package/dist/lib/codex-workflow/schemas.js +5 -6
- package/dist/lib/codex-workflow/session.js +7 -8
- package/dist/lib/codex-workflow/stage.js +26 -23
- package/dist/lib/codex-workflow/workdir.js +6 -7
- package/dist/lib/engine/audit-file.js +7 -6
- package/dist/lib/engine/author.js +37 -31
- package/dist/lib/engine/budget.js +7 -1
- package/dist/lib/engine/cost-estimate.js +41 -0
- package/dist/lib/engine/local-run.js +48 -42
- package/dist/lib/engine/preflight.js +10 -6
- package/dist/lib/engine/rejudge.js +56 -50
- package/dist/lib/engine/resources.js +1 -1
- package/dist/lib/engine/run-configuration.js +2 -1
- package/dist/lib/engine/run-status.js +151 -0
- package/dist/lib/engine/templates.js +8 -7
- package/dist/lib/grounding/controller.js +7 -7
- package/dist/lib/grounding/extract.js +6 -6
- package/dist/lib/grounding/grounding-runtime.js +18 -17
- package/dist/lib/grounding/model.js +5 -5
- package/dist/lib/grounding/recorded-tools.js +10 -9
- package/dist/lib/harness/report/artifacts.js +4 -5
- package/dist/lib/lib/checkpoint.js +3 -4
- package/dist/lib/models/batching.js +5 -5
- package/dist/lib/models/cost-coefficients.js +20 -0
- package/dist/lib/models/local-profile.js +10 -0
- package/dist/lib/models/pricing.js +6 -0
- package/dist/lib/models/profiles.js +7 -14
- package/dist/lib/models/structured-images.js +1 -1
- package/dist/lib/models/structured.js +4 -4
- package/dist/lib/models/supported-models.js +20 -0
- package/dist/lib/pipeline.js +9 -8
- package/dist/lib/probes/agent-cli-parsers.js +1 -1
- package/dist/lib/probes/agent-clis.js +6 -5
- package/dist/lib/probes/charged-trace.js +10 -0
- package/dist/lib/probes/probes.js +6 -6
- package/dist/lib/runner.js +10 -10
- package/dist/lib/schema.js +3 -4
- package/dist/lib/section-result.js +3 -4
- package/dist/lib/stores/artifacts.js +3 -4
- package/dist/lib/stores/files.js +9 -9
- package/dist/lib/stores/local-versions.js +4 -5
- package/dist/lib/stores/memory.js +6 -7
- package/dist/lib/stores/publication.js +5 -6
- package/dist/lib/viewer/server.js +18 -19
- package/dist/lib/workflow/schema.js +2 -3
- package/dist/types/agents/copy-validation.d.ts +4 -4
- package/dist/types/agents/verifier.d.ts +6 -6
- package/dist/types/bundle/contracts.d.ts +1 -1
- package/dist/types/bundle/isolation.d.ts +37 -0
- package/dist/types/bundle/project-journal.d.ts +2 -0
- package/dist/types/bundle/recorder.d.ts +4 -0
- package/dist/types/bundle/writer-lock.d.ts +9 -0
- package/dist/types/cli/guide-command.d.ts +4 -0
- package/dist/types/cli/status-command.d.ts +2 -0
- package/dist/types/codex-workflow/codex-binary.d.ts +26 -0
- package/dist/types/codex-workflow/codex-home.d.ts +24 -20
- package/dist/types/codex-workflow/copy-editor.d.ts +1 -1
- package/dist/types/codex-workflow/copy.d.ts +3 -4
- package/dist/types/codex-workflow/finish.d.ts +5 -3
- package/dist/types/codex-workflow/host-models.d.ts +7 -3
- package/dist/types/codex-workflow/loop.d.ts +10 -1
- package/dist/types/codex-workflow/run-inputs.d.ts +28 -113
- package/dist/types/codex-workflow/stage.d.ts +16 -5
- package/dist/types/engine/audit-file.d.ts +3 -2
- package/dist/types/engine/author.d.ts +7 -1
- package/dist/types/engine/budget.d.ts +46 -15
- package/dist/types/engine/cost-estimate.d.ts +40 -0
- package/dist/types/engine/local-run.d.ts +6 -0
- package/dist/types/engine/preflight.d.ts +5 -0
- package/dist/types/engine/resources.d.ts +2 -0
- package/dist/types/engine/run-configuration.d.ts +4 -3
- package/dist/types/engine/run-status.d.ts +75 -0
- package/dist/types/engine/templates.d.ts +1 -2
- package/dist/types/models/cost-coefficients.d.ts +106 -0
- package/dist/types/models/local-profile.d.ts +12 -0
- package/dist/types/models/pricing.d.ts +8 -0
- package/dist/types/models/profiles.d.ts +55 -160
- package/dist/types/models/served-model.d.ts +2 -3
- package/dist/types/models/structured.d.ts +3 -3
- package/dist/types/models/supported-models.d.ts +48 -0
- package/dist/types/probes/charged-trace.d.ts +8 -0
- package/dist/types/probes/probe-trace.d.ts +2 -0
- package/dist/types/schema.d.ts +28 -113
- package/dist/types/workflow/schema.d.ts +79 -152
- package/package.json +2 -1
- package/resources/guide/OPERATOR.md +180 -0
- package/src/agents/copy-validation.ts +8 -12
- package/src/agents/verifier.ts +10 -14
- package/src/bundle/contracts.ts +3 -3
- package/src/bundle/isolation.ts +157 -0
- package/src/bundle/project-journal.ts +4 -0
- package/src/bundle/project.ts +20 -7
- package/src/bundle/recorder.ts +5 -0
- package/src/bundle/writer-lock.ts +27 -0
- package/src/cli/guide-command.ts +28 -0
- package/src/cli/io.ts +2 -0
- package/src/cli/literally-aeo.ts +39 -19
- package/src/cli/run-commands.ts +236 -18
- package/src/cli/status-command.ts +113 -0
- package/src/codex-workflow/codex-binary.ts +105 -0
- package/src/codex-workflow/codex-home.ts +50 -40
- package/src/codex-workflow/copy.ts +7 -10
- package/src/codex-workflow/finish.ts +13 -8
- package/src/codex-workflow/host-models.ts +33 -24
- package/src/codex-workflow/loop.ts +36 -9
- package/src/codex-workflow/stage.ts +126 -17
- package/src/engine/audit-file.ts +10 -8
- package/src/engine/author.ts +47 -2
- package/src/engine/budget.ts +138 -43
- package/src/engine/cost-estimate.ts +178 -0
- package/src/engine/guide/OPERATOR.md +180 -0
- package/src/engine/local-run.ts +38 -8
- package/src/engine/preflight.ts +90 -7
- package/src/engine/resources.ts +9 -4
- package/src/engine/run-configuration.ts +19 -1
- package/src/engine/run-status.ts +452 -0
- package/src/engine/templates.ts +5 -2
- package/src/models/cost-coefficients.ts +140 -0
- package/src/models/local-profile.ts +150 -0
- package/src/models/pricing.ts +31 -0
- package/src/models/profiles.ts +58 -419
- package/src/models/served-model.ts +2 -3
- package/src/models/structured-images.ts +5 -4
- package/src/models/structured.ts +20 -7
- package/src/models/supported-models.ts +112 -0
- package/src/probes/agent-clis.ts +24 -2
- package/src/probes/charged-trace.ts +87 -0
- package/src/probes/probe-trace.ts +2 -0
- package/src/probes/probes.ts +48 -2
- package/dist/lib/chunks/chunk-CFFPOTP4.js +0 -356
- package/dist/lib/chunks/chunk-LIZX4N3H.js +0 -110
- package/dist/lib/chunks/chunk-OYKV5NDM.js +0 -28
|
@@ -1,63 +1,69 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openFileStores
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HQG63ZKO.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
chargedProbeTrace
|
|
6
|
+
} from "./chunk-Y2CZ6FZY.js";
|
|
7
7
|
import {
|
|
8
8
|
openGroundingRuntime
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FOCJ7HPC.js";
|
|
10
|
+
import {
|
|
11
|
+
createFileResearchSessionStore
|
|
12
|
+
} from "./chunk-Z7V63UZA.js";
|
|
10
13
|
import {
|
|
11
14
|
toAuditConfig,
|
|
12
15
|
toRunRequest
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OU73OUX4.js";
|
|
14
17
|
import {
|
|
15
18
|
resolveRunBudget
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2B5QF6UQ.js";
|
|
17
20
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./chunk-SWS3K62X.js";
|
|
21
|
+
resolveSupportedModel
|
|
22
|
+
} from "./chunk-W5X7WJYL.js";
|
|
21
23
|
import {
|
|
22
24
|
planRun
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-V7OAPKNF.js";
|
|
26
|
+
import {
|
|
27
|
+
localTechnicalChecks,
|
|
28
|
+
persistedRunId
|
|
29
|
+
} from "./chunk-7Z27HQWL.js";
|
|
24
30
|
import {
|
|
25
31
|
agentSurfacesToCapture,
|
|
26
32
|
captureForRun
|
|
27
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ML4W6KC6.js";
|
|
28
34
|
import {
|
|
29
35
|
assertAgentClis,
|
|
30
36
|
detectAgentClis,
|
|
31
37
|
runCanaryProbes
|
|
32
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HTOD4W4E.js";
|
|
33
39
|
import {
|
|
34
40
|
acquireWriterLock
|
|
35
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6GOBBNDU.js";
|
|
36
42
|
import {
|
|
37
43
|
runInputsFile
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GDKGZQ3T.js";
|
|
39
45
|
import {
|
|
40
46
|
openRecorder,
|
|
41
47
|
probeTraceOf,
|
|
42
48
|
recordedOperationKinds,
|
|
43
49
|
recordingAccounting
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4PD65FRJ.js";
|
|
45
51
|
import {
|
|
46
52
|
hasErrorCode
|
|
47
53
|
} from "./chunk-2QLAFBCG.js";
|
|
48
54
|
import {
|
|
49
55
|
RunOrigin,
|
|
50
56
|
measurementDigest
|
|
51
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WVACVWBL.js";
|
|
52
58
|
import {
|
|
53
59
|
capturePlan
|
|
54
60
|
} from "./chunk-YHS5IEVZ.js";
|
|
55
|
-
import {
|
|
56
|
-
ProbeLimiter
|
|
57
|
-
} from "./chunk-W5XYW6ZM.js";
|
|
58
61
|
import {
|
|
59
62
|
getEnvironment
|
|
60
63
|
} from "./chunk-PO2J5OQ3.js";
|
|
64
|
+
import {
|
|
65
|
+
ProbeLimiter
|
|
66
|
+
} from "./chunk-W5XYW6ZM.js";
|
|
61
67
|
import {
|
|
62
68
|
createFileModelAccounting
|
|
63
69
|
} from "./chunk-TNL2GWYR.js";
|
|
@@ -145,6 +151,7 @@ var openLocalRun = async (file, dir, options = {}) => {
|
|
|
145
151
|
};
|
|
146
152
|
var openLockedLocalRun = async (file, dir, {
|
|
147
153
|
signal,
|
|
154
|
+
maxUsd,
|
|
148
155
|
amendment,
|
|
149
156
|
derivedFromRunId,
|
|
150
157
|
runId,
|
|
@@ -152,7 +159,9 @@ var openLockedLocalRun = async (file, dir, {
|
|
|
152
159
|
}) => {
|
|
153
160
|
const { recorder } = held;
|
|
154
161
|
const budget = await resolveRunBudget(dir, file.runPolicy.budget, {
|
|
155
|
-
|
|
162
|
+
model: resolveSupportedModel(file.model).id,
|
|
163
|
+
...maxUsd !== void 0 && { maxUsd },
|
|
164
|
+
...amendment && { amendment }
|
|
156
165
|
});
|
|
157
166
|
const config = toAuditConfig(file);
|
|
158
167
|
const request = {
|
|
@@ -169,17 +178,18 @@ var openLockedLocalRun = async (file, dir, {
|
|
|
169
178
|
signal?.throwIfAborted();
|
|
170
179
|
return Promise.resolve();
|
|
171
180
|
};
|
|
181
|
+
const ledger = createFileModelAccounting({
|
|
182
|
+
filename: path.join(bank, "model-budget.json"),
|
|
183
|
+
limits: budget.limits,
|
|
184
|
+
assertOwned
|
|
185
|
+
});
|
|
172
186
|
const grounding = openGroundingRuntime({
|
|
173
187
|
request,
|
|
174
188
|
config,
|
|
175
189
|
analysisStore: stores.analysisStore,
|
|
176
190
|
env: getEnvironment(),
|
|
177
191
|
signal,
|
|
178
|
-
rawAccounting:
|
|
179
|
-
filename: path.join(bank, "model-budget.json"),
|
|
180
|
-
limits: budget.limits,
|
|
181
|
-
assertOwned
|
|
182
|
-
}),
|
|
192
|
+
rawAccounting: ledger,
|
|
183
193
|
store: createFileResearchSessionStore(
|
|
184
194
|
path.join(bank, "research"),
|
|
185
195
|
assertOwned
|
|
@@ -210,6 +220,7 @@ var openLockedLocalRun = async (file, dir, {
|
|
|
210
220
|
{ cause: err }
|
|
211
221
|
);
|
|
212
222
|
}
|
|
223
|
+
const probes = chargedProbeTrace(probeTraceOf(recorder, "probe"), ledger);
|
|
213
224
|
const capture = await captureForRun({
|
|
214
225
|
config,
|
|
215
226
|
request,
|
|
@@ -218,10 +229,16 @@ var openLockedLocalRun = async (file, dir, {
|
|
|
218
229
|
agentCliVersions,
|
|
219
230
|
limiter: new ProbeLimiter(request.limits),
|
|
220
231
|
internalModels,
|
|
221
|
-
trace:
|
|
232
|
+
trace: probes.trace,
|
|
222
233
|
signal,
|
|
223
234
|
logContext: { reportKey: config.reportKey, runId, local: true }
|
|
235
|
+
}).catch((err) => {
|
|
236
|
+
throw probes.exhausted() ?? err;
|
|
224
237
|
});
|
|
238
|
+
const exhausted = probes.exhausted();
|
|
239
|
+
if (exhausted) {
|
|
240
|
+
throw exhausted;
|
|
241
|
+
}
|
|
225
242
|
const captured = (await stores.probeStore.list()).filter(
|
|
226
243
|
(entry) => entry.status === "captured"
|
|
227
244
|
);
|
|
@@ -243,6 +260,7 @@ var openLockedLocalRun = async (file, dir, {
|
|
|
243
260
|
source,
|
|
244
261
|
budget,
|
|
245
262
|
internalModels,
|
|
263
|
+
ledger,
|
|
246
264
|
ground: (manifest, options) => grounding.ground(manifest, options),
|
|
247
265
|
held
|
|
248
266
|
};
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
openFileVersionStores
|
|
3
|
-
} from "./chunk-RMFT4KKK.js";
|
|
4
|
-
import {
|
|
5
|
-
assertPublishable,
|
|
6
|
-
sameTriple
|
|
7
|
-
} from "./chunk-S2AM76LT.js";
|
|
8
|
-
import {
|
|
9
|
-
validateReportArtifacts
|
|
10
|
-
} from "./chunk-ISN6MBNB.js";
|
|
11
1
|
import {
|
|
12
2
|
filePublicationHistory,
|
|
13
3
|
readFilePublication,
|
|
@@ -15,9 +5,19 @@ import {
|
|
|
15
5
|
writeAtomicJson,
|
|
16
6
|
writeFilePublication
|
|
17
7
|
} from "./chunk-AP5DLF36.js";
|
|
8
|
+
import {
|
|
9
|
+
openFileVersionStores
|
|
10
|
+
} from "./chunk-6G25V4CF.js";
|
|
18
11
|
import {
|
|
19
12
|
publicationTripleSchema
|
|
20
13
|
} from "./chunk-2URYGUMH.js";
|
|
14
|
+
import {
|
|
15
|
+
assertPublishable,
|
|
16
|
+
sameTriple
|
|
17
|
+
} from "./chunk-F4W5YHDZ.js";
|
|
18
|
+
import {
|
|
19
|
+
validateReportArtifacts
|
|
20
|
+
} from "./chunk-ISN6MBNB.js";
|
|
21
21
|
import {
|
|
22
22
|
aeoCheckpointDir,
|
|
23
23
|
aeoContentDir
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-ZCOI3HE2.js";
|
|
48
48
|
import {
|
|
49
49
|
aeoAuditConfigSchema
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OKL7GN2F.js";
|
|
51
51
|
import {
|
|
52
52
|
evaluateRunClaim,
|
|
53
53
|
isTerminalRun,
|
|
@@ -21,6 +21,10 @@ import {
|
|
|
21
21
|
childEnv,
|
|
22
22
|
runChild
|
|
23
23
|
} from "./chunk-7QYZSP7Q.js";
|
|
24
|
+
import {
|
|
25
|
+
codexArgs,
|
|
26
|
+
resolveCodexBinary
|
|
27
|
+
} from "./chunk-U772TN32.js";
|
|
24
28
|
import {
|
|
25
29
|
ProbeFailure,
|
|
26
30
|
agentProbeRetryPolicy,
|
|
@@ -32,6 +36,10 @@ import {
|
|
|
32
36
|
import {
|
|
33
37
|
createLog
|
|
34
38
|
} from "./chunk-ZSEY7AHQ.js";
|
|
39
|
+
import {
|
|
40
|
+
getEnvironment,
|
|
41
|
+
readEnv
|
|
42
|
+
} from "./chunk-PO2J5OQ3.js";
|
|
35
43
|
import {
|
|
36
44
|
isRecord
|
|
37
45
|
} from "./chunk-7PLK6VGC.js";
|
|
@@ -39,10 +47,6 @@ import {
|
|
|
39
47
|
sleep,
|
|
40
48
|
unlimited
|
|
41
49
|
} from "./chunk-W5XYW6ZM.js";
|
|
42
|
-
import {
|
|
43
|
-
getEnvironment,
|
|
44
|
-
readEnv
|
|
45
|
-
} from "./chunk-PO2J5OQ3.js";
|
|
46
50
|
import {
|
|
47
51
|
retrievalLogSchema
|
|
48
52
|
} from "./chunk-SDWYZM64.js";
|
|
@@ -197,6 +201,13 @@ var probeForSurface = (surface) => {
|
|
|
197
201
|
return runCursorProbe;
|
|
198
202
|
}
|
|
199
203
|
};
|
|
204
|
+
var localCommand = (command, args) => {
|
|
205
|
+
if (command !== "codex") {
|
|
206
|
+
return { command, args: [...args] };
|
|
207
|
+
}
|
|
208
|
+
const binary = resolveCodexBinary();
|
|
209
|
+
return { command: binary.command, args: codexArgs(binary, args) };
|
|
210
|
+
};
|
|
200
211
|
var cliVersion = async (command, args) => {
|
|
201
212
|
try {
|
|
202
213
|
const transport = workerTransport();
|
|
@@ -209,7 +220,10 @@ var cliVersion = async (command, args) => {
|
|
|
209
220
|
if (readEnv("AEO_ISOLATED_ADAPTER") === "1") {
|
|
210
221
|
requireWorkerTransport();
|
|
211
222
|
}
|
|
212
|
-
const
|
|
223
|
+
const local = localCommand(command, args);
|
|
224
|
+
const { stdout } = await execFileAsync(local.command, local.args, {
|
|
225
|
+
timeout: 15e3
|
|
226
|
+
});
|
|
213
227
|
return stdout.trim().split("\n")[0] ?? null;
|
|
214
228
|
} catch {
|
|
215
229
|
return null;
|
|
@@ -742,7 +756,8 @@ var claudeEnvKeys = [
|
|
|
742
756
|
var codexEnvKeys = ["OPENAI_API_KEY", "CODEX_HOME"];
|
|
743
757
|
var cursorEnvKeys = ["CURSOR_API_KEY"];
|
|
744
758
|
var execCli = async (command, { cliArgs, cwd, runtime, env, signal }) => {
|
|
745
|
-
const
|
|
759
|
+
const local = localCommand(command, cliArgs);
|
|
760
|
+
const result = await runChild(local.command, local.args, {
|
|
746
761
|
cwd,
|
|
747
762
|
env,
|
|
748
763
|
timeoutMs: runtime.timeoutMs ?? agentProbeTimeoutMs,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
hostModels
|
|
3
|
-
|
|
2
|
+
hostModels,
|
|
3
|
+
pinnedProfileOf
|
|
4
|
+
} from "./chunk-FAUFE7MI.js";
|
|
5
|
+
import {
|
|
6
|
+
StoreConflictError
|
|
7
|
+
} from "./chunk-FWBVTM7F.js";
|
|
4
8
|
import {
|
|
5
9
|
assembleSnapshot,
|
|
6
10
|
enrichSourceMix,
|
|
7
11
|
runPerceptionPass
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
StoreConflictError
|
|
11
|
-
} from "./chunk-FWBVTM7F.js";
|
|
12
|
+
} from "./chunk-V7OAPKNF.js";
|
|
12
13
|
import {
|
|
13
14
|
checkRetrievalCapture,
|
|
14
15
|
checkWebToolDetection,
|
|
@@ -16,14 +17,11 @@ import {
|
|
|
16
17
|
} from "./chunk-IBOWGKN7.js";
|
|
17
18
|
import {
|
|
18
19
|
parseAggregateOutput
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
codexModel
|
|
22
|
-
} from "./chunk-MIF5IYNR.js";
|
|
20
|
+
} from "./chunk-UZJSTJFP.js";
|
|
23
21
|
import {
|
|
24
22
|
stageVersions,
|
|
25
23
|
workflowVersion
|
|
26
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6GHHNPFJ.js";
|
|
27
25
|
import {
|
|
28
26
|
buildCaptureManifest,
|
|
29
27
|
captureManifestSchema
|
|
@@ -33,7 +31,7 @@ import {
|
|
|
33
31
|
} from "./chunk-ZCOI3HE2.js";
|
|
34
32
|
import {
|
|
35
33
|
partialFailureSchema
|
|
36
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OKL7GN2F.js";
|
|
37
35
|
import {
|
|
38
36
|
ProbeLimiter
|
|
39
37
|
} from "./chunk-W5XYW6ZM.js";
|
|
@@ -52,9 +50,11 @@ import { createHash } from "node:crypto";
|
|
|
52
50
|
import { readFile, writeFile } from "node:fs/promises";
|
|
53
51
|
import path from "node:path";
|
|
54
52
|
import { z } from "zod";
|
|
55
|
-
var codexAnalyzer = {
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
var codexAnalyzer = (model) => {
|
|
54
|
+
return {
|
|
55
|
+
version: workflowVersion * 100 + stageVersions.analyze,
|
|
56
|
+
model
|
|
57
|
+
};
|
|
58
58
|
};
|
|
59
59
|
var finishRun = async (args) => {
|
|
60
60
|
const { source, dir, signal } = args;
|
|
@@ -103,7 +103,7 @@ var finishRun = async (args) => {
|
|
|
103
103
|
error: `${file}: left out of the matrix`
|
|
104
104
|
}))
|
|
105
105
|
];
|
|
106
|
-
const internalModels = args.internalModels ?? hostModels();
|
|
106
|
+
const internalModels = args.internalModels ?? hostModels(pinnedProfileOf(source.request.modelProfile));
|
|
107
107
|
const logContext = {
|
|
108
108
|
reportKey: config.reportKey,
|
|
109
109
|
runId: request.runId,
|
|
@@ -178,7 +178,7 @@ var finishRun = async (args) => {
|
|
|
178
178
|
),
|
|
179
179
|
partialFailures,
|
|
180
180
|
generatedAt: createdAt,
|
|
181
|
-
analyzer: codexAnalyzer
|
|
181
|
+
analyzer: codexAnalyzer(args.stageModelId)
|
|
182
182
|
});
|
|
183
183
|
const snapshotFile = path.join(dir, "OUT", "snapshot.json");
|
|
184
184
|
if (args.quality) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
aiSearchProbeModels,
|
|
6
6
|
runProbesForPrompts
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BGOIPHJZ.js";
|
|
8
8
|
import {
|
|
9
9
|
runAgentProbesForPrompts
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HTOD4W4E.js";
|
|
11
11
|
import {
|
|
12
12
|
withSection
|
|
13
13
|
} from "./chunk-GVOF5ZUG.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
probeLimitsSchema
|
|
6
6
|
} from "./chunk-W5XYW6ZM.js";
|
|
7
|
-
import {
|
|
8
|
-
coverageThresholdsSchema
|
|
9
|
-
} from "./chunk-EZD2C7QS.js";
|
|
10
7
|
import {
|
|
11
8
|
generationBackendSchema,
|
|
12
9
|
internalModelProfileIdSchema,
|
|
13
10
|
internalModelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RYCRL3YA.js";
|
|
12
|
+
import {
|
|
13
|
+
coverageThresholdsSchema
|
|
14
|
+
} from "./chunk-EZD2C7QS.js";
|
|
15
15
|
import {
|
|
16
16
|
modelBudgetLimitsSchema
|
|
17
17
|
} from "./chunk-TNL2GWYR.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk-JS3GBU3R.js";
|
|
19
19
|
import {
|
|
20
20
|
batchModelInputs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W5DC23OP.js";
|
|
22
22
|
import {
|
|
23
23
|
generateStructured
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CO5T6WU5.js";
|
|
25
25
|
import {
|
|
26
26
|
createLog
|
|
27
27
|
} from "./chunk-ZSEY7AHQ.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-ZCOI3HE2.js";
|
|
32
32
|
import {
|
|
33
33
|
internalModelRoleDigest
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RYCRL3YA.js";
|
|
35
35
|
import {
|
|
36
36
|
ModelBudgetError
|
|
37
37
|
} from "./chunk-TNL2GWYR.js";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
bankDir,
|
|
3
3
|
planLocalRun,
|
|
4
4
|
runDirectoryState
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HFRAHG5C.js";
|
|
6
6
|
import {
|
|
7
7
|
localReportKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OU73OUX4.js";
|
|
9
9
|
import {
|
|
10
10
|
finalizeRevision,
|
|
11
11
|
revisionsDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QSJ4IKUF.js";
|
|
13
13
|
import {
|
|
14
14
|
readRunInputs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GDKGZQ3T.js";
|
|
16
16
|
import {
|
|
17
17
|
derivedFile,
|
|
18
18
|
predecessorDir,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
probeLimitsSchema
|
|
3
3
|
} from "./chunk-W5XYW6ZM.js";
|
|
4
|
+
import {
|
|
5
|
+
internalModelProfileSchema
|
|
6
|
+
} from "./chunk-RYCRL3YA.js";
|
|
4
7
|
import {
|
|
5
8
|
coverageThresholdsSchema
|
|
6
9
|
} from "./chunk-EZD2C7QS.js";
|
|
7
|
-
import {
|
|
8
|
-
internalModelProfileSchema
|
|
9
|
-
} from "./chunk-CFFPOTP4.js";
|
|
10
10
|
import {
|
|
11
11
|
modelBudgetLimitsSchema
|
|
12
12
|
} from "./chunk-TNL2GWYR.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
answerBody,
|
|
3
3
|
answerFilePath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LOBXOZ2R.js";
|
|
5
5
|
import {
|
|
6
6
|
CheckOutcome,
|
|
7
7
|
checkFrom,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
} from "./chunk-6KHQ7DXP.js";
|
|
11
11
|
import {
|
|
12
12
|
capturedRecordsSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GDKGZQ3T.js";
|
|
14
14
|
import {
|
|
15
15
|
analyzeRowSchema,
|
|
16
16
|
qualifyOutputSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6GHHNPFJ.js";
|
|
18
18
|
import {
|
|
19
19
|
bundlePaths,
|
|
20
20
|
measurementDigest,
|
|
21
21
|
planDocumentSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WVACVWBL.js";
|
|
23
23
|
import {
|
|
24
24
|
canonicalDigest
|
|
25
25
|
} from "./chunk-E6NQQU6V.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-3UFZ2XPE.js";
|
|
36
36
|
import {
|
|
37
37
|
aeoAuditConfigSchema
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OKL7GN2F.js";
|
|
39
39
|
import {
|
|
40
40
|
contentHash
|
|
41
41
|
} from "./chunk-H2KDLDK6.js";
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
localModelProfile
|
|
3
|
+
} from "./chunk-U64NCRRR.js";
|
|
1
4
|
import {
|
|
2
5
|
budgetPolicySchema
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2B5QF6UQ.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveSupportedModel
|
|
9
|
+
} from "./chunk-W5X7WJYL.js";
|
|
4
10
|
import {
|
|
5
11
|
resolveDataForSeoLocale
|
|
6
12
|
} from "./chunk-NH4QGBJV.js";
|
|
@@ -9,17 +15,13 @@ import {
|
|
|
9
15
|
agentProbeConfigSchema,
|
|
10
16
|
defaultMaxPlannedUnits,
|
|
11
17
|
runRequestSchema
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OKL7GN2F.js";
|
|
13
19
|
import {
|
|
14
20
|
probeLimitsSchema
|
|
15
21
|
} from "./chunk-W5XYW6ZM.js";
|
|
16
22
|
import {
|
|
17
23
|
coverageThresholdsSchema
|
|
18
24
|
} from "./chunk-EZD2C7QS.js";
|
|
19
|
-
import {
|
|
20
|
-
codexRunnerProfile,
|
|
21
|
-
resolveInternalModelProfile
|
|
22
|
-
} from "./chunk-CFFPOTP4.js";
|
|
23
25
|
import {
|
|
24
26
|
aeoSurfaceSchema,
|
|
25
27
|
brandSchema
|
|
@@ -62,11 +64,16 @@ var runPolicySchema = z.object({
|
|
|
62
64
|
limits: probeLimitsSchema.prefault({}),
|
|
63
65
|
coverageThresholds: coverageThresholdsSchema.prefault({}),
|
|
64
66
|
allowPartial: z.boolean().default(false),
|
|
65
|
-
//
|
|
67
|
+
// Caps every paid call of the run: probes, Codex stage sessions, host
|
|
68
|
+
// model calls and searches (see BudgetPolicy).
|
|
66
69
|
budget: budgetPolicySchema.prefault({})
|
|
67
70
|
}).strict();
|
|
68
71
|
var auditFileSchema = z.object({
|
|
69
72
|
version: z.literal(auditFileVersion),
|
|
73
|
+
// The gateway model every text role and Codex stage runs on; absent
|
|
74
|
+
// means the engine's recommended model (src/models/supported-models.ts).
|
|
75
|
+
// Probe surfaces are what is measured and keep their own pinned models.
|
|
76
|
+
model: z.string().trim().min(1).optional(),
|
|
70
77
|
brand: brandSchema,
|
|
71
78
|
competitors: z.array(brandSchema).min(1),
|
|
72
79
|
ownedDomains: z.array(z.string().min(1)).max(20).optional(),
|
|
@@ -167,12 +174,11 @@ var toRunRequest = (file, runId, modelBudget) => {
|
|
|
167
174
|
runId,
|
|
168
175
|
mode: "resume",
|
|
169
176
|
grounding: file.grounding,
|
|
170
|
-
modelProfile: {
|
|
171
|
-
...resolveInternalModelProfile(codexRunnerProfile),
|
|
177
|
+
modelProfile: localModelProfile(resolveSupportedModel(file.model), {
|
|
172
178
|
// Pinned by the audit, never inferred from which credentials happen to
|
|
173
179
|
// be set: full grounding searches, and preflight requires its key.
|
|
174
180
|
searchProvider: file.grounding === "full" ? "dataforseo-google-organic-v1" : "disabled"
|
|
175
|
-
},
|
|
181
|
+
}),
|
|
176
182
|
...modelBudget && { modelBudget },
|
|
177
183
|
surfaces: file.surfaces,
|
|
178
184
|
maxPlannedUnits: file.runPolicy.maxPlannedUnits,
|