literally-aeo 0.1.0 → 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-4US3OBKJ.js → chunk-2GU6CNQI.js} +12 -7
- package/dist/lib/chunks/{chunk-AWOJWMPN.js → chunk-2ROXN2EC.js} +42 -7
- package/dist/lib/chunks/{chunk-XHWRSGX3.js → chunk-3JO5TXBA.js} +1 -1
- package/dist/lib/chunks/{chunk-5GZVDGTX.js → chunk-4PD65FRJ.js} +7 -3
- package/dist/lib/chunks/{chunk-P4K6BP3L.js → chunk-5JPYM4MD.js} +1 -1
- package/dist/lib/chunks/{chunk-5VNYUCLL.js → chunk-622NMXN6.js} +6 -9
- package/dist/lib/chunks/{chunk-4ZY6P5SO.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-M2OD74GP.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-BEQLSAVX.js → chunk-CUYVHXHI.js} +2 -2
- package/dist/lib/chunks/{chunk-RBOO4NDG.js → chunk-D3GE3OCB.js} +1 -1
- package/dist/lib/chunks/chunk-DVFFYY5G.js +74 -0
- package/dist/lib/chunks/{chunk-5H3SNUQT.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-2KJZ326K.js → chunk-FOCJ7HPC.js} +7 -7
- package/dist/lib/chunks/{chunk-OL746E4T.js → chunk-FUAUPNRO.js} +26 -18
- package/dist/lib/chunks/{chunk-J6IJGYP5.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-CS24IL3K.js → chunk-GESHTTSA.js} +2 -2
- package/dist/lib/chunks/chunk-GNMFJ2OK.js +321 -0
- package/dist/lib/chunks/{chunk-H3G3VTT7.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-2ROSV4HD.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-AKKFERA4.js → chunk-NGHAP2P5.js} +4 -4
- package/dist/lib/chunks/{chunk-ZLOOC46D.js → chunk-OKL7GN2F.js} +3 -3
- package/dist/lib/chunks/{chunk-YOZNLFSB.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-WTQWU522.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-5EX5DKMA.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-XU6WQ5UL.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-6KO7HGCQ.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-N2ZZ6JRF.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
|
@@ -4,17 +4,16 @@ import {
|
|
|
4
4
|
MemoryCopyStore,
|
|
5
5
|
memoryVersionStores,
|
|
6
6
|
openFileVersionStores
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-6G25V4CF.js";
|
|
8
8
|
import "../chunks/chunk-IRPKBDB7.js";
|
|
9
9
|
import "../chunks/chunk-FWBVTM7F.js";
|
|
10
10
|
import "../chunks/chunk-2QLAFBCG.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-OKL7GN2F.js";
|
|
12
|
+
import "../chunks/chunk-MNWO7EHC.js";
|
|
13
13
|
import "../chunks/chunk-E4HADK7C.js";
|
|
14
14
|
import "../chunks/chunk-W5XYW6ZM.js";
|
|
15
|
+
import "../chunks/chunk-RYCRL3YA.js";
|
|
15
16
|
import "../chunks/chunk-EZD2C7QS.js";
|
|
16
|
-
import "../chunks/chunk-CFFPOTP4.js";
|
|
17
|
-
import "../chunks/chunk-PO2J5OQ3.js";
|
|
18
17
|
import "../chunks/chunk-TNL2GWYR.js";
|
|
19
18
|
import "../chunks/chunk-WJUHRJVW.js";
|
|
20
19
|
import "../chunks/chunk-EV4DRS5M.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
memoryVersionStores
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-6G25V4CF.js";
|
|
4
4
|
import {
|
|
5
5
|
assertPublishable
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-F4W5YHDZ.js";
|
|
7
7
|
import {
|
|
8
8
|
validateReportArtifacts
|
|
9
9
|
} from "../chunks/chunk-ISN6MBNB.js";
|
|
@@ -23,18 +23,17 @@ import {
|
|
|
23
23
|
import "../chunks/chunk-3BJWRD4O.js";
|
|
24
24
|
import "../chunks/chunk-TGTM5ZFR.js";
|
|
25
25
|
import "../chunks/chunk-ZCOI3HE2.js";
|
|
26
|
-
import "../chunks/chunk-
|
|
26
|
+
import "../chunks/chunk-R6XDZWUL.js";
|
|
27
27
|
import "../chunks/chunk-7PLK6VGC.js";
|
|
28
28
|
import "../chunks/chunk-NANJGMEJ.js";
|
|
29
29
|
import "../chunks/chunk-55U7PRRM.js";
|
|
30
30
|
import "../chunks/chunk-2PAO43CH.js";
|
|
31
|
-
import "../chunks/chunk-
|
|
32
|
-
import "../chunks/chunk-
|
|
31
|
+
import "../chunks/chunk-OKL7GN2F.js";
|
|
32
|
+
import "../chunks/chunk-MNWO7EHC.js";
|
|
33
33
|
import "../chunks/chunk-E4HADK7C.js";
|
|
34
34
|
import "../chunks/chunk-W5XYW6ZM.js";
|
|
35
|
+
import "../chunks/chunk-RYCRL3YA.js";
|
|
35
36
|
import "../chunks/chunk-EZD2C7QS.js";
|
|
36
|
-
import "../chunks/chunk-CFFPOTP4.js";
|
|
37
|
-
import "../chunks/chunk-PO2J5OQ3.js";
|
|
38
37
|
import "../chunks/chunk-TNL2GWYR.js";
|
|
39
38
|
import {
|
|
40
39
|
evaluateRunClaim,
|
|
@@ -2,20 +2,19 @@ import {
|
|
|
2
2
|
assertPublishable,
|
|
3
3
|
isCurrentValidation,
|
|
4
4
|
sameTriple
|
|
5
|
-
} from "../chunks/chunk-
|
|
5
|
+
} from "../chunks/chunk-F4W5YHDZ.js";
|
|
6
6
|
import "../chunks/chunk-FWBVTM7F.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-R6XDZWUL.js";
|
|
8
8
|
import "../chunks/chunk-7PLK6VGC.js";
|
|
9
9
|
import "../chunks/chunk-NANJGMEJ.js";
|
|
10
10
|
import "../chunks/chunk-55U7PRRM.js";
|
|
11
11
|
import "../chunks/chunk-2PAO43CH.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
12
|
+
import "../chunks/chunk-OKL7GN2F.js";
|
|
13
|
+
import "../chunks/chunk-MNWO7EHC.js";
|
|
14
14
|
import "../chunks/chunk-E4HADK7C.js";
|
|
15
15
|
import "../chunks/chunk-W5XYW6ZM.js";
|
|
16
|
+
import "../chunks/chunk-RYCRL3YA.js";
|
|
16
17
|
import "../chunks/chunk-EZD2C7QS.js";
|
|
17
|
-
import "../chunks/chunk-CFFPOTP4.js";
|
|
18
|
-
import "../chunks/chunk-PO2J5OQ3.js";
|
|
19
18
|
import "../chunks/chunk-TNL2GWYR.js";
|
|
20
19
|
import "../chunks/chunk-WJUHRJVW.js";
|
|
21
20
|
import "../chunks/chunk-EV4DRS5M.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startViewer
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-G62E525I.js";
|
|
4
4
|
import "../chunks/chunk-ZXQPD4OC.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
6
|
-
import "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-663HABKP.js";
|
|
6
|
+
import "../chunks/chunk-VPZQGND4.js";
|
|
7
|
+
import "../chunks/chunk-OQU5IXAJ.js";
|
|
8
|
+
import "../chunks/chunk-CUYVHXHI.js";
|
|
9
|
+
import "../chunks/chunk-UZJSTJFP.js";
|
|
10
|
+
import "../chunks/chunk-EJ655TVU.js";
|
|
10
11
|
import "../chunks/chunk-DC6PN7QJ.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-CPT2GKKW.js";
|
|
12
|
+
import "../chunks/chunk-LOBXOZ2R.js";
|
|
13
13
|
import "../chunks/chunk-6KHQ7DXP.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
15
|
-
import "../chunks/chunk-
|
|
14
|
+
import "../chunks/chunk-GDKGZQ3T.js";
|
|
15
|
+
import "../chunks/chunk-6GHHNPFJ.js";
|
|
16
16
|
import "../chunks/chunk-SREGO3PU.js";
|
|
17
|
-
import "../chunks/chunk-
|
|
18
|
-
import "../chunks/chunk-
|
|
17
|
+
import "../chunks/chunk-5JPYM4MD.js";
|
|
18
|
+
import "../chunks/chunk-YRBIC5QH.js";
|
|
19
19
|
import "../chunks/chunk-W46Y7KBR.js";
|
|
20
20
|
import "../chunks/chunk-2QLAFBCG.js";
|
|
21
|
-
import "../chunks/chunk-
|
|
22
|
-
import "../chunks/chunk-
|
|
21
|
+
import "../chunks/chunk-WVACVWBL.js";
|
|
22
|
+
import "../chunks/chunk-YAAUWCJ4.js";
|
|
23
23
|
import "../chunks/chunk-7O3M6I2X.js";
|
|
24
24
|
import "../chunks/chunk-E6NQQU6V.js";
|
|
25
25
|
import "../chunks/chunk-YHS5IEVZ.js";
|
|
@@ -31,16 +31,15 @@ import "../chunks/chunk-3BJWRD4O.js";
|
|
|
31
31
|
import "../chunks/chunk-TGTM5ZFR.js";
|
|
32
32
|
import "../chunks/chunk-CQ62GN7P.js";
|
|
33
33
|
import "../chunks/chunk-7ZOJE6BH.js";
|
|
34
|
-
import "../chunks/chunk-
|
|
34
|
+
import "../chunks/chunk-MRL5RUP7.js";
|
|
35
35
|
import "../chunks/chunk-7PLK6VGC.js";
|
|
36
36
|
import "../chunks/chunk-55U7PRRM.js";
|
|
37
|
-
import "../chunks/chunk-
|
|
38
|
-
import "../chunks/chunk-
|
|
37
|
+
import "../chunks/chunk-OKL7GN2F.js";
|
|
38
|
+
import "../chunks/chunk-MNWO7EHC.js";
|
|
39
39
|
import "../chunks/chunk-E4HADK7C.js";
|
|
40
40
|
import "../chunks/chunk-W5XYW6ZM.js";
|
|
41
|
+
import "../chunks/chunk-RYCRL3YA.js";
|
|
41
42
|
import "../chunks/chunk-EZD2C7QS.js";
|
|
42
|
-
import "../chunks/chunk-CFFPOTP4.js";
|
|
43
|
-
import "../chunks/chunk-PO2J5OQ3.js";
|
|
44
43
|
import "../chunks/chunk-TNL2GWYR.js";
|
|
45
44
|
import "../chunks/chunk-WJUHRJVW.js";
|
|
46
45
|
import "../chunks/chunk-EV4DRS5M.js";
|
|
@@ -13,12 +13,11 @@ import {
|
|
|
13
13
|
reviewRequestSchema,
|
|
14
14
|
scopeSchema,
|
|
15
15
|
tripleSchema
|
|
16
|
-
} from "../chunks/chunk-
|
|
16
|
+
} from "../chunks/chunk-MNWO7EHC.js";
|
|
17
17
|
import "../chunks/chunk-E4HADK7C.js";
|
|
18
18
|
import "../chunks/chunk-W5XYW6ZM.js";
|
|
19
|
+
import "../chunks/chunk-RYCRL3YA.js";
|
|
19
20
|
import "../chunks/chunk-EZD2C7QS.js";
|
|
20
|
-
import "../chunks/chunk-CFFPOTP4.js";
|
|
21
|
-
import "../chunks/chunk-PO2J5OQ3.js";
|
|
22
21
|
import "../chunks/chunk-TNL2GWYR.js";
|
|
23
22
|
import "../chunks/chunk-WJUHRJVW.js";
|
|
24
23
|
import "../chunks/chunk-EV4DRS5M.js";
|
|
@@ -104,7 +104,7 @@ export declare const validateAgentCopy: (args: {
|
|
|
104
104
|
runId: string;
|
|
105
105
|
configVersion?: number;
|
|
106
106
|
grounding?: GroundingBundle;
|
|
107
|
-
verifierProfile
|
|
107
|
+
verifierProfile: InternalModelRoleConfig;
|
|
108
108
|
verifier: RecommendationVerifier;
|
|
109
109
|
previous?: AeoReportCopy | null;
|
|
110
110
|
brandLogo?: AeoReportCopy["brandLogo"];
|
|
@@ -117,7 +117,7 @@ export type CopyFactsUnchangedOptions = {
|
|
|
117
117
|
config: AeoAuditConfig;
|
|
118
118
|
runId: string;
|
|
119
119
|
grounding?: GroundingBundle;
|
|
120
|
-
verifierProfile
|
|
120
|
+
verifierProfile: InternalModelRoleConfig;
|
|
121
121
|
};
|
|
122
122
|
export declare const copyFactsUnchanged: (provenance: CopyProvenance, { snapshot, config, runId, grounding, verifierProfile, }: CopyFactsUnchangedOptions) => boolean;
|
|
123
123
|
/**
|
|
@@ -133,7 +133,7 @@ export declare const validateHumanCopy: (args: {
|
|
|
133
133
|
configVersion: number;
|
|
134
134
|
grounding: GroundingBundle;
|
|
135
135
|
verifier: RecommendationVerifier;
|
|
136
|
-
verifierProfile
|
|
136
|
+
verifierProfile: InternalModelRoleConfig;
|
|
137
137
|
secrets?: readonly string[];
|
|
138
138
|
signal?: AbortSignal;
|
|
139
139
|
}) => Promise<Omit<CopyValidationResult, "provenance"> & {
|
|
@@ -153,6 +153,6 @@ export declare const assertCopyValidation: (args: {
|
|
|
153
153
|
snapshot: AeoSnapshot;
|
|
154
154
|
runId: string;
|
|
155
155
|
grounding: unknown;
|
|
156
|
-
verifierProfile
|
|
156
|
+
verifierProfile: InternalModelRoleConfig;
|
|
157
157
|
}) => CopyValidationReceipt;
|
|
158
158
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { ModelCallAccounting } from '../models/accounting';
|
|
3
|
-
import {
|
|
3
|
+
import type { InternalModelRoleConfig } from '../models/profiles';
|
|
4
4
|
import { type StructuredTransport } from '../models/structured';
|
|
5
5
|
import { type RecommendationInput, type RecommendationVerifier } from './copy-validation';
|
|
6
6
|
declare const verdictSchema: z.ZodObject<{
|
|
@@ -82,7 +82,7 @@ export declare const premiseVerifierCall: (chunk: readonly (RecommendationInput
|
|
|
82
82
|
unreviewedPremiseIndexes?: number[];
|
|
83
83
|
})[], profile: InternalModelRoleConfig, context?: VerifierCallContext) => {
|
|
84
84
|
role: {
|
|
85
|
-
model:
|
|
85
|
+
model: string;
|
|
86
86
|
providerOptions: {
|
|
87
87
|
openai?: {
|
|
88
88
|
reasoningEffort: "high";
|
|
@@ -142,7 +142,7 @@ export type PremiseVerdictCheck = {
|
|
|
142
142
|
export declare const checkPremiseVerdicts: (inputs: RecommendationInput[], output: z.infer<typeof verdictSchema>) => PremiseVerdictCheck;
|
|
143
143
|
export declare const createRecommendationVerifier: (args: {
|
|
144
144
|
accounting: ModelCallAccounting;
|
|
145
|
-
profile
|
|
145
|
+
profile: InternalModelRoleConfig;
|
|
146
146
|
transport?: StructuredTransport;
|
|
147
147
|
memory?: VerifierMemory;
|
|
148
148
|
}) => RecommendationVerifier;
|
|
@@ -153,9 +153,9 @@ export declare const createRecommendationVerifier: (args: {
|
|
|
153
153
|
* the caller can classify it.
|
|
154
154
|
*
|
|
155
155
|
* Fitting the input limit is not enough on its own for a reasoning model.
|
|
156
|
-
* Measured
|
|
157
|
-
* thinking past 40,960 output tokens without returning a verdict,
|
|
158
|
-
* billed for all of it. What bounds the call is how many judgements it
|
|
156
|
+
* Measured: packing every block that fit into one call left a reasoning
|
|
157
|
+
* model thinking past 40,960 output tokens without returning a verdict,
|
|
158
|
+
* having been billed for all of it. What bounds the call is how many judgements it
|
|
159
159
|
* contains, not how many bytes.
|
|
160
160
|
*/
|
|
161
161
|
export declare const verifierChunks: (recommendations: RecommendationInput[], profile: InternalModelRoleConfig, context?: VerifierCallContext) => RecommendationInput[][];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const toolId = "literally-aeo";
|
|
3
|
-
export declare const toolVersion = "0.
|
|
3
|
+
export declare const toolVersion = "0.2.0";
|
|
4
4
|
export declare const bundleSchemaVersion = 1;
|
|
5
5
|
export declare const traceSchemaVersion = 1;
|
|
6
6
|
export declare const canonicalization = "literally-aeo-canonical-json-v1";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { BundleEvent } from './contracts';
|
|
3
|
+
export declare const IsolationBoundary: {
|
|
4
|
+
readonly NATIVE: "native";
|
|
5
|
+
readonly CONTAINER: "container";
|
|
6
|
+
};
|
|
7
|
+
export type IsolationBoundary = (typeof IsolationBoundary)[keyof typeof IsolationBoundary];
|
|
8
|
+
export declare const writerIsolationSchema: z.ZodObject<{
|
|
9
|
+
boundary: z.ZodEnum<{
|
|
10
|
+
native: "native";
|
|
11
|
+
container: "container";
|
|
12
|
+
}>;
|
|
13
|
+
codexProbeSandbox: z.ZodString;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
export type WriterIsolation = z.infer<typeof writerIsolationSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* observedIsolation is this process's boundary: the hosted container runs
|
|
18
|
+
* every agent CLI through an isolated worker under its own UID
|
|
19
|
+
* (AEO_ISOLATED_ADAPTER); anything else runs on the operator's machine as
|
|
20
|
+
* the operator.
|
|
21
|
+
*/
|
|
22
|
+
export declare const observedIsolation: () => WriterIsolation;
|
|
23
|
+
export type RunIsolation = {
|
|
24
|
+
/** One per writer, in journal order; unknown for a writer from before
|
|
25
|
+
* isolation was recorded. */
|
|
26
|
+
writers: (IsolationBoundary | 'unknown')[];
|
|
27
|
+
/** The Codex stage sessions' sandbox modes, as each session recorded. */
|
|
28
|
+
stageSandboxes: string[];
|
|
29
|
+
/** The agent CLIs probed by a native writer: they ran as the operator's
|
|
30
|
+
* own account, with its account-level settings. */
|
|
31
|
+
agentCliAccounts: string[];
|
|
32
|
+
};
|
|
33
|
+
/** summarizeIsolation reads a run's isolation from its journal events. */
|
|
34
|
+
export declare const summarizeIsolation: (events: readonly BundleEvent[]) => RunIsolation;
|
|
35
|
+
/** isolationLimitations states what the recorded isolation does not
|
|
36
|
+
* cover, in plain sentences for runtime.json. */
|
|
37
|
+
export declare const isolationLimitations: (isolation: RunIsolation) => string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { RunOrigin, type BundleManifest } from './contracts';
|
|
3
|
+
import { type RunIsolation } from './isolation';
|
|
3
4
|
import { type CapturedAnswer } from './trace-coverage';
|
|
4
5
|
declare const runtimeSchema: z.ZodObject<{
|
|
5
6
|
tool: z.ZodString;
|
|
@@ -16,6 +17,7 @@ export type JournalProjection = {
|
|
|
16
17
|
origin: RunOrigin;
|
|
17
18
|
trace: BundleManifest['trace'];
|
|
18
19
|
writers: z.infer<typeof runtimeSchema>[];
|
|
20
|
+
isolation: RunIsolation;
|
|
19
21
|
};
|
|
20
22
|
/**
|
|
21
23
|
* projectJournal reads the run journal of a work directory, up to
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ModelCallAccounting } from '../models/accounting';
|
|
2
2
|
import type { ProbeTrace } from '../probes/probe-trace';
|
|
3
3
|
import { type EventType, type OperationKind, type RunOrigin } from './contracts';
|
|
4
|
+
import { type WriterIsolation } from './isolation';
|
|
4
5
|
export declare const runJournalDir: string;
|
|
5
6
|
/** Every kind of host-visible operation the recorder can observe. */
|
|
6
7
|
export declare const recordedOperationKinds: readonly ["codex_session", "host_model_call", "probe", "canary", "research_tool", "technical_check"];
|
|
@@ -51,6 +52,9 @@ export type OpenRecorderOptions = {
|
|
|
51
52
|
* run_resumed (spec §7.2): the export claims coverage only for kinds
|
|
52
53
|
* every writer observed. Defaults to the workflow's own. */
|
|
53
54
|
observes?: readonly OperationKind[];
|
|
55
|
+
/** The boundary this writer runs inside; observed from the process when
|
|
56
|
+
* the writer does not state it. */
|
|
57
|
+
isolation?: WriterIsolation;
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
60
|
* openRecorder opens the run journal of a work directory. A new journal
|
|
@@ -20,4 +20,13 @@ export type WriterLock = {
|
|
|
20
20
|
/** acquireWriterLock takes the run directory for this process, or throws
|
|
21
21
|
* WriterLockHeldError while a live writer holds it. */
|
|
22
22
|
export declare const acquireWriterLock: (dir: string, purpose: string) => Promise<WriterLock>;
|
|
23
|
+
/** live: the process runs on this host; abandoned: it is gone from this
|
|
24
|
+
* host; unknown: it belongs to another host, which this one cannot ask. */
|
|
25
|
+
export type WriterLockState = 'live' | 'abandoned' | 'unknown';
|
|
26
|
+
/** readWriterLock reports who holds a run directory without taking it:
|
|
27
|
+
* undefined when no writer does. */
|
|
28
|
+
export declare const readWriterLock: (dir: string) => Promise<{
|
|
29
|
+
owner: WriterLockOwner;
|
|
30
|
+
state: WriterLockState;
|
|
31
|
+
} | undefined>;
|
|
23
32
|
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type CodexBinarySource = 'dependency' | 'AEO_CODEX_BIN';
|
|
2
|
+
export type CodexBinary = {
|
|
3
|
+
/** What to spawn, and the arguments that come before Codex's own. */
|
|
4
|
+
command: string;
|
|
5
|
+
prefixArgs: readonly string[];
|
|
6
|
+
/** The file that was resolved, for doctor and the run record. */
|
|
7
|
+
path: string;
|
|
8
|
+
source: CodexBinarySource;
|
|
9
|
+
/** The installed dependency's version, from its manifest; null for a
|
|
10
|
+
* binary named from outside, whose version only running it can tell. */
|
|
11
|
+
version: string | null;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* resolveCodexBinary returns the Codex the stages run: AEO_CODEX_BIN when
|
|
15
|
+
* set, else this package's own dependency, started with the running Node so
|
|
16
|
+
* no file mode or PATH entry is involved.
|
|
17
|
+
*/
|
|
18
|
+
export declare const resolveCodexBinary: (env?: Record<string, string | undefined>) => CodexBinary;
|
|
19
|
+
/** codexBinaryAt names a Codex executable directly, for a host or a test
|
|
20
|
+
* that supplies its own, as AEO_CODEX_BIN does. */
|
|
21
|
+
export declare const codexBinaryAt: (command: string) => CodexBinary;
|
|
22
|
+
/** codexArgs puts the binary's own prefix in front of Codex's arguments. */
|
|
23
|
+
export declare const codexArgs: (binary: CodexBinary, args: readonly string[]) => string[];
|
|
24
|
+
/** The version the binary reports (`codex-cli 0.150.1`), or null when it
|
|
25
|
+
* cannot be started. */
|
|
26
|
+
export declare const codexBinaryVersion: (binary?: CodexBinary) => Promise<string | null>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const codexModel: {
|
|
1
|
+
import type { CodexStageModel } from '../models/profiles';
|
|
2
|
+
import { type CodexBinary } from './codex-binary';
|
|
3
|
+
/** The gateway the Codex stages reach their model through. */
|
|
4
|
+
export declare const codexGateway: {
|
|
6
5
|
readonly provider: "vercel";
|
|
7
6
|
readonly providerName: "Vercel AI Gateway";
|
|
8
7
|
readonly baseUrl: "https://ai-gateway.vercel.sh/v1";
|
|
@@ -10,15 +9,12 @@ export declare const codexModel: {
|
|
|
10
9
|
* secret the child process sees. */
|
|
11
10
|
readonly apiKeyEnv: "AI_GATEWAY_API_KEY";
|
|
12
11
|
readonly wireApi: "responses";
|
|
13
|
-
readonly model: "deepseek/deepseek-v4.1-flash";
|
|
14
|
-
readonly reasoningEffort: "high";
|
|
15
|
-
/** The model's context window as the gateway reports it (`/v1/models`,
|
|
16
|
-
* 2026-09-13). Codex has no metadata for gateway models and otherwise
|
|
17
|
-
* falls back to a default window, which decides when it compacts the
|
|
18
|
-
* session history; a qualify or review batch that read ten answers and
|
|
19
|
-
* their rows would be compacted for no reason. */
|
|
20
|
-
readonly contextWindow: 1000000;
|
|
21
12
|
};
|
|
13
|
+
/** Everything a stage's Codex configuration says about its model, in a
|
|
14
|
+
* fixed key order: part of every stage's inputs digest and session
|
|
15
|
+
* contract, so a resume reruns a batch only when the model changed. */
|
|
16
|
+
export type CodexStageConfig = typeof codexGateway & Pick<CodexStageModel, 'model' | 'reasoningEffort' | 'contextWindow'>;
|
|
17
|
+
export declare const codexStageConfig: (stageModel: CodexStageModel) => CodexStageConfig;
|
|
22
18
|
export declare const codexHomeDir: (workdir: string) => string;
|
|
23
19
|
/** The research tool server the author stage's home registers
|
|
24
20
|
* (specs/aeo-codex-author-spec.md §3.1): the command Codex starts over
|
|
@@ -33,15 +29,23 @@ export type ResearchServerConfig = {
|
|
|
33
29
|
* directory is the only writable root: a session must not touch /tmp (an
|
|
34
30
|
* empty /tmp/.git appeared during a run, 2026-09-13), unless the work
|
|
35
31
|
* directory itself lives there, as it does in the container. */
|
|
36
|
-
|
|
32
|
+
type CodexConfigOptions = {
|
|
33
|
+
stageModel: CodexStageModel;
|
|
34
|
+
research?: ResearchServerConfig;
|
|
35
|
+
};
|
|
36
|
+
export declare const codexConfigToml: (workdir: string, { stageModel, research }: CodexConfigOptions) => string;
|
|
37
37
|
/** Write the isolated home and return the environment a stage runs with:
|
|
38
38
|
* the path, the home, and the gateway key. Nothing else from the host. */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
type PrepareCodexHomeOptions = CodexConfigOptions & {
|
|
40
|
+
env?: Record<string, string | undefined>;
|
|
41
|
+
};
|
|
42
|
+
export declare const prepareCodexHome: (workdir: string, { stageModel, research, env }: PrepareCodexHomeOptions) => Promise<Record<string, string>>;
|
|
43
|
+
/** The version of the Codex binary the stages spawn, or null when it
|
|
44
|
+
cannot be started. The stages and the author run it from the host process
|
|
45
|
+
with an isolated home and the gateway key, so no agent credential is
|
|
46
|
+
involved. */
|
|
47
|
+
export declare const codexCliVersion: (binary?: CodexBinary) => Promise<string | null>;
|
|
45
48
|
/** The values the work directory's journals must never carry: the store
|
|
46
49
|
* URL and the gateway key, from wherever the host holds them. */
|
|
47
50
|
export declare const workflowSecrets: (env: NodeJS.ProcessEnv) => string[];
|
|
51
|
+
export {};
|
|
@@ -70,7 +70,7 @@ export declare const copyEditCall: (args: {
|
|
|
70
70
|
}) => {
|
|
71
71
|
trimmed: string[];
|
|
72
72
|
role: {
|
|
73
|
-
model:
|
|
73
|
+
model: string;
|
|
74
74
|
providerOptions: {
|
|
75
75
|
openai?: {
|
|
76
76
|
reasoningEffort: "high";
|
|
@@ -34,7 +34,7 @@ export declare const materializeCopyInputs: (args: {
|
|
|
34
34
|
notes?: readonly string[];
|
|
35
35
|
}) => Promise<string[]>;
|
|
36
36
|
/** The host's verdict on a draft: schema, facts, banlist, premises, and
|
|
37
|
-
* the premise verifier on the
|
|
37
|
+
* the premise verifier on the run's pinned role. `invalid_copy` is the only
|
|
38
38
|
* outcome that requires a verifier edit; operational failures retain the draft. */
|
|
39
39
|
export declare const validateCopyDraft: (args: {
|
|
40
40
|
draft: unknown;
|
|
@@ -46,9 +46,8 @@ export declare const validateCopyDraft: (args: {
|
|
|
46
46
|
secrets: readonly string[];
|
|
47
47
|
/** The premise verifier role the run pinned: the publication gate
|
|
48
48
|
* re-checks the receipt against exactly that role, so the draft must be
|
|
49
|
-
* verified by it.
|
|
50
|
-
|
|
51
|
-
verifierRole?: InternalModelRoleConfig;
|
|
49
|
+
* verified by it. */
|
|
50
|
+
verifierRole: InternalModelRoleConfig;
|
|
52
51
|
/** A rewrite pass keeps what the reviewer did not question: the logo
|
|
53
52
|
* and eyebrow of the draft they saw. */
|
|
54
53
|
previous?: AeoReportCopy | null;
|
|
@@ -9,10 +9,10 @@ import type { RunSource } from './run-source';
|
|
|
9
9
|
import type { ReportQuality } from './quality';
|
|
10
10
|
/** The snapshot's analyzer provenance: the Codex analyze stage under the
|
|
11
11
|
* workflow version, in a number space of its own (the retired in-process
|
|
12
|
-
* analyzer counted 1 to 8), and the
|
|
13
|
-
export declare const codexAnalyzer: {
|
|
12
|
+
* analyzer counted 1 to 8), and the run's stage model. */
|
|
13
|
+
export declare const codexAnalyzer: (model: string) => {
|
|
14
14
|
version: number;
|
|
15
|
-
model:
|
|
15
|
+
model: string;
|
|
16
16
|
};
|
|
17
17
|
export type FinishResult = {
|
|
18
18
|
/** True when the step reused what an earlier run assembled from the
|
|
@@ -41,6 +41,8 @@ export declare const finishRun: (args: {
|
|
|
41
41
|
/** Files excluded by degraded batches, recorded as partial failures. */
|
|
42
42
|
degraded: readonly string[];
|
|
43
43
|
write: boolean;
|
|
44
|
+
/** The model ID the Codex stages ran on, the analyzer's provenance. */
|
|
45
|
+
stageModelId: string;
|
|
44
46
|
/** Factual grounding over the run's manifest (the container job); a
|
|
45
47
|
* source that already carries a bundle needs none. */
|
|
46
48
|
ground?: GroundRun;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { type ModelCallAccounting } from '../models/accounting';
|
|
1
2
|
import type { InternalModelContext } from '../models/context';
|
|
2
|
-
import {
|
|
3
|
+
import type { InternalModelProfile } from '../models/profiles';
|
|
3
4
|
export declare const hostStepMaxUsd = 5;
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
5
|
+
/** A fresh memory budget for one host step. */
|
|
6
|
+
export declare const hostStepAccounting: () => ModelCallAccounting;
|
|
7
|
+
export declare const hostModels: (profile: InternalModelProfile) => InternalModelContext;
|
|
8
|
+
/** The profile a run pinned; a run without one cannot call a model. */
|
|
9
|
+
export declare const pinnedProfileOf: (profile: InternalModelProfile | undefined) => InternalModelProfile;
|
|
@@ -5,8 +5,9 @@ import { type WriterLock } from '../bundle/writer-lock';
|
|
|
5
5
|
import type { GroundingBundle } from '../grounding/schema';
|
|
6
6
|
import { type AeoReportCopy } from '../agents/copy-schema';
|
|
7
7
|
import { type AeoAuditConfig } from '../schema';
|
|
8
|
-
import type { InternalModelRoleConfig } from '../models/profiles';
|
|
8
|
+
import type { CodexStageModel, InternalModelRoleConfig } from '../models/profiles';
|
|
9
9
|
import type { InternalModelContext } from '../models/context';
|
|
10
|
+
import { type ModelCallAccounting } from '../models/accounting';
|
|
10
11
|
import { type AggregateInputs } from './aggregate';
|
|
11
12
|
import { type FinishResult, type GroundRun } from './finish';
|
|
12
13
|
import type { StageName } from './schemas';
|
|
@@ -125,6 +126,14 @@ export declare const prepareWorkdir: (source: RunSource, dir: string, options?:
|
|
|
125
126
|
writer: WriterLock;
|
|
126
127
|
recorder: ExecutionRecorder;
|
|
127
128
|
};
|
|
129
|
+
/** The Codex stages' model for a run whose pinned profile carries none
|
|
130
|
+
* (one pinned before profiles did). A profile's own always wins. */
|
|
131
|
+
stageModel?: CodexStageModel;
|
|
132
|
+
/** The run's ledger, unwrapped: every Codex session is reserved and
|
|
133
|
+
* settled on it beside the host's model calls (specs/aeo-claude-
|
|
134
|
+
* operator-spec.md §4.2). A session is a codex_session operation of
|
|
135
|
+
* its own, so it never goes through the recording wrapper. */
|
|
136
|
+
ledger?: ModelCallAccounting;
|
|
128
137
|
}) => Promise<WorkflowContext>;
|
|
129
138
|
/** The copy stage's inputs from the finished snapshot, and the host's
|
|
130
139
|
* verdict on what the writer produces. */
|