literally-aeo 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +73 -2
- package/dist/author-tools.js +3031 -0
- package/dist/cli.mjs +25536 -0
- package/dist/lib/access/schema.js +24 -0
- package/dist/lib/agents/author-schema.js +28 -0
- package/dist/lib/agents/author-validation.js +46 -0
- package/dist/lib/agents/copy-schema.js +30 -0
- package/dist/lib/agents/copy-validation.js +62 -0
- package/dist/lib/agents/copywriter-input.js +31 -0
- package/dist/lib/agents/credentials.js +6 -0
- package/dist/lib/agents/facts.js +31 -0
- package/dist/lib/agents/narrative-facts.js +12 -0
- package/dist/lib/agents/verifier.js +62 -0
- package/dist/lib/analysis/answer-text.js +19 -0
- package/dist/lib/analysis/competitor-classifier.js +6 -0
- package/dist/lib/analysis/domain-classifier.js +73 -0
- package/dist/lib/analysis/domain-labels.js +32 -0
- package/dist/lib/analysis/domain-match.js +12 -0
- package/dist/lib/analysis/name-forms.js +12 -0
- package/dist/lib/analysis/outreach.js +17 -0
- package/dist/lib/analysis/progress-schema.js +13 -0
- package/dist/lib/analysis/progress.js +39 -0
- package/dist/lib/analysis/qualified-competitors.js +7 -0
- package/dist/lib/analysis/retrieval.js +16 -0
- package/dist/lib/analysis/scoring.js +12 -0
- package/dist/lib/analysis/search-analyzer.js +17 -0
- package/dist/lib/analysis/sentiment.js +61 -0
- package/dist/lib/analysis/source-classifier.js +22 -0
- package/dist/lib/analysis/source-mix.js +16 -0
- package/dist/lib/analysis/verbatim.js +6 -0
- package/dist/lib/api/errors.js +10 -0
- package/dist/lib/author/examples.js +34 -0
- package/dist/lib/bundle/checks.js +16 -0
- package/dist/lib/bundle/contracts.js +66 -0
- package/dist/lib/bundle/export.js +69 -0
- package/dist/lib/bundle/journal.js +41 -0
- package/dist/lib/bundle/json.js +13 -0
- package/dist/lib/bundle/lineage.js +13 -0
- package/dist/lib/bundle/paths.js +6 -0
- package/dist/lib/bundle/project-journal.js +36 -0
- package/dist/lib/bundle/project.js +55 -0
- package/dist/lib/bundle/read.js +60 -0
- package/dist/lib/bundle/recorder.js +46 -0
- package/dist/lib/bundle/redact.js +35 -0
- package/dist/lib/bundle/trace-coverage.js +33 -0
- package/dist/lib/bundle/verify-integrity.js +41 -0
- package/dist/lib/bundle/verify-measurement.js +49 -0
- package/dist/lib/bundle/verify-report.js +62 -0
- package/dist/lib/bundle/verify.js +71 -0
- package/dist/lib/bundle/writer-lock.js +11 -0
- package/dist/lib/bundle/zip.js +13 -0
- package/dist/lib/capture-manifest.js +42 -0
- package/dist/lib/checks/crawler-access.js +16 -0
- package/dist/lib/checks/renderability.js +8 -0
- package/dist/lib/checks/run-checks.js +38 -0
- package/dist/lib/chunks/chunk-2GY42RIJ.js +33 -0
- package/dist/lib/chunks/chunk-2MGARWKY.js +138 -0
- package/dist/lib/chunks/chunk-2NJEWPCV.js +94 -0
- package/dist/lib/chunks/chunk-2PAO43CH.js +43 -0
- package/dist/lib/chunks/chunk-2QLAFBCG.js +8 -0
- package/dist/lib/chunks/chunk-2URYGUMH.js +27 -0
- package/dist/lib/chunks/chunk-3BFCI7LI.js +34 -0
- package/dist/lib/chunks/chunk-3BJWRD4O.js +0 -0
- package/dist/lib/chunks/chunk-3DG7GHFA.js +297 -0
- package/dist/lib/chunks/chunk-3EBWDHPK.js +133 -0
- package/dist/lib/chunks/chunk-3KQFLOC7.js +188 -0
- package/dist/lib/chunks/chunk-3UFZ2XPE.js +73 -0
- package/dist/lib/chunks/chunk-47IZBMP2.js +115 -0
- package/dist/lib/chunks/chunk-4E4NDGOZ.js +47 -0
- package/dist/lib/chunks/chunk-4QQJXCD2.js +113 -0
- package/dist/lib/chunks/chunk-55U7PRRM.js +26 -0
- package/dist/lib/chunks/chunk-565CYND6.js +93 -0
- package/dist/lib/chunks/chunk-56VOFZ7T.js +1486 -0
- package/dist/lib/chunks/chunk-5B3RNVZ6.js +193 -0
- package/dist/lib/chunks/chunk-5HT55QYX.js +53 -0
- package/dist/lib/chunks/chunk-5KKLUM7M.js +105 -0
- package/dist/lib/chunks/chunk-5SOTF3XD.js +56 -0
- package/dist/lib/chunks/chunk-5T3V6XJS.js +41 -0
- package/dist/lib/chunks/chunk-5VNYUCLL.js +352 -0
- package/dist/lib/chunks/chunk-5ZITQDVE.js +149 -0
- package/dist/lib/chunks/chunk-6AUEDSTU.js +52 -0
- package/dist/lib/chunks/chunk-6EH4N3EU.js +113 -0
- package/dist/lib/chunks/chunk-6EI4CVRW.js +33 -0
- package/dist/lib/chunks/chunk-6GKKALCI.js +538 -0
- package/dist/lib/chunks/chunk-6GSQKCKF.js +48 -0
- package/dist/lib/chunks/chunk-6KHQ7DXP.js +100 -0
- package/dist/lib/chunks/chunk-6RAKXYSR.js +226 -0
- package/dist/lib/chunks/chunk-72P6NOKD.js +190 -0
- package/dist/lib/chunks/chunk-74UNVGWB.js +0 -0
- package/dist/lib/chunks/chunk-7GXRDAUY.js +554 -0
- package/dist/lib/chunks/chunk-7MR6IJ7I.js +0 -0
- package/dist/lib/chunks/chunk-7O3M6I2X.js +123 -0
- package/dist/lib/chunks/chunk-7PLK6VGC.js +12 -0
- package/dist/lib/chunks/chunk-7QYZSP7Q.js +190 -0
- package/dist/lib/chunks/chunk-7YYDUHJG.js +113 -0
- package/dist/lib/chunks/chunk-7ZOJE6BH.js +73 -0
- package/dist/lib/chunks/chunk-AP5DLF36.js +150 -0
- package/dist/lib/chunks/chunk-AUB5THIS.js +341 -0
- package/dist/lib/chunks/chunk-B5L2KMTU.js +108 -0
- package/dist/lib/chunks/chunk-C6CMSW5J.js +13 -0
- package/dist/lib/chunks/chunk-CFFPOTP4.js +356 -0
- package/dist/lib/chunks/chunk-CJ5YD3CU.js +237 -0
- package/dist/lib/chunks/chunk-CKUTDJAB.js +213 -0
- package/dist/lib/chunks/chunk-CPT2GKKW.js +188 -0
- package/dist/lib/chunks/chunk-CQ62GN7P.js +30 -0
- package/dist/lib/chunks/chunk-CRVCWDH6.js +0 -0
- package/dist/lib/chunks/chunk-D2INDP5W.js +240 -0
- package/dist/lib/chunks/chunk-D2LPQO6Y.js +39 -0
- package/dist/lib/chunks/chunk-D5B4ZOW6.js +61 -0
- package/dist/lib/chunks/chunk-D7GEQVLL.js +115 -0
- package/dist/lib/chunks/chunk-DC6PN7QJ.js +193 -0
- package/dist/lib/chunks/chunk-DYJVVQHD.js +60 -0
- package/dist/lib/chunks/chunk-E3CDKC5B.js +45 -0
- package/dist/lib/chunks/chunk-E3OEE5XN.js +202 -0
- package/dist/lib/chunks/chunk-E4HADK7C.js +18 -0
- package/dist/lib/chunks/chunk-E6NQQU6V.js +111 -0
- package/dist/lib/chunks/chunk-EBXOHAMQ.js +131 -0
- package/dist/lib/chunks/chunk-EPQHVILQ.js +348 -0
- package/dist/lib/chunks/chunk-EV4DRS5M.js +61 -0
- package/dist/lib/chunks/chunk-EYKINDNK.js +29 -0
- package/dist/lib/chunks/chunk-EZD2C7QS.js +10 -0
- package/dist/lib/chunks/chunk-FBFZBLTY.js +752 -0
- package/dist/lib/chunks/chunk-FFOVLI3U.js +235 -0
- package/dist/lib/chunks/chunk-FKLNEB2P.js +529 -0
- package/dist/lib/chunks/chunk-FNDJUELJ.js +253 -0
- package/dist/lib/chunks/chunk-FPAN3VRW.js +350 -0
- package/dist/lib/chunks/chunk-FT5NSQYX.js +0 -0
- package/dist/lib/chunks/chunk-FWBVTM7F.js +11 -0
- package/dist/lib/chunks/chunk-GLXY73MK.js +165 -0
- package/dist/lib/chunks/chunk-GMGKKE5N.js +11 -0
- package/dist/lib/chunks/chunk-GMKF2FU4.js +104 -0
- package/dist/lib/chunks/chunk-GVC4LH2N.js +130 -0
- package/dist/lib/chunks/chunk-GVOF5ZUG.js +44 -0
- package/dist/lib/chunks/chunk-H2KDLDK6.js +13 -0
- package/dist/lib/chunks/chunk-H56DDRKE.js +85 -0
- package/dist/lib/chunks/chunk-HFOYASRQ.js +99 -0
- package/dist/lib/chunks/chunk-HOJXKHPX.js +34 -0
- package/dist/lib/chunks/chunk-HSZ3DM74.js +55 -0
- package/dist/lib/chunks/chunk-HXHFMFQU.js +29 -0
- package/dist/lib/chunks/chunk-I3TMFPK4.js +229 -0
- package/dist/lib/chunks/chunk-I7VNIW6Q.js +196 -0
- package/dist/lib/chunks/chunk-IAR6XGEW.js +184 -0
- package/dist/lib/chunks/chunk-IB6RROHE.js +204 -0
- package/dist/lib/chunks/chunk-IBOWGKN7.js +98 -0
- package/dist/lib/chunks/chunk-IEVAFDW7.js +513 -0
- package/dist/lib/chunks/chunk-IPNK7FYT.js +70 -0
- package/dist/lib/chunks/chunk-IRPKBDB7.js +13 -0
- package/dist/lib/chunks/chunk-ISN6MBNB.js +70 -0
- package/dist/lib/chunks/chunk-J46W3EMQ.js +237 -0
- package/dist/lib/chunks/chunk-JQ3P552S.js +0 -0
- package/dist/lib/chunks/chunk-JS3GBU3R.js +46 -0
- package/dist/lib/chunks/chunk-KHU5DRBE.js +343 -0
- package/dist/lib/chunks/chunk-KMRQSIZW.js +90 -0
- package/dist/lib/chunks/chunk-KRFHQQS7.js +323 -0
- package/dist/lib/chunks/chunk-KZR25REO.js +95 -0
- package/dist/lib/chunks/chunk-LIZX4N3H.js +110 -0
- package/dist/lib/chunks/chunk-LPND3VNQ.js +812 -0
- package/dist/lib/chunks/chunk-MD4AVTK2.js +257 -0
- package/dist/lib/chunks/chunk-MHAKYFDF.js +741 -0
- package/dist/lib/chunks/chunk-MIF5IYNR.js +139 -0
- package/dist/lib/chunks/chunk-MRRWMAPA.js +0 -0
- package/dist/lib/chunks/chunk-MX6Y4RD2.js +22 -0
- package/dist/lib/chunks/chunk-N2XIGMJ6.js +0 -0
- package/dist/lib/chunks/chunk-NANJGMEJ.js +108 -0
- package/dist/lib/chunks/chunk-NCLFZOZU.js +74 -0
- package/dist/lib/chunks/chunk-NH4QGBJV.js +61 -0
- package/dist/lib/chunks/chunk-NL2LDKXX.js +125 -0
- package/dist/lib/chunks/chunk-NVBMIPXR.js +259 -0
- package/dist/lib/chunks/chunk-NZFMOQHU.js +32 -0
- package/dist/lib/chunks/chunk-O2DKE2RO.js +77 -0
- package/dist/lib/chunks/chunk-O7M2OY3H.js +35 -0
- package/dist/lib/chunks/chunk-OBXAHX3L.js +46 -0
- package/dist/lib/chunks/chunk-OORO55OM.js +922 -0
- package/dist/lib/chunks/chunk-OQVIRYT5.js +147 -0
- package/dist/lib/chunks/chunk-OVUCZLH2.js +114 -0
- package/dist/lib/chunks/chunk-OX656HYK.js +46 -0
- package/dist/lib/chunks/chunk-OYKV5NDM.js +28 -0
- package/dist/lib/chunks/chunk-PCYNBDZ7.js +386 -0
- package/dist/lib/chunks/chunk-PDS5KWO3.js +256 -0
- package/dist/lib/chunks/chunk-PKB6JRJM.js +53 -0
- package/dist/lib/chunks/chunk-PO2J5OQ3.js +46 -0
- package/dist/lib/chunks/chunk-POUSX3T4.js +64 -0
- package/dist/lib/chunks/chunk-PYLJISDZ.js +206 -0
- package/dist/lib/chunks/chunk-Q2PWES4B.js +822 -0
- package/dist/lib/chunks/chunk-QBD24WTZ.js +37 -0
- package/dist/lib/chunks/chunk-QFVRCSJ2.js +54 -0
- package/dist/lib/chunks/chunk-QTXOW5XC.js +14 -0
- package/dist/lib/chunks/chunk-RMFT4KKK.js +281 -0
- package/dist/lib/chunks/chunk-S2AM76LT.js +90 -0
- package/dist/lib/chunks/chunk-S2SFHTJD.js +152 -0
- package/dist/lib/chunks/chunk-S42BCLHP.js +0 -0
- package/dist/lib/chunks/chunk-S7KJZIUR.js +241 -0
- package/dist/lib/chunks/chunk-SBAZBOPI.js +33 -0
- package/dist/lib/chunks/chunk-SBQ4TWGJ.js +33 -0
- package/dist/lib/chunks/chunk-SDWYZM64.js +371 -0
- package/dist/lib/chunks/chunk-SREGO3PU.js +25 -0
- package/dist/lib/chunks/chunk-SWJ7KQSL.js +318 -0
- package/dist/lib/chunks/chunk-SWS3K62X.js +93 -0
- package/dist/lib/chunks/chunk-SZ2UBZKG.js +13 -0
- package/dist/lib/chunks/chunk-TCOH3FGE.js +66 -0
- package/dist/lib/chunks/chunk-TGTM5ZFR.js +82 -0
- package/dist/lib/chunks/chunk-TNL2GWYR.js +345 -0
- package/dist/lib/chunks/chunk-UGCT46PC.js +20 -0
- package/dist/lib/chunks/chunk-ULRXHSJL.js +85 -0
- package/dist/lib/chunks/chunk-URUODEVG.js +0 -0
- package/dist/lib/chunks/chunk-V5B6UZ3E.js +47 -0
- package/dist/lib/chunks/chunk-VHDVKEWO.js +102 -0
- package/dist/lib/chunks/chunk-W46Y7KBR.js +29 -0
- package/dist/lib/chunks/chunk-W5XYW6ZM.js +133 -0
- package/dist/lib/chunks/chunk-WDSCJEDG.js +371 -0
- package/dist/lib/chunks/chunk-WE2WPNG2.js +104 -0
- package/dist/lib/chunks/chunk-WJUHRJVW.js +55 -0
- package/dist/lib/chunks/chunk-WKH6BJAZ.js +167 -0
- package/dist/lib/chunks/chunk-WUELMJ22.js +345 -0
- package/dist/lib/chunks/chunk-X2Y2ZNG3.js +776 -0
- package/dist/lib/chunks/chunk-X6E44EGV.js +261 -0
- package/dist/lib/chunks/chunk-XHWRSGX3.js +95 -0
- package/dist/lib/chunks/chunk-XI5H46DF.js +47 -0
- package/dist/lib/chunks/chunk-XJVXASDD.js +281 -0
- package/dist/lib/chunks/chunk-XL4JIQ5X.js +316 -0
- package/dist/lib/chunks/chunk-XNRSHATN.js +303 -0
- package/dist/lib/chunks/chunk-Y4OGZ3Q5.js +365 -0
- package/dist/lib/chunks/chunk-Y6D6IVOM.js +299 -0
- package/dist/lib/chunks/chunk-YHS5IEVZ.js +252 -0
- package/dist/lib/chunks/chunk-YIEAIIND.js +6 -0
- package/dist/lib/chunks/chunk-YR67JG2V.js +65 -0
- package/dist/lib/chunks/chunk-YWJPJI3W.js +51 -0
- package/dist/lib/chunks/chunk-Z4LMDKBU.js +369 -0
- package/dist/lib/chunks/chunk-Z7V63UZA.js +108 -0
- package/dist/lib/chunks/chunk-ZBDUE3A5.js +136 -0
- package/dist/lib/chunks/chunk-ZCOI3HE2.js +45 -0
- package/dist/lib/chunks/chunk-ZLOOC46D.js +142 -0
- package/dist/lib/chunks/chunk-ZSEY7AHQ.js +123 -0
- package/dist/lib/chunks/chunk-ZVAKKRRD.js +11 -0
- package/dist/lib/chunks/chunk-ZXGATMMH.js +101 -0
- package/dist/lib/chunks/chunk-ZXQPD4OC.js +202 -0
- package/dist/lib/chunks/chunk-ZYSPTOKK.js +302 -0
- package/dist/lib/cli/bundle-commands.js +371 -0
- package/dist/lib/cli/io.js +12 -0
- package/dist/lib/cli/run-commands.js +614 -0
- package/dist/lib/codex-workflow/aggregate.js +56 -0
- package/dist/lib/codex-workflow/author-search.js +48 -0
- package/dist/lib/codex-workflow/author-tools.js +63 -0
- package/dist/lib/codex-workflow/author.js +99 -0
- package/dist/lib/codex-workflow/batch-input.js +7 -0
- package/dist/lib/codex-workflow/batch-layout.js +8 -0
- package/dist/lib/codex-workflow/capture.js +62 -0
- package/dist/lib/codex-workflow/checkpoint.js +39 -0
- package/dist/lib/codex-workflow/checks.js +44 -0
- package/dist/lib/codex-workflow/codex-home.js +17 -0
- package/dist/lib/codex-workflow/copy-editor.js +66 -0
- package/dist/lib/codex-workflow/copy-recovery.js +32 -0
- package/dist/lib/codex-workflow/copy.js +66 -0
- package/dist/lib/codex-workflow/finish.js +84 -0
- package/dist/lib/codex-workflow/host-models.js +15 -0
- package/dist/lib/codex-workflow/loop.js +140 -0
- package/dist/lib/codex-workflow/pending.js +8 -0
- package/dist/lib/codex-workflow/prompts.js +8 -0
- package/dist/lib/codex-workflow/quality.js +31 -0
- package/dist/lib/codex-workflow/run-inputs.js +38 -0
- package/dist/lib/codex-workflow/run-source.js +55 -0
- package/dist/lib/codex-workflow/schemas.js +58 -0
- package/dist/lib/codex-workflow/session.js +40 -0
- package/dist/lib/codex-workflow/stage.js +98 -0
- package/dist/lib/codex-workflow/workdir.js +42 -0
- package/dist/lib/configs/literally-2026-q3.js +6 -0
- package/dist/lib/container/protocol.js +20 -0
- package/dist/lib/coverage-schema.js +6 -0
- package/dist/lib/engine/audit-file.js +46 -0
- package/dist/lib/engine/author.js +97 -0
- package/dist/lib/engine/budget.js +16 -0
- package/dist/lib/engine/env-file.js +8 -0
- package/dist/lib/engine/local-run.js +149 -0
- package/dist/lib/engine/package-root.js +8 -0
- package/dist/lib/engine/preflight.js +43 -0
- package/dist/lib/engine/rejudge.js +151 -0
- package/dist/lib/engine/resources.js +7 -0
- package/dist/lib/engine/run-configuration.js +15 -0
- package/dist/lib/engine/templates.js +33 -0
- package/dist/lib/grounding/controller.js +31 -0
- package/dist/lib/grounding/extract.js +38 -0
- package/dist/lib/grounding/fetch.js +23 -0
- package/dist/lib/grounding/file-store.js +17 -0
- package/dist/lib/grounding/grounding-runtime.js +62 -0
- package/dist/lib/grounding/model-usage.js +9 -0
- package/dist/lib/grounding/model.js +30 -0
- package/dist/lib/grounding/profile.js +15 -0
- package/dist/lib/grounding/recorded-tools.js +35 -0
- package/dist/lib/grounding/schema.js +42 -0
- package/dist/lib/grounding/session.js +30 -0
- package/dist/lib/grounding/tools.js +25 -0
- package/dist/lib/grounding/validation.js +28 -0
- package/dist/lib/grounding.js +13 -0
- package/dist/lib/harness/checkpoint.js +17 -0
- package/dist/lib/harness/contracts.js +30 -0
- package/dist/lib/harness/criteria.js +14 -0
- package/dist/lib/harness/policy.js +25 -0
- package/dist/lib/harness/report/artifacts.js +36 -0
- package/dist/lib/harness/report/capture-coverage.js +11 -0
- package/dist/lib/harness/store.js +46 -0
- package/dist/lib/lib/analysis-checkpoint.js +10 -0
- package/dist/lib/lib/canonical-json.js +8 -0
- package/dist/lib/lib/checkpoint.js +34 -0
- package/dist/lib/lib/env.js +14 -0
- package/dist/lib/lib/log.js +7 -0
- package/dist/lib/lib/paths.js +8 -0
- package/dist/lib/lib/progress-comparison.js +16 -0
- package/dist/lib/lib/report-presentation.js +13 -0
- package/dist/lib/lib/run-id.js +8 -0
- package/dist/lib/lib/type-guards.js +8 -0
- package/dist/lib/models/accounting.js +22 -0
- package/dist/lib/models/batching.js +18 -0
- package/dist/lib/models/budget-protection.js +6 -0
- package/dist/lib/models/context.js +0 -0
- package/dist/lib/models/coverage-rounds.js +6 -0
- package/dist/lib/models/errors.js +8 -0
- package/dist/lib/models/failure-diagnostics.js +6 -0
- package/dist/lib/models/profiles.js +30 -0
- package/dist/lib/models/served-model.js +6 -0
- package/dist/lib/models/structured-images.js +10 -0
- package/dist/lib/models/structured.js +25 -0
- package/dist/lib/models/wire-schema.js +6 -0
- package/dist/lib/pipeline.js +57 -0
- package/dist/lib/probes/agent-cli-parsers.js +23 -0
- package/dist/lib/probes/agent-clis.js +64 -0
- package/dist/lib/probes/chat-retrieval.js +17 -0
- package/dist/lib/probes/child-process.js +13 -0
- package/dist/lib/probes/dataforseo-locale.js +10 -0
- package/dist/lib/probes/dataforseo.js +10 -0
- package/dist/lib/probes/failure.js +26 -0
- package/dist/lib/probes/grounding-urls.js +19 -0
- package/dist/lib/probes/limits.js +12 -0
- package/dist/lib/probes/outcomes.js +13 -0
- package/dist/lib/probes/probe-trace.js +12 -0
- package/dist/lib/probes/probes.js +40 -0
- package/dist/lib/probes/web-tool-guard.js +18 -0
- package/dist/lib/report/contracts.js +34 -0
- package/dist/lib/report/core/answer-text.js +18 -0
- package/dist/lib/report/core/copy-schema.js +10 -0
- package/dist/lib/report/core/domain-match.js +11 -0
- package/dist/lib/report/core/grounding.js +12 -0
- package/dist/lib/report/core/normalize-domain.js +6 -0
- package/dist/lib/report/core/progress-comparison.js +15 -0
- package/dist/lib/report/core/progress-question-sets.js +16 -0
- package/dist/lib/report/core/progress-schema.js +12 -0
- package/dist/lib/report/core/progress-slot-key.js +6 -0
- package/dist/lib/report/core/qualified-competitors.js +6 -0
- package/dist/lib/report/core/report-presentation.js +12 -0
- package/dist/lib/report/core/retrieval.js +10 -0
- package/dist/lib/report/core/schema.js +70 -0
- package/dist/lib/report/core/source-classifier.js +21 -0
- package/dist/lib/report/core/surfaces.js +18 -0
- package/dist/lib/retrieval.js +11 -0
- package/dist/lib/runner.js +71 -0
- package/dist/lib/schema.js +110 -0
- package/dist/lib/section-result.js +34 -0
- package/dist/lib/stores/artifacts.js +35 -0
- package/dist/lib/stores/content-hash.js +10 -0
- package/dist/lib/stores/file-publication.js +20 -0
- package/dist/lib/stores/files.js +76 -0
- package/dist/lib/stores/fs-errors.js +6 -0
- package/dist/lib/stores/local-versions.js +40 -0
- package/dist/lib/stores/memory.js +312 -0
- package/dist/lib/stores/ports.js +6 -0
- package/dist/lib/stores/publication-history.js +10 -0
- package/dist/lib/stores/publication.js +50 -0
- package/dist/lib/stores/run-lifecycle.js +12 -0
- package/dist/lib/stores/versions.js +6 -0
- package/dist/lib/surfaces.js +19 -0
- package/dist/lib/viewer/page.js +6 -0
- package/dist/lib/viewer/server.js +71 -0
- package/dist/lib/workflow/callbacks.js +15 -0
- package/dist/lib/workflow/lineage.js +8 -0
- package/dist/lib/workflow/schema.js +52 -0
- package/dist/types/access/schema.d.ts +75 -0
- package/dist/types/agents/author-schema.d.ts +76 -0
- package/dist/types/agents/author-validation.d.ts +73 -0
- package/dist/types/agents/copy-schema.d.ts +345 -0
- package/dist/types/agents/copy-validation.d.ts +158 -0
- package/dist/types/agents/copywriter-input.d.ts +46 -0
- package/dist/types/agents/credentials.d.ts +10 -0
- package/dist/types/agents/facts.d.ts +69 -0
- package/dist/types/agents/narrative-facts.d.ts +8 -0
- package/dist/types/agents/verifier.d.ts +167 -0
- package/dist/types/analysis/answer-text.d.ts +1 -0
- package/dist/types/analysis/competitor-classifier.d.ts +1 -0
- package/dist/types/analysis/domain-classifier.d.ts +105 -0
- package/dist/types/analysis/domain-labels.d.ts +30 -0
- package/dist/types/analysis/domain-match.d.ts +1 -0
- package/dist/types/analysis/name-forms.d.ts +25 -0
- package/dist/types/analysis/outreach.d.ts +6 -0
- package/dist/types/analysis/progress-schema.d.ts +1 -0
- package/dist/types/analysis/progress.d.ts +15 -0
- package/dist/types/analysis/qualified-competitors.d.ts +1 -0
- package/dist/types/analysis/retrieval.d.ts +22 -0
- package/dist/types/analysis/scoring.d.ts +55 -0
- package/dist/types/analysis/search-analyzer.d.ts +23 -0
- package/dist/types/analysis/sentiment.d.ts +99 -0
- package/dist/types/analysis/source-classifier.d.ts +1 -0
- package/dist/types/analysis/source-mix.d.ts +6 -0
- package/dist/types/analysis/verbatim.d.ts +1 -0
- package/dist/types/api/errors.d.ts +30 -0
- package/dist/types/author/examples.d.ts +31 -0
- package/dist/types/bundle/checks.d.ts +45 -0
- package/dist/types/bundle/contracts.d.ts +354 -0
- package/dist/types/bundle/export.d.ts +46 -0
- package/dist/types/bundle/journal.d.ts +39 -0
- package/dist/types/bundle/json.d.ts +8 -0
- package/dist/types/bundle/lineage.d.ts +13 -0
- package/dist/types/bundle/paths.d.ts +2 -0
- package/dist/types/bundle/project-journal.d.ts +31 -0
- package/dist/types/bundle/project.d.ts +30 -0
- package/dist/types/bundle/read.d.ts +9 -0
- package/dist/types/bundle/recorder.d.ts +89 -0
- package/dist/types/bundle/redact.d.ts +17 -0
- package/dist/types/bundle/trace-coverage.d.ts +36 -0
- package/dist/types/bundle/verify-integrity.d.ts +11 -0
- package/dist/types/bundle/verify-measurement.d.ts +26 -0
- package/dist/types/bundle/verify-report.d.ts +16 -0
- package/dist/types/bundle/verify.d.ts +31 -0
- package/dist/types/bundle/writer-lock.d.ts +23 -0
- package/dist/types/bundle/zip.d.ts +24 -0
- package/dist/types/capture-manifest.d.ts +122 -0
- package/dist/types/checks/crawler-access.d.ts +25 -0
- package/dist/types/checks/renderability.d.ts +4 -0
- package/dist/types/checks/run-checks.d.ts +8 -0
- package/dist/types/cli/bundle-commands.d.ts +5 -0
- package/dist/types/cli/io.d.ts +10 -0
- package/dist/types/cli/literally-aeo.d.ts +1 -0
- package/dist/types/cli/run-commands.d.ts +14 -0
- package/dist/types/codex-workflow/aggregate.d.ts +76 -0
- package/dist/types/codex-workflow/author-search.d.ts +26 -0
- package/dist/types/codex-workflow/author-tools-server.d.ts +1 -0
- package/dist/types/codex-workflow/author-tools.d.ts +145 -0
- package/dist/types/codex-workflow/author.d.ts +101 -0
- package/dist/types/codex-workflow/batch-input.d.ts +12 -0
- package/dist/types/codex-workflow/batch-layout.d.ts +16 -0
- package/dist/types/codex-workflow/capture.d.ts +37 -0
- package/dist/types/codex-workflow/checkpoint.d.ts +18 -0
- package/dist/types/codex-workflow/checks.d.ts +53 -0
- package/dist/types/codex-workflow/codex-home.d.ts +47 -0
- package/dist/types/codex-workflow/copy-editor.d.ts +164 -0
- package/dist/types/codex-workflow/copy-recovery.d.ts +30 -0
- package/dist/types/codex-workflow/copy.d.ts +62 -0
- package/dist/types/codex-workflow/finish.d.ts +53 -0
- package/dist/types/codex-workflow/host-models.d.ts +5 -0
- package/dist/types/codex-workflow/loop.d.ts +177 -0
- package/dist/types/codex-workflow/pending.d.ts +6 -0
- package/dist/types/codex-workflow/prompts.d.ts +14 -0
- package/dist/types/codex-workflow/quality.d.ts +25 -0
- package/dist/types/codex-workflow/run-inputs.d.ts +951 -0
- package/dist/types/codex-workflow/run-source.d.ts +34 -0
- package/dist/types/codex-workflow/schemas.d.ts +493 -0
- package/dist/types/codex-workflow/session.d.ts +13 -0
- package/dist/types/codex-workflow/stage.d.ts +136 -0
- package/dist/types/codex-workflow/workdir.d.ts +40 -0
- package/dist/types/configs/literally-2026-q3.d.ts +2 -0
- package/dist/types/container/protocol.d.ts +72 -0
- package/dist/types/coverage-schema.d.ts +6 -0
- package/dist/types/engine/audit-file.d.ts +126 -0
- package/dist/types/engine/author.d.ts +52 -0
- package/dist/types/engine/budget.d.ts +68 -0
- package/dist/types/engine/env-file.d.ts +13 -0
- package/dist/types/engine/local-run.d.ts +62 -0
- package/dist/types/engine/package-root.d.ts +8 -0
- package/dist/types/engine/preflight.d.ts +27 -0
- package/dist/types/engine/rejudge.d.ts +14 -0
- package/dist/types/engine/resources.d.ts +8 -0
- package/dist/types/engine/run-configuration.d.ts +36 -0
- package/dist/types/engine/templates.d.ts +38 -0
- package/dist/types/grounding/controller.d.ts +110 -0
- package/dist/types/grounding/extract.d.ts +103 -0
- package/dist/types/grounding/fetch.d.ts +53 -0
- package/dist/types/grounding/file-store.d.ts +2 -0
- package/dist/types/grounding/grounding-runtime.d.ts +43 -0
- package/dist/types/grounding/model-usage.d.ts +13 -0
- package/dist/types/grounding/model.d.ts +51 -0
- package/dist/types/grounding/profile.d.ts +15 -0
- package/dist/types/grounding/recorded-tools.d.ts +12 -0
- package/dist/types/grounding/schema.d.ts +521 -0
- package/dist/types/grounding/session.d.ts +143 -0
- package/dist/types/grounding/tools.d.ts +135 -0
- package/dist/types/grounding/validation.d.ts +35 -0
- package/dist/types/grounding.d.ts +1 -0
- package/dist/types/harness/checkpoint.d.ts +29 -0
- package/dist/types/harness/contracts.d.ts +141 -0
- package/dist/types/harness/criteria.d.ts +34 -0
- package/dist/types/harness/policy.d.ts +9 -0
- package/dist/types/harness/report/artifacts.d.ts +287 -0
- package/dist/types/harness/report/capture-coverage.d.ts +11 -0
- package/dist/types/harness/store.d.ts +116 -0
- package/dist/types/lib/analysis-checkpoint.d.ts +20 -0
- package/dist/types/lib/canonical-json.d.ts +11 -0
- package/dist/types/lib/checkpoint.d.ts +33 -0
- package/dist/types/lib/env.d.ts +31 -0
- package/dist/types/lib/log.d.ts +11 -0
- package/dist/types/lib/paths.d.ts +2 -0
- package/dist/types/lib/progress-comparison.d.ts +1 -0
- package/dist/types/lib/report-presentation.d.ts +1 -0
- package/dist/types/lib/run-id.d.ts +2 -0
- package/dist/types/lib/type-guards.d.ts +9 -0
- package/dist/types/models/accounting.d.ts +147 -0
- package/dist/types/models/batching.d.ts +17 -0
- package/dist/types/models/budget-protection.d.ts +10 -0
- package/dist/types/models/context.d.ts +8 -0
- package/dist/types/models/coverage-rounds.d.ts +47 -0
- package/dist/types/models/errors.d.ts +12 -0
- package/dist/types/models/failure-diagnostics.d.ts +8 -0
- package/dist/types/models/profiles.d.ts +551 -0
- package/dist/types/models/served-model.d.ts +11 -0
- package/dist/types/models/structured-images.d.ts +9 -0
- package/dist/types/models/structured.d.ts +111 -0
- package/dist/types/models/wire-schema.d.ts +27 -0
- package/dist/types/pipeline.d.ts +117 -0
- package/dist/types/probes/agent-cli-parsers.d.ts +46 -0
- package/dist/types/probes/agent-clis.d.ts +132 -0
- package/dist/types/probes/chat-retrieval.d.ts +14 -0
- package/dist/types/probes/child-process.d.ts +28 -0
- package/dist/types/probes/dataforseo-locale.d.ts +8 -0
- package/dist/types/probes/dataforseo.d.ts +15 -0
- package/dist/types/probes/failure.d.ts +30 -0
- package/dist/types/probes/grounding-urls.d.ts +18 -0
- package/dist/types/probes/limits.d.ts +30 -0
- package/dist/types/probes/outcomes.d.ts +20 -0
- package/dist/types/probes/probe-trace.d.ts +51 -0
- package/dist/types/probes/probes.d.ts +47 -0
- package/dist/types/probes/web-tool-guard.d.ts +59 -0
- package/dist/types/report/contracts.d.ts +973 -0
- package/dist/types/report/core/answer-text.d.ts +24 -0
- package/dist/types/report/core/copy-schema.d.ts +47 -0
- package/dist/types/report/core/domain-match.d.ts +9 -0
- package/dist/types/report/core/grounding.d.ts +4 -0
- package/dist/types/report/core/normalize-domain.d.ts +2 -0
- package/dist/types/report/core/progress-comparison.d.ts +52 -0
- package/dist/types/report/core/progress-question-sets.d.ts +16 -0
- package/dist/types/report/core/progress-schema.d.ts +101 -0
- package/dist/types/report/core/progress-slot-key.d.ts +9 -0
- package/dist/types/report/core/qualified-competitors.d.ts +6 -0
- package/dist/types/report/core/report-presentation.d.ts +10 -0
- package/dist/types/report/core/retrieval.d.ts +6 -0
- package/dist/types/report/core/schema.d.ts +745 -0
- package/dist/types/report/core/source-classifier.d.ts +21 -0
- package/dist/types/report/core/surfaces.d.ts +11 -0
- package/dist/types/retrieval.d.ts +1 -0
- package/dist/types/runner.d.ts +96 -0
- package/dist/types/schema.d.ts +858 -0
- package/dist/types/section-result.d.ts +4 -0
- package/dist/types/stores/artifacts.d.ts +2 -0
- package/dist/types/stores/content-hash.d.ts +2 -0
- package/dist/types/stores/file-publication.d.ts +31 -0
- package/dist/types/stores/files.d.ts +87 -0
- package/dist/types/stores/fs-errors.d.ts +5 -0
- package/dist/types/stores/local-versions.d.ts +54 -0
- package/dist/types/stores/memory.d.ts +76 -0
- package/dist/types/stores/ports.d.ts +150 -0
- package/dist/types/stores/publication-history.d.ts +27 -0
- package/dist/types/stores/publication.d.ts +53 -0
- package/dist/types/stores/run-lifecycle.d.ts +7 -0
- package/dist/types/stores/versions.d.ts +71 -0
- package/dist/types/surfaces.d.ts +1 -0
- package/dist/types/viewer/page.d.ts +2 -0
- package/dist/types/viewer/server.d.ts +14 -0
- package/dist/types/workflow/callbacks.d.ts +22 -0
- package/dist/types/workflow/lineage.d.ts +20 -0
- package/dist/types/workflow/schema.d.ts +1572 -0
- package/package.json +95 -3
- package/resources/author/COPY_RULES.md +95 -0
- package/resources/author/RULES.md +104 -0
- package/resources/author/banlist.json +38 -0
- package/resources/editorial/COMPANY.md +11 -0
- package/resources/editorial/positioning.md +8 -0
- package/resources/editorial/services.md +4 -0
- package/src/access/schema.ts +96 -0
- package/src/agents/author-schema.ts +49 -0
- package/src/agents/author-validation.ts +409 -0
- package/src/agents/copy-schema.ts +214 -0
- package/src/agents/copy-validation.ts +1170 -0
- package/src/agents/copywriter-input.ts +90 -0
- package/src/agents/credentials.ts +60 -0
- package/src/agents/facts.ts +343 -0
- package/src/agents/narrative-facts.ts +174 -0
- package/src/agents/verifier.ts +603 -0
- package/src/analysis/answer-text.ts +1 -0
- package/src/analysis/competitor-classifier.ts +15 -0
- package/src/analysis/domain-classifier.ts +804 -0
- package/src/analysis/domain-labels.ts +67 -0
- package/src/analysis/domain-match.ts +1 -0
- package/src/analysis/name-forms.ts +59 -0
- package/src/analysis/outreach.ts +107 -0
- package/src/analysis/progress-schema.ts +1 -0
- package/src/analysis/progress.ts +346 -0
- package/src/analysis/qualified-competitors.ts +1 -0
- package/src/analysis/retrieval.ts +105 -0
- package/src/analysis/scoring.ts +167 -0
- package/src/analysis/search-analyzer.ts +83 -0
- package/src/analysis/sentiment.ts +558 -0
- package/src/analysis/source-classifier.ts +1 -0
- package/src/analysis/source-mix.ts +56 -0
- package/src/analysis/verbatim.ts +107 -0
- package/src/api/errors.ts +50 -0
- package/src/author/COPY_RULES.md +95 -0
- package/src/author/RULES.md +104 -0
- package/src/author/banlist.json +38 -0
- package/src/author/examples.ts +79 -0
- package/src/bundle/checks.ts +146 -0
- package/src/bundle/contracts.ts +289 -0
- package/src/bundle/export.ts +448 -0
- package/src/bundle/journal.ts +270 -0
- package/src/bundle/json.ts +157 -0
- package/src/bundle/lineage.ts +45 -0
- package/src/bundle/paths.ts +36 -0
- package/src/bundle/project-journal.ts +179 -0
- package/src/bundle/project.ts +434 -0
- package/src/bundle/read.ts +154 -0
- package/src/bundle/recorder.ts +497 -0
- package/src/bundle/redact.ts +134 -0
- package/src/bundle/trace-coverage.ts +168 -0
- package/src/bundle/verify-integrity.ts +322 -0
- package/src/bundle/verify-measurement.ts +384 -0
- package/src/bundle/verify-report.ts +260 -0
- package/src/bundle/verify.ts +400 -0
- package/src/bundle/writer-lock.ts +133 -0
- package/src/bundle/zip.ts +281 -0
- package/src/capture-manifest.ts +348 -0
- package/src/checks/crawler-access.ts +373 -0
- package/src/checks/renderability.ts +164 -0
- package/src/checks/run-checks.ts +74 -0
- package/src/cli/bundle-commands.ts +249 -0
- package/src/cli/io.ts +63 -0
- package/src/cli/literally-aeo.ts +121 -0
- package/src/cli/run-commands.ts +535 -0
- package/src/codex-workflow/aggregate.ts +336 -0
- package/src/codex-workflow/author-search.ts +76 -0
- package/src/codex-workflow/author-tools-server.ts +208 -0
- package/src/codex-workflow/author-tools.ts +1202 -0
- package/src/codex-workflow/author.ts +512 -0
- package/src/codex-workflow/batch-input.ts +145 -0
- package/src/codex-workflow/batch-layout.ts +47 -0
- package/src/codex-workflow/capture.ts +255 -0
- package/src/codex-workflow/checkpoint.ts +127 -0
- package/src/codex-workflow/checks.ts +510 -0
- package/src/codex-workflow/codex-home.ts +187 -0
- package/src/codex-workflow/copy-editor.ts +322 -0
- package/src/codex-workflow/copy-recovery.ts +134 -0
- package/src/codex-workflow/copy.ts +195 -0
- package/src/codex-workflow/finish.ts +433 -0
- package/src/codex-workflow/host-models.ts +35 -0
- package/src/codex-workflow/loop.ts +1159 -0
- package/src/codex-workflow/pending.ts +24 -0
- package/src/codex-workflow/prompts.ts +153 -0
- package/src/codex-workflow/quality.ts +97 -0
- package/src/codex-workflow/run-inputs.ts +117 -0
- package/src/codex-workflow/run-source.ts +149 -0
- package/src/codex-workflow/schemas.ts +222 -0
- package/src/codex-workflow/session.ts +70 -0
- package/src/codex-workflow/stage.ts +2344 -0
- package/src/codex-workflow/workdir.ts +242 -0
- package/src/configs/literally-2026-q3.ts +199 -0
- package/src/container/protocol.ts +152 -0
- package/src/coverage-schema.ts +7 -0
- package/src/engine/audit-file.ts +254 -0
- package/src/engine/author.ts +279 -0
- package/src/engine/budget.ts +164 -0
- package/src/engine/editorial/COMPANY.md +11 -0
- package/src/engine/editorial/positioning.md +8 -0
- package/src/engine/editorial/services.md +4 -0
- package/src/engine/env-file.ts +87 -0
- package/src/engine/local-run.ts +323 -0
- package/src/engine/package-root.ts +47 -0
- package/src/engine/preflight.ts +156 -0
- package/src/engine/rejudge.ts +118 -0
- package/src/engine/resources.ts +45 -0
- package/src/engine/run-configuration.ts +70 -0
- package/src/engine/templates.ts +66 -0
- package/src/grounding/controller.ts +1211 -0
- package/src/grounding/extract.ts +830 -0
- package/src/grounding/fetch.ts +448 -0
- package/src/grounding/file-store.ts +131 -0
- package/src/grounding/grounding-runtime.ts +318 -0
- package/src/grounding/model-usage.ts +48 -0
- package/src/grounding/model.ts +508 -0
- package/src/grounding/profile.ts +63 -0
- package/src/grounding/recorded-tools.ts +40 -0
- package/src/grounding/schema.ts +262 -0
- package/src/grounding/session.ts +681 -0
- package/src/grounding/tools.ts +500 -0
- package/src/grounding/validation.ts +435 -0
- package/src/grounding.ts +1 -0
- package/src/harness/checkpoint.ts +53 -0
- package/src/harness/contracts.ts +169 -0
- package/src/harness/criteria.ts +166 -0
- package/src/harness/policy.ts +28 -0
- package/src/harness/report/artifacts.ts +130 -0
- package/src/harness/report/capture-coverage.ts +40 -0
- package/src/harness/store.ts +167 -0
- package/src/lib/analysis-checkpoint.ts +94 -0
- package/src/lib/canonical-json.ts +90 -0
- package/src/lib/checkpoint.ts +140 -0
- package/src/lib/env.ts +80 -0
- package/src/lib/log.ts +192 -0
- package/src/lib/paths.ts +14 -0
- package/src/lib/progress-comparison.ts +1 -0
- package/src/lib/report-presentation.ts +1 -0
- package/src/lib/run-id.ts +39 -0
- package/src/lib/type-guards.ts +14 -0
- package/src/models/accounting.ts +656 -0
- package/src/models/batching.ts +68 -0
- package/src/models/budget-protection.ts +68 -0
- package/src/models/context.ts +9 -0
- package/src/models/coverage-rounds.ts +125 -0
- package/src/models/errors.ts +39 -0
- package/src/models/failure-diagnostics.ts +157 -0
- package/src/models/profiles.ts +511 -0
- package/src/models/served-model.ts +20 -0
- package/src/models/structured-images.ts +95 -0
- package/src/models/structured.ts +634 -0
- package/src/models/wire-schema.ts +453 -0
- package/src/pipeline.ts +496 -0
- package/src/probes/agent-cli-parsers.ts +835 -0
- package/src/probes/agent-clis.ts +1482 -0
- package/src/probes/chat-retrieval.ts +238 -0
- package/src/probes/child-process.ts +280 -0
- package/src/probes/dataforseo-locale.ts +71 -0
- package/src/probes/dataforseo.ts +286 -0
- package/src/probes/failure.ts +182 -0
- package/src/probes/grounding-urls.ts +182 -0
- package/src/probes/limits.ts +181 -0
- package/src/probes/outcomes.ts +40 -0
- package/src/probes/probe-trace.ts +109 -0
- package/src/probes/probes.ts +789 -0
- package/src/probes/web-tool-guard.ts +195 -0
- package/src/report/contracts.ts +161 -0
- package/src/report/core/answer-text.ts +144 -0
- package/src/report/core/copy-schema.ts +75 -0
- package/src/report/core/domain-match.ts +52 -0
- package/src/report/core/grounding.ts +32 -0
- package/src/report/core/normalize-domain.ts +16 -0
- package/src/report/core/progress-comparison.ts +362 -0
- package/src/report/core/progress-question-sets.ts +93 -0
- package/src/report/core/progress-schema.ts +150 -0
- package/src/report/core/progress-slot-key.ts +20 -0
- package/src/report/core/qualified-competitors.ts +15 -0
- package/src/report/core/report-presentation.ts +112 -0
- package/src/report/core/retrieval.ts +49 -0
- package/src/report/core/schema.ts +489 -0
- package/src/report/core/source-classifier.ts +239 -0
- package/src/report/core/surfaces.ts +64 -0
- package/src/retrieval.ts +1 -0
- package/src/runner.ts +461 -0
- package/src/schema.ts +181 -0
- package/src/section-result.ts +315 -0
- package/src/stores/artifacts.ts +74 -0
- package/src/stores/content-hash.ts +8 -0
- package/src/stores/file-publication.ts +194 -0
- package/src/stores/files.ts +1069 -0
- package/src/stores/fs-errors.ts +12 -0
- package/src/stores/local-versions.ts +412 -0
- package/src/stores/memory.ts +432 -0
- package/src/stores/ports.ts +231 -0
- package/src/stores/publication-history.ts +48 -0
- package/src/stores/publication.ts +221 -0
- package/src/stores/run-lifecycle.ts +72 -0
- package/src/stores/versions.ts +113 -0
- package/src/surfaces.ts +1 -0
- package/src/viewer/page.ts +208 -0
- package/src/viewer/server.ts +215 -0
- package/src/workflow/callbacks.ts +201 -0
- package/src/workflow/lineage.ts +36 -0
- package/src/workflow/schema.ts +256 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ExecutionRecorder } from '../bundle/recorder';
|
|
2
|
+
import type { GroundingBundle } from '../grounding/schema';
|
|
3
|
+
import { type CaptureArtifact, type TechnicalChecksArtifact } from '../harness/report/artifacts';
|
|
4
|
+
import type { RunPlan } from '../runner';
|
|
5
|
+
import type { AeoAuditConfig, AeoSurface, RunRequest } from '../schema';
|
|
6
|
+
import type { CapturedUnitRecord, Stores } from '../stores/ports';
|
|
7
|
+
export type RunSource = {
|
|
8
|
+
/** What names the work directory: the execution in the job, the report
|
|
9
|
+
* key in the CLI. */
|
|
10
|
+
id: string;
|
|
11
|
+
reportKey: string;
|
|
12
|
+
config: AeoAuditConfig;
|
|
13
|
+
request: RunRequest;
|
|
14
|
+
plan: RunPlan;
|
|
15
|
+
surfaces: readonly AeoSurface[];
|
|
16
|
+
capture: CaptureArtifact;
|
|
17
|
+
captured: readonly CapturedUnitRecord[];
|
|
18
|
+
/** The run's technical checks and grounding, when it has them; the
|
|
19
|
+
* finish step reuses them rather than fetching the site again. */
|
|
20
|
+
technical: TechnicalChecksArtifact | null;
|
|
21
|
+
grounding: GroundingBundle | null;
|
|
22
|
+
/** The report's stores: labels cache, analysis cache, the report write. */
|
|
23
|
+
stores: Stores;
|
|
24
|
+
close(): Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
/** Technical capture belongs to this local run, like its banked answers.
|
|
27
|
+
* Re-fetching on resume changes timestamps and invalidates finish and copy. */
|
|
28
|
+
export declare const localTechnicalChecks: (config: AeoAuditConfig, dir?: string, recorder?: ExecutionRecorder) => Promise<TechnicalChecksArtifact>;
|
|
29
|
+
/** TECHNICAL.json, the one shape every runner writes: the technical
|
|
30
|
+
* artifact keyed by the config it was captured for, so a work directory
|
|
31
|
+
* reused for another configuration never hands back stale checks. */
|
|
32
|
+
export declare const readTechnicalChecks: (dir: string, configDigest: string) => Promise<TechnicalChecksArtifact | null>;
|
|
33
|
+
export declare const writeTechnicalChecks: (dir: string, configDigest: string, artifact: TechnicalChecksArtifact) => Promise<void>;
|
|
34
|
+
export declare const persistedRunId: (dir: string) => Promise<string>;
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const analyzeRowSchema: z.ZodObject<{
|
|
3
|
+
file: z.ZodString;
|
|
4
|
+
prospectMentioned: z.ZodBoolean;
|
|
5
|
+
prospectPosition: z.ZodEnum<{
|
|
6
|
+
primary: "primary";
|
|
7
|
+
secondary: "secondary";
|
|
8
|
+
listed: "listed";
|
|
9
|
+
absent: "absent";
|
|
10
|
+
}>;
|
|
11
|
+
prospectSentiment: z.ZodEnum<{
|
|
12
|
+
positive: "positive";
|
|
13
|
+
neutral: "neutral";
|
|
14
|
+
negative: "negative";
|
|
15
|
+
}>;
|
|
16
|
+
contextSnippet: z.ZodString;
|
|
17
|
+
competitorMentions: z.ZodArray<z.ZodObject<{
|
|
18
|
+
domain: z.ZodString;
|
|
19
|
+
mentioned: z.ZodBoolean;
|
|
20
|
+
position: z.ZodEnum<{
|
|
21
|
+
primary: "primary";
|
|
22
|
+
secondary: "secondary";
|
|
23
|
+
listed: "listed";
|
|
24
|
+
absent: "absent";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
mentionedBrands: z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strict>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export declare const analyzeOutputSchema: z.ZodObject<{
|
|
33
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
34
|
+
file: z.ZodString;
|
|
35
|
+
prospectMentioned: z.ZodBoolean;
|
|
36
|
+
prospectPosition: z.ZodEnum<{
|
|
37
|
+
primary: "primary";
|
|
38
|
+
secondary: "secondary";
|
|
39
|
+
listed: "listed";
|
|
40
|
+
absent: "absent";
|
|
41
|
+
}>;
|
|
42
|
+
prospectSentiment: z.ZodEnum<{
|
|
43
|
+
positive: "positive";
|
|
44
|
+
neutral: "neutral";
|
|
45
|
+
negative: "negative";
|
|
46
|
+
}>;
|
|
47
|
+
contextSnippet: z.ZodString;
|
|
48
|
+
competitorMentions: z.ZodArray<z.ZodObject<{
|
|
49
|
+
domain: z.ZodString;
|
|
50
|
+
mentioned: z.ZodBoolean;
|
|
51
|
+
position: z.ZodEnum<{
|
|
52
|
+
primary: "primary";
|
|
53
|
+
secondary: "secondary";
|
|
54
|
+
listed: "listed";
|
|
55
|
+
absent: "absent";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
mentionedBrands: z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type AnalyzeOutput = z.infer<typeof analyzeOutputSchema>;
|
|
65
|
+
/** A change a later stage makes to an earlier stage's output, applied by
|
|
66
|
+
* the host to that OUT file and kept as the audit trail. */
|
|
67
|
+
export declare const correctionSchema: z.ZodObject<{
|
|
68
|
+
stage: z.ZodEnum<{
|
|
69
|
+
analyze: "analyze";
|
|
70
|
+
qualify: "qualify";
|
|
71
|
+
}>;
|
|
72
|
+
file: z.ZodString;
|
|
73
|
+
field: z.ZodString;
|
|
74
|
+
from: z.ZodString;
|
|
75
|
+
to: z.ZodString;
|
|
76
|
+
reason: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export type Correction = z.infer<typeof correctionSchema>;
|
|
79
|
+
export declare const qualificationQuoteMaxLength = 400;
|
|
80
|
+
export declare const qualifyRowSchema: z.ZodObject<{
|
|
81
|
+
file: z.ZodString;
|
|
82
|
+
qualifiedCompetitors: z.ZodArray<z.ZodObject<{
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
85
|
+
quote: z.ZodString;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
export declare const qualifyOutputSchema: z.ZodObject<{
|
|
89
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
90
|
+
file: z.ZodString;
|
|
91
|
+
qualifiedCompetitors: z.ZodArray<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
94
|
+
quote: z.ZodString;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
corrections: z.ZodArray<z.ZodObject<{
|
|
98
|
+
stage: z.ZodEnum<{
|
|
99
|
+
analyze: "analyze";
|
|
100
|
+
qualify: "qualify";
|
|
101
|
+
}>;
|
|
102
|
+
file: z.ZodString;
|
|
103
|
+
field: z.ZodString;
|
|
104
|
+
from: z.ZodString;
|
|
105
|
+
to: z.ZodString;
|
|
106
|
+
reason: z.ZodString;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
export type QualifyOutput = z.infer<typeof qualifyOutputSchema>;
|
|
110
|
+
/** A problem this pass saw and did not fix: the next pass starts here. */
|
|
111
|
+
export declare const unresolvedProblemSchema: z.ZodObject<{
|
|
112
|
+
criterionId: z.ZodString;
|
|
113
|
+
stage: z.ZodEnum<{
|
|
114
|
+
host: "host";
|
|
115
|
+
analyze: "analyze";
|
|
116
|
+
qualify: "qualify";
|
|
117
|
+
write: "write";
|
|
118
|
+
}>;
|
|
119
|
+
file: z.ZodNullable<z.ZodString>;
|
|
120
|
+
problem: z.ZodString;
|
|
121
|
+
evidence: z.ZodString;
|
|
122
|
+
whyNotFixed: z.ZodString;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
export declare const reviewOutputSchema: z.ZodObject<{
|
|
125
|
+
verdict: z.ZodEnum<{
|
|
126
|
+
accepted: "accepted";
|
|
127
|
+
needs_another_pass: "needs_another_pass";
|
|
128
|
+
}>;
|
|
129
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
130
|
+
criterionId: z.ZodString;
|
|
131
|
+
outcome: z.ZodEnum<{
|
|
132
|
+
pass: "pass";
|
|
133
|
+
fail: "fail";
|
|
134
|
+
}>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
corrections: z.ZodArray<z.ZodObject<{
|
|
137
|
+
stage: z.ZodEnum<{
|
|
138
|
+
analyze: "analyze";
|
|
139
|
+
qualify: "qualify";
|
|
140
|
+
}>;
|
|
141
|
+
file: z.ZodString;
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
from: z.ZodString;
|
|
144
|
+
to: z.ZodString;
|
|
145
|
+
reason: z.ZodString;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
unresolved: z.ZodArray<z.ZodObject<{
|
|
148
|
+
criterionId: z.ZodString;
|
|
149
|
+
stage: z.ZodEnum<{
|
|
150
|
+
host: "host";
|
|
151
|
+
analyze: "analyze";
|
|
152
|
+
qualify: "qualify";
|
|
153
|
+
write: "write";
|
|
154
|
+
}>;
|
|
155
|
+
file: z.ZodNullable<z.ZodString>;
|
|
156
|
+
problem: z.ZodString;
|
|
157
|
+
evidence: z.ZodString;
|
|
158
|
+
whyNotFixed: z.ZodString;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
export type ReviewOutput = z.infer<typeof reviewOutputSchema>;
|
|
162
|
+
/** The copy draft the write stage produces: the pinned final draft
|
|
163
|
+
* contract (hero, one narrative intro, empty section subtitles,
|
|
164
|
+
* confidence), validated by the host's copy validation afterwards. */
|
|
165
|
+
export declare const writeOutputSchema: z.ZodObject<{
|
|
166
|
+
intro: z.ZodArray<z.ZodObject<{
|
|
167
|
+
kind: z.ZodLiteral<"narrative">;
|
|
168
|
+
text: z.ZodString;
|
|
169
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
170
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
171
|
+
proposition: z.ZodString;
|
|
172
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
sections: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
176
|
+
subtitle: z.ZodArray<z.ZodObject<{}, z.core.$strict>>;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
confidence: z.ZodNumber;
|
|
179
|
+
hero: z.ZodObject<{
|
|
180
|
+
title: z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"narrative">;
|
|
182
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
183
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
184
|
+
proposition: z.ZodString;
|
|
185
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
187
|
+
text: z.ZodString;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
subtitle: z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"narrative">;
|
|
191
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
192
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
193
|
+
proposition: z.ZodString;
|
|
194
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
text: z.ZodString;
|
|
197
|
+
}, z.core.$strict>;
|
|
198
|
+
}, z.core.$strict>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export type WriteOutput = z.infer<typeof writeOutputSchema>;
|
|
201
|
+
/** The author stage's output (specs/aeo-codex-author-spec.md §3): the
|
|
202
|
+
* config draft and the notes, written by the `submit` tool. */
|
|
203
|
+
export declare const authorStageOutputSchema: z.ZodObject<{
|
|
204
|
+
config: z.ZodObject<{
|
|
205
|
+
questionSetName: z.ZodOptional<z.ZodString>;
|
|
206
|
+
geography: z.ZodDefault<z.ZodString>;
|
|
207
|
+
language: z.ZodDefault<z.ZodString>;
|
|
208
|
+
competitors: z.ZodArray<z.ZodObject<{
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
domain: z.ZodString;
|
|
211
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
surfaces: z.ZodPrefault<z.ZodObject<{
|
|
214
|
+
codingAgents: z.ZodEnum<{
|
|
215
|
+
measure: "measure";
|
|
216
|
+
skip: "skip";
|
|
217
|
+
}>;
|
|
218
|
+
because: z.ZodString;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
brand: z.ZodObject<{
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
domain: z.ZodString;
|
|
223
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
agentProbes: z.ZodPrefault<z.ZodObject<{
|
|
226
|
+
runsPerPrompt: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
maxPromptsPerSection: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
moneyPages: z.ZodArray<z.ZodString>;
|
|
230
|
+
productBrief: z.ZodString;
|
|
231
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
232
|
+
prompts: z.ZodArray<z.ZodObject<{
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
text: z.ZodString;
|
|
235
|
+
category: z.ZodEnum<{
|
|
236
|
+
product_recommendation: "product_recommendation";
|
|
237
|
+
industry_expert: "industry_expert";
|
|
238
|
+
comparison: "comparison";
|
|
239
|
+
problem_solving: "problem_solving";
|
|
240
|
+
general_knowledge: "general_knowledge";
|
|
241
|
+
}>;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
competitors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
domain: z.ZodString;
|
|
246
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
247
|
+
}, z.core.$strip>>>;
|
|
248
|
+
key: z.ZodString;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
notes: z.ZodObject<{
|
|
252
|
+
verdict: z.ZodEnum<{
|
|
253
|
+
fit: "fit";
|
|
254
|
+
not_a_fit: "not_a_fit";
|
|
255
|
+
}>;
|
|
256
|
+
confidence: z.ZodNumber;
|
|
257
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
258
|
+
briefContradiction: z.ZodDefault<z.ZodBoolean>;
|
|
259
|
+
proposedFacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
260
|
+
proposition: z.ZodString;
|
|
261
|
+
scope: z.ZodObject<{
|
|
262
|
+
product: z.ZodString;
|
|
263
|
+
generation: z.ZodNullable<z.ZodString>;
|
|
264
|
+
version: z.ZodNullable<z.ZodString>;
|
|
265
|
+
applicableAt: z.ZodNullable<z.ZodISODateTime>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
category: z.ZodEnum<{
|
|
268
|
+
identity: "identity";
|
|
269
|
+
lifecycle: "lifecycle";
|
|
270
|
+
compatibility: "compatibility";
|
|
271
|
+
capability: "capability";
|
|
272
|
+
other: "other";
|
|
273
|
+
}>;
|
|
274
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>>>;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
export type AuthorStageOutput = z.infer<typeof authorStageOutputSchema>;
|
|
279
|
+
export declare const stageSchemas: {
|
|
280
|
+
readonly analyze: z.ZodObject<{
|
|
281
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
282
|
+
file: z.ZodString;
|
|
283
|
+
prospectMentioned: z.ZodBoolean;
|
|
284
|
+
prospectPosition: z.ZodEnum<{
|
|
285
|
+
primary: "primary";
|
|
286
|
+
secondary: "secondary";
|
|
287
|
+
listed: "listed";
|
|
288
|
+
absent: "absent";
|
|
289
|
+
}>;
|
|
290
|
+
prospectSentiment: z.ZodEnum<{
|
|
291
|
+
positive: "positive";
|
|
292
|
+
neutral: "neutral";
|
|
293
|
+
negative: "negative";
|
|
294
|
+
}>;
|
|
295
|
+
contextSnippet: z.ZodString;
|
|
296
|
+
competitorMentions: z.ZodArray<z.ZodObject<{
|
|
297
|
+
domain: z.ZodString;
|
|
298
|
+
mentioned: z.ZodBoolean;
|
|
299
|
+
position: z.ZodEnum<{
|
|
300
|
+
primary: "primary";
|
|
301
|
+
secondary: "secondary";
|
|
302
|
+
listed: "listed";
|
|
303
|
+
absent: "absent";
|
|
304
|
+
}>;
|
|
305
|
+
}, z.core.$strict>>;
|
|
306
|
+
mentionedBrands: z.ZodArray<z.ZodObject<{
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
}, z.core.$strict>>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
readonly qualify: z.ZodObject<{
|
|
313
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
314
|
+
file: z.ZodString;
|
|
315
|
+
qualifiedCompetitors: z.ZodArray<z.ZodObject<{
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
318
|
+
quote: z.ZodString;
|
|
319
|
+
}, z.core.$strict>>;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
corrections: z.ZodArray<z.ZodObject<{
|
|
322
|
+
stage: z.ZodEnum<{
|
|
323
|
+
analyze: "analyze";
|
|
324
|
+
qualify: "qualify";
|
|
325
|
+
}>;
|
|
326
|
+
file: z.ZodString;
|
|
327
|
+
field: z.ZodString;
|
|
328
|
+
from: z.ZodString;
|
|
329
|
+
to: z.ZodString;
|
|
330
|
+
reason: z.ZodString;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
}, z.core.$strict>;
|
|
333
|
+
readonly review: z.ZodObject<{
|
|
334
|
+
verdict: z.ZodEnum<{
|
|
335
|
+
accepted: "accepted";
|
|
336
|
+
needs_another_pass: "needs_another_pass";
|
|
337
|
+
}>;
|
|
338
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
339
|
+
criterionId: z.ZodString;
|
|
340
|
+
outcome: z.ZodEnum<{
|
|
341
|
+
pass: "pass";
|
|
342
|
+
fail: "fail";
|
|
343
|
+
}>;
|
|
344
|
+
}, z.core.$strict>>;
|
|
345
|
+
corrections: z.ZodArray<z.ZodObject<{
|
|
346
|
+
stage: z.ZodEnum<{
|
|
347
|
+
analyze: "analyze";
|
|
348
|
+
qualify: "qualify";
|
|
349
|
+
}>;
|
|
350
|
+
file: z.ZodString;
|
|
351
|
+
field: z.ZodString;
|
|
352
|
+
from: z.ZodString;
|
|
353
|
+
to: z.ZodString;
|
|
354
|
+
reason: z.ZodString;
|
|
355
|
+
}, z.core.$strict>>;
|
|
356
|
+
unresolved: z.ZodArray<z.ZodObject<{
|
|
357
|
+
criterionId: z.ZodString;
|
|
358
|
+
stage: z.ZodEnum<{
|
|
359
|
+
host: "host";
|
|
360
|
+
analyze: "analyze";
|
|
361
|
+
qualify: "qualify";
|
|
362
|
+
write: "write";
|
|
363
|
+
}>;
|
|
364
|
+
file: z.ZodNullable<z.ZodString>;
|
|
365
|
+
problem: z.ZodString;
|
|
366
|
+
evidence: z.ZodString;
|
|
367
|
+
whyNotFixed: z.ZodString;
|
|
368
|
+
}, z.core.$strict>>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
readonly write: z.ZodObject<{
|
|
371
|
+
intro: z.ZodArray<z.ZodObject<{
|
|
372
|
+
kind: z.ZodLiteral<"narrative">;
|
|
373
|
+
text: z.ZodString;
|
|
374
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
375
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
376
|
+
proposition: z.ZodString;
|
|
377
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
378
|
+
}, z.core.$strict>>;
|
|
379
|
+
}, z.core.$strict>>;
|
|
380
|
+
sections: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
381
|
+
subtitle: z.ZodArray<z.ZodObject<{}, z.core.$strict>>;
|
|
382
|
+
}, z.core.$strict>>;
|
|
383
|
+
confidence: z.ZodNumber;
|
|
384
|
+
hero: z.ZodObject<{
|
|
385
|
+
title: z.ZodObject<{
|
|
386
|
+
kind: z.ZodLiteral<"narrative">;
|
|
387
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
388
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
389
|
+
proposition: z.ZodString;
|
|
390
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
391
|
+
}, z.core.$strict>>;
|
|
392
|
+
text: z.ZodString;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
subtitle: z.ZodObject<{
|
|
395
|
+
kind: z.ZodLiteral<"narrative">;
|
|
396
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
397
|
+
premises: z.ZodArray<z.ZodObject<{
|
|
398
|
+
proposition: z.ZodString;
|
|
399
|
+
basisFactIds: z.ZodArray<z.ZodString>;
|
|
400
|
+
}, z.core.$strict>>;
|
|
401
|
+
text: z.ZodString;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
}, z.core.$strict>;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
readonly author: z.ZodObject<{
|
|
406
|
+
config: z.ZodObject<{
|
|
407
|
+
questionSetName: z.ZodOptional<z.ZodString>;
|
|
408
|
+
geography: z.ZodDefault<z.ZodString>;
|
|
409
|
+
language: z.ZodDefault<z.ZodString>;
|
|
410
|
+
competitors: z.ZodArray<z.ZodObject<{
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
domain: z.ZodString;
|
|
413
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
415
|
+
surfaces: z.ZodPrefault<z.ZodObject<{
|
|
416
|
+
codingAgents: z.ZodEnum<{
|
|
417
|
+
measure: "measure";
|
|
418
|
+
skip: "skip";
|
|
419
|
+
}>;
|
|
420
|
+
because: z.ZodString;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
brand: z.ZodObject<{
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
domain: z.ZodString;
|
|
425
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
agentProbes: z.ZodPrefault<z.ZodObject<{
|
|
428
|
+
runsPerPrompt: z.ZodDefault<z.ZodNumber>;
|
|
429
|
+
maxPromptsPerSection: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
moneyPages: z.ZodArray<z.ZodString>;
|
|
432
|
+
productBrief: z.ZodString;
|
|
433
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
434
|
+
prompts: z.ZodArray<z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
text: z.ZodString;
|
|
437
|
+
category: z.ZodEnum<{
|
|
438
|
+
product_recommendation: "product_recommendation";
|
|
439
|
+
industry_expert: "industry_expert";
|
|
440
|
+
comparison: "comparison";
|
|
441
|
+
problem_solving: "problem_solving";
|
|
442
|
+
general_knowledge: "general_knowledge";
|
|
443
|
+
}>;
|
|
444
|
+
}, z.core.$strip>>;
|
|
445
|
+
competitors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
domain: z.ZodString;
|
|
448
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
449
|
+
}, z.core.$strip>>>;
|
|
450
|
+
key: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
}, z.core.$strict>;
|
|
453
|
+
notes: z.ZodObject<{
|
|
454
|
+
verdict: z.ZodEnum<{
|
|
455
|
+
fit: "fit";
|
|
456
|
+
not_a_fit: "not_a_fit";
|
|
457
|
+
}>;
|
|
458
|
+
confidence: z.ZodNumber;
|
|
459
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
460
|
+
briefContradiction: z.ZodDefault<z.ZodBoolean>;
|
|
461
|
+
proposedFacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
462
|
+
proposition: z.ZodString;
|
|
463
|
+
scope: z.ZodObject<{
|
|
464
|
+
product: z.ZodString;
|
|
465
|
+
generation: z.ZodNullable<z.ZodString>;
|
|
466
|
+
version: z.ZodNullable<z.ZodString>;
|
|
467
|
+
applicableAt: z.ZodNullable<z.ZodISODateTime>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
category: z.ZodEnum<{
|
|
470
|
+
identity: "identity";
|
|
471
|
+
lifecycle: "lifecycle";
|
|
472
|
+
compatibility: "compatibility";
|
|
473
|
+
capability: "capability";
|
|
474
|
+
other: "other";
|
|
475
|
+
}>;
|
|
476
|
+
sourceUrls: z.ZodArray<z.ZodString>;
|
|
477
|
+
}, z.core.$strip>>>;
|
|
478
|
+
}, z.core.$strict>;
|
|
479
|
+
}, z.core.$strict>;
|
|
480
|
+
};
|
|
481
|
+
export type StageName = keyof typeof stageSchemas;
|
|
482
|
+
export declare const isStageName: (name: string) => name is StageName;
|
|
483
|
+
/** The workflow an admission is priced against; a deployment that changes
|
|
484
|
+
* what a run produces bumps it, and the job refuses to continue an
|
|
485
|
+
* execution admitted for another. */
|
|
486
|
+
export declare const workflowVersion = 1;
|
|
487
|
+
/** The host rules behind each stage, one number per stage: bumping one
|
|
488
|
+
* reruns that stage and its dependents on resume, nothing else. A prompt or
|
|
489
|
+
* schema change is already in the stage's inputs digest and needs no bump. */
|
|
490
|
+
export declare const stageVersions: Record<StageName, number>;
|
|
491
|
+
/** The JSON schema written to SCHEMA/<stage>.json for the model to read;
|
|
492
|
+
* also part of the stage's inputs digest and session contract. */
|
|
493
|
+
export declare const stageJsonSchema: (stage: StageName) => unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SavedSession = {
|
|
2
|
+
contract: string;
|
|
3
|
+
threadId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const readSession: (dir: string, { label, contract }: {
|
|
6
|
+
label: string;
|
|
7
|
+
contract: string;
|
|
8
|
+
}) => Promise<SavedSession | null>;
|
|
9
|
+
export declare const saveSession: (dir: string, label: string, session: SavedSession) => Promise<string[]>;
|
|
10
|
+
/** A saved conversation that could not be resumed (its rollout gone, the
|
|
11
|
+
* thread expired) is dropped, so the next session of the batch starts fresh.
|
|
12
|
+
* Returns the file for the checkpoint to record as deleted. */
|
|
13
|
+
export declare const forgetSession: (dir: string, label: string) => Promise<string[]>;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { CopyValidationOutcome } from '../agents/copy-validation';
|
|
2
|
+
import type { AeoBrand } from '../schema';
|
|
3
|
+
import type { ExecutionRecorder } from '../bundle/recorder';
|
|
4
|
+
import { type StageValue } from './checks';
|
|
5
|
+
import { type ResearchServerConfig } from './codex-home';
|
|
6
|
+
import { type Correction, type StageName } from './schemas';
|
|
7
|
+
import type { AnswerFile } from './workdir';
|
|
8
|
+
import type { BatchLayout } from './batch-layout';
|
|
9
|
+
export type StageRun = {
|
|
10
|
+
stage: StageName;
|
|
11
|
+
model: string;
|
|
12
|
+
/** The merged output exists; batches that never validated are listed in
|
|
13
|
+
* `degraded` and their answers carry no judgment from this stage. */
|
|
14
|
+
ok: boolean;
|
|
15
|
+
durationMs: number;
|
|
16
|
+
usage: {
|
|
17
|
+
inputTokens: number;
|
|
18
|
+
outputTokens: number;
|
|
19
|
+
} | null;
|
|
20
|
+
errors: string[];
|
|
21
|
+
/** Answer files whose batch never validated: excluded from this stage
|
|
22
|
+
* and every later one, recorded, never a reason to stop the run. */
|
|
23
|
+
degraded: string[];
|
|
24
|
+
/** A reason no further session could fix, such as a credential the
|
|
25
|
+
* model provider rejected (`auth`): the batch stopped early and the host
|
|
26
|
+
* decides what the run does with it. */
|
|
27
|
+
fatal?: string;
|
|
28
|
+
summary: Record<string, unknown>;
|
|
29
|
+
};
|
|
30
|
+
export type StageContext = {
|
|
31
|
+
dir: string;
|
|
32
|
+
brand: AeoBrand;
|
|
33
|
+
answers: readonly AnswerFile[];
|
|
34
|
+
/** Every answer of the run, never narrowed: once a batch degrades,
|
|
35
|
+
* `answers` is what later stages still judge, while corrections and the
|
|
36
|
+
* evidence they cite are checked against the whole run. */
|
|
37
|
+
allAnswers?: readonly AnswerFile[];
|
|
38
|
+
/** The configured section keys; the copy draft must name every one. */
|
|
39
|
+
sections?: readonly string[];
|
|
40
|
+
/** Hosts the client owns besides its brand domain; never competitors. */
|
|
41
|
+
ownedDomains?: readonly string[];
|
|
42
|
+
/** The host stopping the work: sessions are killed and no batch starts. */
|
|
43
|
+
signal?: AbortSignal;
|
|
44
|
+
/** Overrides for tests: the command to run instead of `codex`. */
|
|
45
|
+
command?: string;
|
|
46
|
+
timeoutMs?: number;
|
|
47
|
+
/** Answers per Codex session; the default fits the pinned model. */
|
|
48
|
+
batchSize?: number;
|
|
49
|
+
batchLayout?: BatchLayout;
|
|
50
|
+
/** Batches in flight at once. */
|
|
51
|
+
concurrency?: number;
|
|
52
|
+
/** The host's asynchronous verdict on a copy draft (facts, banlist,
|
|
53
|
+
* premises, the premise verifier): the initial review when no findings
|
|
54
|
+
* are supplied, then the verifier's edit from the findings and its
|
|
55
|
+
* recheck. `reviewed` receives the initial review's findings before the
|
|
56
|
+
* paid edit, for the host to persist. */
|
|
57
|
+
validateCopy?: (draft: unknown, options?: ValidateCopyOptions) => Promise<CopyVerdict>;
|
|
58
|
+
/** An existing copy handed directly to the verifier for a requested edit. */
|
|
59
|
+
initialCopyDraft?: unknown;
|
|
60
|
+
/** The isolated environment every session of a stage runs with; written
|
|
61
|
+
* once per stage by runStage. */
|
|
62
|
+
codexEnv?: Record<string, string>;
|
|
63
|
+
/** Persist settled files before another batch can start. */
|
|
64
|
+
checkpoint?: (files?: readonly string[]) => Promise<void>;
|
|
65
|
+
/** The host's asynchronous verdict on a structurally valid output, for a
|
|
66
|
+
* stage whose descriptor asks for one (the author: identity, sources,
|
|
67
|
+
* reachability). Errors resume the session with them; `fatal` ends the
|
|
68
|
+
* batch without another attempt; `value` replaces the output. */
|
|
69
|
+
verdict?: (value: StageValue) => Promise<{
|
|
70
|
+
errors: string[];
|
|
71
|
+
fatal?: boolean;
|
|
72
|
+
value?: StageValue;
|
|
73
|
+
}>;
|
|
74
|
+
/** The research tool server a stage that registers one is given. */
|
|
75
|
+
research?: ResearchServerConfig;
|
|
76
|
+
/** The run journal: sessions and the host's decisions on their outputs
|
|
77
|
+
* are recorded as they happen (specs/aeo-open-source-cli-spec.md §7). */
|
|
78
|
+
recorder?: ExecutionRecorder;
|
|
79
|
+
};
|
|
80
|
+
export type ValidateCopyOptions = {
|
|
81
|
+
round?: number;
|
|
82
|
+
previousFindings?: readonly string[];
|
|
83
|
+
reviewed?: (findings: readonly string[]) => Promise<void>;
|
|
84
|
+
};
|
|
85
|
+
export type CopyVerdict = {
|
|
86
|
+
ok: boolean;
|
|
87
|
+
fixable: boolean;
|
|
88
|
+
outcome?: CopyValidationOutcome;
|
|
89
|
+
errors: string[];
|
|
90
|
+
/** The verifier's direct edit, which becomes its next review input. */
|
|
91
|
+
editedDraft?: unknown;
|
|
92
|
+
/** What the stage keeps when ok: the validated copy with its receipt. */
|
|
93
|
+
payload?: Record<string, unknown>;
|
|
94
|
+
};
|
|
95
|
+
export type { StageValue } from './checks';
|
|
96
|
+
/** What the copy stage stores and delivers: the verifier's payload around
|
|
97
|
+
* the draft it accepted. */
|
|
98
|
+
export type VerifiedCopy = {
|
|
99
|
+
draft: unknown;
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
export declare const defaultBatchSize = 10;
|
|
103
|
+
export declare const defaultConcurrency = 25;
|
|
104
|
+
/** The files one Codex session works on. `<b>` in a prompt is this. */
|
|
105
|
+
export type Batch = {
|
|
106
|
+
index: number;
|
|
107
|
+
files: readonly AnswerFile[];
|
|
108
|
+
};
|
|
109
|
+
export declare const partition: (answers: readonly AnswerFile[], size?: number) => Batch[];
|
|
110
|
+
/** What a stage's output depends on: every batch's digest, in order. A
|
|
111
|
+
* resume reruns a stage only when this changed, and within it only the
|
|
112
|
+
* batches whose own digest changed. */
|
|
113
|
+
export declare const stageInputsDigest: (ctx: StageContext, stage: StageName) => Promise<string>;
|
|
114
|
+
export declare const isStageFresh: (ctx: StageContext, stage: StageName) => Promise<boolean>;
|
|
115
|
+
/** A correction field is a path into the row: `prospectMentioned`,
|
|
116
|
+
* `mentionedBrands`, or a nested `qualifiedCompetitors[0].quote` (the
|
|
117
|
+
* scrutiny pass of run C fixed a quote that way and the host refused it
|
|
118
|
+
* as an unknown key, 2026-09-13). */
|
|
119
|
+
export declare const fieldPath: (field: string) => string[];
|
|
120
|
+
/** A correction value is JSON text; a bare word the model did not quote
|
|
121
|
+
* (`listed`, `true`) is taken as the string it is. */
|
|
122
|
+
export declare const correctionValue: (text: string) => unknown;
|
|
123
|
+
/** Apply a later stage's corrections to the OUT file they name, keeping
|
|
124
|
+
* the audit trail in OUT/corrections.json. A corrected output is held to
|
|
125
|
+
* the same row rules as a fresh one, not to batch coverage: a correction
|
|
126
|
+
* the rules reverse, in whole or in part (the qualify stage re-listing the
|
|
127
|
+
* prospect's runtime alias on rows that mark the prospect absent), is
|
|
128
|
+
* refused, recorded, and leaves the file exactly as it was. */
|
|
129
|
+
export declare const applyCorrections: (ctx: Pick<StageContext, "dir" | "brand" | "answers" | "allAnswers" | "recorder">, from: StageName, corrections: readonly Correction[]) => Promise<{
|
|
130
|
+
applied: number;
|
|
131
|
+
refused: number;
|
|
132
|
+
}>;
|
|
133
|
+
export declare const runStage: (initial: StageContext, stage: StageName, options?: {
|
|
134
|
+
pass?: number;
|
|
135
|
+
force?: boolean;
|
|
136
|
+
}) => Promise<StageRun>;
|