literally-aeo 0.0.0-stage → 0.1.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/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-2KJZ326K.js +253 -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-2ROSV4HD.js +64 -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-3EBWDHPK.js +133 -0
- package/dist/lib/chunks/chunk-3UFZ2XPE.js +73 -0
- package/dist/lib/chunks/chunk-4E4NDGOZ.js +47 -0
- package/dist/lib/chunks/chunk-4QQJXCD2.js +113 -0
- package/dist/lib/chunks/chunk-4US3OBKJ.js +136 -0
- package/dist/lib/chunks/chunk-4ZY6P5SO.js +303 -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-5EX5DKMA.js +812 -0
- package/dist/lib/chunks/chunk-5GZVDGTX.js +316 -0
- package/dist/lib/chunks/chunk-5H3SNUQT.js +101 -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-6KO7HGCQ.js +229 -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-AKKFERA4.js +99 -0
- package/dist/lib/chunks/chunk-AP5DLF36.js +150 -0
- package/dist/lib/chunks/chunk-AUB5THIS.js +341 -0
- package/dist/lib/chunks/chunk-AWOJWMPN.js +213 -0
- package/dist/lib/chunks/chunk-B5L2KMTU.js +108 -0
- package/dist/lib/chunks/chunk-BEQLSAVX.js +202 -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-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-CS24IL3K.js +115 -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-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-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-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-H3G3VTT7.js +259 -0
- package/dist/lib/chunks/chunk-H56DDRKE.js +85 -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-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-J6IJGYP5.js +147 -0
- package/dist/lib/chunks/chunk-JQ3P552S.js +0 -0
- package/dist/lib/chunks/chunk-JS3GBU3R.js +46 -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-M2OD74GP.js +93 -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-N2ZZ6JRF.js +188 -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-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-OL746E4T.js +350 -0
- package/dist/lib/chunks/chunk-OORO55OM.js +922 -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-P4K6BP3L.js +104 -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-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-RBOO4NDG.js +33 -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-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-WTQWU522.js +343 -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-XU6WQ5UL.js +257 -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-YOZNLFSB.js +297 -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-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-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,99 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AeoPerception, AeoSurface, AeoVisibility } from '../schema';
|
|
3
|
+
import type { InternalModelContext } from '../models/context';
|
|
4
|
+
export declare const perceptionModel = "anthropic/claude-opus-4.6";
|
|
5
|
+
export declare const perceptionBatchSize = 15;
|
|
6
|
+
export declare const perceptionVersion = 3;
|
|
7
|
+
export declare const legacyPerceptionVersion = 2;
|
|
8
|
+
export declare const perceptionBatchSchema: z.ZodObject<{
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
answerIndex: z.ZodNumber;
|
|
11
|
+
narrativePhrases: z.ZodArray<z.ZodString>;
|
|
12
|
+
suspectedErrors: z.ZodArray<z.ZodObject<{
|
|
13
|
+
claim: z.ZodString;
|
|
14
|
+
reason: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type PerceptionBatchResult = z.infer<typeof perceptionBatchSchema>['results'][number];
|
|
19
|
+
export declare const buildPerceptionSystemPrompt: (brandName: string, productBrief: string) => string;
|
|
20
|
+
export type BrandMentionAnswer = {
|
|
21
|
+
promptIdx: number;
|
|
22
|
+
surface: AeoSurface;
|
|
23
|
+
runIndex: number;
|
|
24
|
+
responseText: string;
|
|
25
|
+
};
|
|
26
|
+
export type PerceptionSection = AeoPerception['sections'][number];
|
|
27
|
+
/** The cacheable part of a section's perception pass (no sentiment tallies). */
|
|
28
|
+
export type PerceptionExtraction = {
|
|
29
|
+
narratives: PerceptionSection['narratives'];
|
|
30
|
+
flaggedClaims: PerceptionSection['flaggedClaims'];
|
|
31
|
+
};
|
|
32
|
+
export declare const perceptionExtractionSchema: z.ZodObject<{
|
|
33
|
+
narratives: z.ZodArray<z.ZodObject<{
|
|
34
|
+
phrase: z.ZodString;
|
|
35
|
+
promptIdx: z.ZodNumber;
|
|
36
|
+
surface: z.ZodEnum<{
|
|
37
|
+
chatgpt: "chatgpt";
|
|
38
|
+
gemini: "gemini";
|
|
39
|
+
claude: "claude";
|
|
40
|
+
perplexity: "perplexity";
|
|
41
|
+
google_ai_overview: "google_ai_overview";
|
|
42
|
+
claude_code: "claude_code";
|
|
43
|
+
codex: "codex";
|
|
44
|
+
cursor: "cursor";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
flaggedClaims: z.ZodArray<z.ZodObject<{
|
|
48
|
+
claim: z.ZodString;
|
|
49
|
+
reason: z.ZodString;
|
|
50
|
+
promptIdx: z.ZodNumber;
|
|
51
|
+
surface: z.ZodEnum<{
|
|
52
|
+
chatgpt: "chatgpt";
|
|
53
|
+
gemini: "gemini";
|
|
54
|
+
claude: "claude";
|
|
55
|
+
perplexity: "perplexity";
|
|
56
|
+
google_ai_overview: "google_ai_overview";
|
|
57
|
+
claude_code: "claude_code";
|
|
58
|
+
codex: "codex";
|
|
59
|
+
cursor: "cursor";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type PerceptionBatchFailure = {
|
|
64
|
+
message: string;
|
|
65
|
+
blocking: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type PerceptionSectionResult = {
|
|
68
|
+
section: PerceptionSection;
|
|
69
|
+
failures: PerceptionBatchFailure[];
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* tallySentiment returns per-mention sentiment tallies over the matrix — free,
|
|
73
|
+
* never cached.
|
|
74
|
+
*/
|
|
75
|
+
export declare const tallySentiment: (visibility: AeoVisibility) => PerceptionSection["sentiment"];
|
|
76
|
+
/**
|
|
77
|
+
* selectValidResults keeps the results whose answerIndex names an answer that
|
|
78
|
+
* was asked about and appears once (§3.3), and reports the rest. A narrative is
|
|
79
|
+
* never attributed to the wrong answer, which is what the index rule protects —
|
|
80
|
+
* but one stray integer is the model's mistake about one answer, not evidence
|
|
81
|
+
* that its other fourteen judgements are wrong, so the batch survives it and
|
|
82
|
+
* the uncovered answers are asked about again.
|
|
83
|
+
*/
|
|
84
|
+
export declare const selectValidResults: (results: readonly PerceptionBatchResult[], expected: readonly number[]) => {
|
|
85
|
+
kept: PerceptionBatchResult[];
|
|
86
|
+
rejected: string[];
|
|
87
|
+
};
|
|
88
|
+
export declare const extractPerceptionForSection: (args: {
|
|
89
|
+
sectionKey: string;
|
|
90
|
+
brandName: string;
|
|
91
|
+
productBrief: string;
|
|
92
|
+
visibility: AeoVisibility;
|
|
93
|
+
answers: BrandMentionAnswer[];
|
|
94
|
+
cachedExtraction?: PerceptionExtraction | null;
|
|
95
|
+
logContext?: Record<string, unknown>;
|
|
96
|
+
signal?: AbortSignal;
|
|
97
|
+
internalModels?: InternalModelContext;
|
|
98
|
+
}) => Promise<PerceptionSectionResult>;
|
|
99
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../report/core/source-classifier';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AeoSnapshot, AeoVisibility } from '../schema';
|
|
2
|
+
import { type SourceClassifierConfig } from './source-classifier';
|
|
3
|
+
export declare const buildSourceMix: (sections: ReadonlyArray<{
|
|
4
|
+
key: string;
|
|
5
|
+
visibility: AeoVisibility;
|
|
6
|
+
}>, classifierConfig: SourceClassifierConfig) => NonNullable<AeoSnapshot["sourceMix"]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const locateVerbatimPassage: (text: string, phrase: string) => string | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const errorStatus: {
|
|
2
|
+
readonly unauthorized: 401;
|
|
3
|
+
readonly forbidden: 403;
|
|
4
|
+
readonly not_found: 404;
|
|
5
|
+
readonly invalid_request: 400;
|
|
6
|
+
readonly conflict: 409;
|
|
7
|
+
readonly release_changed: 409;
|
|
8
|
+
readonly pipeline_active: 409;
|
|
9
|
+
readonly report_exists: 409;
|
|
10
|
+
readonly gate_not_waiting: 409;
|
|
11
|
+
readonly over_cost_cap: 429;
|
|
12
|
+
readonly service_unavailable: 503;
|
|
13
|
+
readonly incompatible_report: 503;
|
|
14
|
+
readonly internal: 500;
|
|
15
|
+
};
|
|
16
|
+
export type ApiErrorCode = keyof typeof errorStatus;
|
|
17
|
+
type ApiErrorOptions = {
|
|
18
|
+
details?: unknown;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* ApiError carries a client-facing code and message; its message is sent to
|
|
22
|
+
* the caller as it is.
|
|
23
|
+
*/
|
|
24
|
+
export declare class ApiError extends Error {
|
|
25
|
+
readonly code: ApiErrorCode;
|
|
26
|
+
readonly details: unknown;
|
|
27
|
+
constructor(code: ApiErrorCode, message: string, { details }?: ApiErrorOptions);
|
|
28
|
+
}
|
|
29
|
+
export declare const requireScope: (scopes: readonly string[], scope: string) => void;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const syntheticExample: {
|
|
2
|
+
brand: {
|
|
3
|
+
name: string;
|
|
4
|
+
domain: string;
|
|
5
|
+
aliases: never[];
|
|
6
|
+
};
|
|
7
|
+
competitors: {
|
|
8
|
+
name: string;
|
|
9
|
+
domain: string;
|
|
10
|
+
aliases: never[];
|
|
11
|
+
}[];
|
|
12
|
+
sections: {
|
|
13
|
+
key: string;
|
|
14
|
+
prompts: {
|
|
15
|
+
id: string;
|
|
16
|
+
category: string;
|
|
17
|
+
text: string;
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
20
|
+
productBrief: string;
|
|
21
|
+
moneyPages: string[];
|
|
22
|
+
surfaces: {
|
|
23
|
+
codingAgents: string;
|
|
24
|
+
because: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const authorExampleNames: readonly ["literally", "synthetic"];
|
|
28
|
+
export type AuthorExampleName = (typeof authorExampleNames)[number];
|
|
29
|
+
export declare const isAuthorExampleName: (value: string) => value is AuthorExampleName;
|
|
30
|
+
/** The example files, by name, as JSON text. */
|
|
31
|
+
export declare const authorExamples: (names?: readonly AuthorExampleName[]) => Record<string, string>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
export declare const CheckOutcome: {
|
|
3
|
+
readonly PASS: "pass";
|
|
4
|
+
readonly FAIL: "fail";
|
|
5
|
+
readonly UNSUPPORTED: "unsupported";
|
|
6
|
+
readonly NOT_CHECKABLE: "not_checkable";
|
|
7
|
+
readonly NOT_APPLICABLE: "not_applicable";
|
|
8
|
+
};
|
|
9
|
+
export type CheckOutcome = (typeof CheckOutcome)[keyof typeof CheckOutcome];
|
|
10
|
+
export type Check = {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
outcome: CheckOutcome;
|
|
14
|
+
code: string;
|
|
15
|
+
explanation: string;
|
|
16
|
+
artifacts: string[];
|
|
17
|
+
};
|
|
18
|
+
export type Problem = {
|
|
19
|
+
code: string;
|
|
20
|
+
message: string;
|
|
21
|
+
artifact?: string;
|
|
22
|
+
};
|
|
23
|
+
type CheckFromOptions = {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
problems: readonly Problem[];
|
|
27
|
+
/** What a pass established. */
|
|
28
|
+
pass: string;
|
|
29
|
+
};
|
|
30
|
+
/** checkFrom passes with no problems and fails on the first otherwise,
|
|
31
|
+
* explaining every problem found. */
|
|
32
|
+
export declare const checkFrom: ({ id, title, problems, pass, }: CheckFromOptions) => Check;
|
|
33
|
+
/** A check whose outcome was decided without problems to list. */
|
|
34
|
+
export declare const decidedCheck: (check: Omit<Check, "artifacts">) => Check;
|
|
35
|
+
export declare const describeError: (err: unknown) => string;
|
|
36
|
+
export type DocumentRead<T> = {
|
|
37
|
+
value: T;
|
|
38
|
+
} | {
|
|
39
|
+
problem: Problem;
|
|
40
|
+
};
|
|
41
|
+
/** createDocumentReader parses bundle documents; a missing or malformed
|
|
42
|
+
* one is a problem of the check that needs it, never a crash. */
|
|
43
|
+
export declare const createDocumentReader: (files: ReadonlyMap<string, Buffer>, isWithheld?: (file: string) => boolean) => <T>(file: string, schema: z.ZodType<T>) => DocumentRead<T>;
|
|
44
|
+
export type DocumentReader = ReturnType<typeof createDocumentReader>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const toolId = "literally-aeo";
|
|
3
|
+
export declare const toolVersion = "0.1.0";
|
|
4
|
+
export declare const bundleSchemaVersion = 1;
|
|
5
|
+
export declare const traceSchemaVersion = 1;
|
|
6
|
+
export declare const canonicalization = "literally-aeo-canonical-json-v1";
|
|
7
|
+
export declare const calculationVersion = 1;
|
|
8
|
+
export declare const RunOrigin: {
|
|
9
|
+
readonly LOCAL: "local";
|
|
10
|
+
readonly HOSTED: "hosted";
|
|
11
|
+
readonly LEGACY_IMPORT: "legacy_import";
|
|
12
|
+
};
|
|
13
|
+
export type RunOrigin = (typeof RunOrigin)[keyof typeof RunOrigin];
|
|
14
|
+
export declare const eventTypes: readonly ["run_started", "plan_frozen", "operation_started", "operation_finished", "output_accepted", "output_refused", "correction_applied", "correction_refused", "artifact_reused", "budget_amended", "run_interrupted", "run_resumed", "writer_takeover", "revision_finalized", "run_completed", "run_failed"];
|
|
15
|
+
export type EventType = (typeof eventTypes)[number];
|
|
16
|
+
/** Every kind of host-visible operation a writer can record (§7.2). A
|
|
17
|
+
* writer declares the kinds it observes in run_started and run_resumed. */
|
|
18
|
+
export declare const operationKinds: readonly ["codex_session", "host_model_call", "probe", "canary", "research_tool", "technical_check"];
|
|
19
|
+
export type OperationKind = (typeof operationKinds)[number];
|
|
20
|
+
/** One line of events.jsonl. `digest` covers the canonical event without
|
|
21
|
+
* itself; `previousDigest` chains it to the line before (null first). */
|
|
22
|
+
export declare const bundleEventSchema: z.ZodObject<{
|
|
23
|
+
seq: z.ZodNumber;
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
type: z.ZodEnum<{
|
|
26
|
+
run_started: "run_started";
|
|
27
|
+
plan_frozen: "plan_frozen";
|
|
28
|
+
operation_started: "operation_started";
|
|
29
|
+
operation_finished: "operation_finished";
|
|
30
|
+
output_accepted: "output_accepted";
|
|
31
|
+
output_refused: "output_refused";
|
|
32
|
+
correction_applied: "correction_applied";
|
|
33
|
+
correction_refused: "correction_refused";
|
|
34
|
+
artifact_reused: "artifact_reused";
|
|
35
|
+
budget_amended: "budget_amended";
|
|
36
|
+
run_interrupted: "run_interrupted";
|
|
37
|
+
run_resumed: "run_resumed";
|
|
38
|
+
writer_takeover: "writer_takeover";
|
|
39
|
+
revision_finalized: "revision_finalized";
|
|
40
|
+
run_completed: "run_completed";
|
|
41
|
+
run_failed: "run_failed";
|
|
42
|
+
}>;
|
|
43
|
+
at: z.ZodISODateTime;
|
|
44
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
+
objects: z.ZodArray<z.ZodString>;
|
|
47
|
+
previousDigest: z.ZodNullable<z.ZodString>;
|
|
48
|
+
digest: z.ZodString;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export type BundleEvent = z.infer<typeof bundleEventSchema>;
|
|
51
|
+
export declare const bundleFileSchema: z.ZodObject<{
|
|
52
|
+
path: z.ZodString;
|
|
53
|
+
bytes: z.ZodNumber;
|
|
54
|
+
mediaType: z.ZodEnum<{
|
|
55
|
+
"application/json": "application/json";
|
|
56
|
+
"application/x-ndjson": "application/x-ndjson";
|
|
57
|
+
}>;
|
|
58
|
+
sha256: z.ZodString;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
export type BundleFile = z.infer<typeof bundleFileSchema>;
|
|
61
|
+
export declare const traceCoverageSchema: z.ZodEnum<{
|
|
62
|
+
partial: "partial";
|
|
63
|
+
none: "none";
|
|
64
|
+
declared: "declared";
|
|
65
|
+
}>;
|
|
66
|
+
export declare const bundleManifestSchema: z.ZodObject<{
|
|
67
|
+
bundleSchemaVersion: z.ZodNumber;
|
|
68
|
+
traceSchemaVersion: z.ZodNumber;
|
|
69
|
+
canonicalization: z.ZodString;
|
|
70
|
+
calculationVersion: z.ZodNumber;
|
|
71
|
+
tool: z.ZodObject<{
|
|
72
|
+
id: z.ZodLiteral<"literally-aeo">;
|
|
73
|
+
version: z.ZodString;
|
|
74
|
+
sourceRevision: z.ZodNullable<z.ZodString>;
|
|
75
|
+
distributionDigest: z.ZodNullable<z.ZodString>;
|
|
76
|
+
customBuild: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
run: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
kind: z.ZodEnum<{
|
|
81
|
+
author: "author";
|
|
82
|
+
measurement: "measurement";
|
|
83
|
+
}>;
|
|
84
|
+
origin: z.ZodEnum<{
|
|
85
|
+
local: "local";
|
|
86
|
+
hosted: "hosted";
|
|
87
|
+
legacy_import: "legacy_import";
|
|
88
|
+
}>;
|
|
89
|
+
captureAuthenticity: z.ZodLiteral<"self_reported">;
|
|
90
|
+
measurementId: z.ZodString;
|
|
91
|
+
reportKey: z.ZodNullable<z.ZodString>;
|
|
92
|
+
execution: z.ZodEnum<{
|
|
93
|
+
completed: "completed";
|
|
94
|
+
incomplete: "incomplete";
|
|
95
|
+
}>;
|
|
96
|
+
needsImprovement: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
derivedFrom: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"rejudge">;
|
|
99
|
+
runId: z.ZodString;
|
|
100
|
+
revisionId: z.ZodString;
|
|
101
|
+
bundleDigest: z.ZodString;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
revision: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
finalizedAt: z.ZodISODateTime;
|
|
107
|
+
predecessor: z.ZodNullable<z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
bundleDigest: z.ZodString;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
digests: z.ZodObject<{
|
|
113
|
+
measurement: z.ZodString;
|
|
114
|
+
runPolicy: z.ZodString;
|
|
115
|
+
method: z.ZodString;
|
|
116
|
+
plan: z.ZodString;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
files: z.ZodArray<z.ZodObject<{
|
|
119
|
+
path: z.ZodString;
|
|
120
|
+
bytes: z.ZodNumber;
|
|
121
|
+
mediaType: z.ZodEnum<{
|
|
122
|
+
"application/json": "application/json";
|
|
123
|
+
"application/x-ndjson": "application/x-ndjson";
|
|
124
|
+
}>;
|
|
125
|
+
sha256: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
events: z.ZodObject<{
|
|
128
|
+
count: z.ZodNumber;
|
|
129
|
+
head: z.ZodNullable<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
trace: z.ZodObject<{
|
|
132
|
+
coverage: z.ZodEnum<{
|
|
133
|
+
partial: "partial";
|
|
134
|
+
none: "none";
|
|
135
|
+
declared: "declared";
|
|
136
|
+
}>;
|
|
137
|
+
limitations: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
acceptedFindings: z.ZodArray<z.ZodObject<{
|
|
140
|
+
path: z.ZodString;
|
|
141
|
+
kind: z.ZodLiteral<"credential_pattern">;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
redactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
+
path: z.ZodString;
|
|
145
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
147
|
+
reason: z.ZodString;
|
|
148
|
+
}, z.core.$strict>>>;
|
|
149
|
+
bundleDigest: z.ZodString;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
export type BundleManifest = z.infer<typeof bundleManifestSchema>;
|
|
152
|
+
/** The manifest's digest covers its canonical value without the digest. */
|
|
153
|
+
export declare const digestManifest: (manifest: Omit<BundleManifest, "bundleDigest">) => string;
|
|
154
|
+
/** measurementDigest identifies what a run measures: the configuration,
|
|
155
|
+
* surfaces and section scope. Run policy and method are digested apart, so
|
|
156
|
+
* changing a budget never changes measurement identity (spec §4.1). */
|
|
157
|
+
export declare const measurementDigest: (inputs: {
|
|
158
|
+
config: unknown;
|
|
159
|
+
surfaces: readonly string[];
|
|
160
|
+
sections: readonly string[] | null;
|
|
161
|
+
}) => string;
|
|
162
|
+
/** inputs/plan.json: the frozen measurement plan and run policy. */
|
|
163
|
+
export declare const planDocumentSchema: z.ZodObject<{
|
|
164
|
+
version: z.ZodLiteral<1>;
|
|
165
|
+
surfaces: z.ZodArray<z.ZodEnum<{
|
|
166
|
+
chatgpt: "chatgpt";
|
|
167
|
+
gemini: "gemini";
|
|
168
|
+
claude: "claude";
|
|
169
|
+
perplexity: "perplexity";
|
|
170
|
+
google_ai_overview: "google_ai_overview";
|
|
171
|
+
claude_code: "claude_code";
|
|
172
|
+
codex: "codex";
|
|
173
|
+
cursor: "cursor";
|
|
174
|
+
}>>;
|
|
175
|
+
sections: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
176
|
+
plan: z.ZodObject<{
|
|
177
|
+
configDigest: z.ZodString;
|
|
178
|
+
units: z.ZodArray<z.ZodObject<{
|
|
179
|
+
sectionKey: z.ZodString;
|
|
180
|
+
promptId: z.ZodString;
|
|
181
|
+
promptText: z.ZodString;
|
|
182
|
+
surface: z.ZodEnum<{
|
|
183
|
+
chatgpt: "chatgpt";
|
|
184
|
+
gemini: "gemini";
|
|
185
|
+
claude: "claude";
|
|
186
|
+
perplexity: "perplexity";
|
|
187
|
+
google_ai_overview: "google_ai_overview";
|
|
188
|
+
claude_code: "claude_code";
|
|
189
|
+
codex: "codex";
|
|
190
|
+
cursor: "cursor";
|
|
191
|
+
}>;
|
|
192
|
+
runIndex: z.ZodNumber;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
digest: z.ZodString;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
capture: z.ZodObject<{
|
|
197
|
+
version: z.ZodLiteral<1>;
|
|
198
|
+
reportKey: z.ZodString;
|
|
199
|
+
runId: z.ZodString;
|
|
200
|
+
planDigest: z.ZodString;
|
|
201
|
+
plannedUnits: z.ZodNumber;
|
|
202
|
+
surfaces: z.ZodArray<z.ZodEnum<{
|
|
203
|
+
chatgpt: "chatgpt";
|
|
204
|
+
gemini: "gemini";
|
|
205
|
+
claude: "claude";
|
|
206
|
+
perplexity: "perplexity";
|
|
207
|
+
google_ai_overview: "google_ai_overview";
|
|
208
|
+
claude_code: "claude_code";
|
|
209
|
+
codex: "codex";
|
|
210
|
+
cursor: "cursor";
|
|
211
|
+
}>>;
|
|
212
|
+
sections: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
213
|
+
units: z.ZodArray<z.ZodObject<{
|
|
214
|
+
unitKey: z.ZodString;
|
|
215
|
+
promptId: z.ZodString;
|
|
216
|
+
surface: z.ZodEnum<{
|
|
217
|
+
chatgpt: "chatgpt";
|
|
218
|
+
gemini: "gemini";
|
|
219
|
+
claude: "claude";
|
|
220
|
+
perplexity: "perplexity";
|
|
221
|
+
google_ai_overview: "google_ai_overview";
|
|
222
|
+
claude_code: "claude_code";
|
|
223
|
+
codex: "codex";
|
|
224
|
+
cursor: "cursor";
|
|
225
|
+
}>;
|
|
226
|
+
runIndex: z.ZodNumber;
|
|
227
|
+
rawDigest: z.ZodString;
|
|
228
|
+
capturedAt: z.ZodISODateTime;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
coverage: z.ZodArray<z.ZodObject<{
|
|
231
|
+
surface: z.ZodEnum<{
|
|
232
|
+
chatgpt: "chatgpt";
|
|
233
|
+
gemini: "gemini";
|
|
234
|
+
claude: "claude";
|
|
235
|
+
perplexity: "perplexity";
|
|
236
|
+
google_ai_overview: "google_ai_overview";
|
|
237
|
+
claude_code: "claude_code";
|
|
238
|
+
codex: "codex";
|
|
239
|
+
cursor: "cursor";
|
|
240
|
+
}>;
|
|
241
|
+
planned: z.ZodNumber;
|
|
242
|
+
captured: z.ZodNumber;
|
|
243
|
+
}, z.core.$strict>>;
|
|
244
|
+
lostPromptIds: z.ZodArray<z.ZodString>;
|
|
245
|
+
unitFailures: z.ZodArray<z.ZodObject<{
|
|
246
|
+
promptId: z.ZodString;
|
|
247
|
+
surface: z.ZodEnum<{
|
|
248
|
+
chatgpt: "chatgpt";
|
|
249
|
+
gemini: "gemini";
|
|
250
|
+
claude: "claude";
|
|
251
|
+
perplexity: "perplexity";
|
|
252
|
+
google_ai_overview: "google_ai_overview";
|
|
253
|
+
claude_code: "claude_code";
|
|
254
|
+
codex: "codex";
|
|
255
|
+
cursor: "cursor";
|
|
256
|
+
}>;
|
|
257
|
+
runIndex: z.ZodNumber;
|
|
258
|
+
kind: z.ZodEnum<{
|
|
259
|
+
timeout: "timeout";
|
|
260
|
+
capacity: "capacity";
|
|
261
|
+
auth: "auth";
|
|
262
|
+
cli_error: "cli_error";
|
|
263
|
+
rejected_web_tool: "rejected_web_tool";
|
|
264
|
+
parser: "parser";
|
|
265
|
+
empty_answer: "empty_answer";
|
|
266
|
+
persistence: "persistence";
|
|
267
|
+
}>;
|
|
268
|
+
attempts: z.ZodNumber;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
rejectedWebToolSurfaces: z.ZodArray<z.ZodEnum<{
|
|
271
|
+
claude_code: "claude_code";
|
|
272
|
+
codex: "codex";
|
|
273
|
+
cursor: "cursor";
|
|
274
|
+
}>>;
|
|
275
|
+
freshChatRetrieval: z.ZodArray<z.ZodObject<{
|
|
276
|
+
surface: z.ZodEnum<{
|
|
277
|
+
chatgpt: "chatgpt";
|
|
278
|
+
gemini: "gemini";
|
|
279
|
+
claude: "claude";
|
|
280
|
+
perplexity: "perplexity";
|
|
281
|
+
google_ai_overview: "google_ai_overview";
|
|
282
|
+
claude_code: "claude_code";
|
|
283
|
+
codex: "codex";
|
|
284
|
+
cursor: "cursor";
|
|
285
|
+
}>;
|
|
286
|
+
retrievalCalls: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
freshAgentRetrieval: z.ZodArray<z.ZodObject<{
|
|
289
|
+
surface: z.ZodEnum<{
|
|
290
|
+
chatgpt: "chatgpt";
|
|
291
|
+
gemini: "gemini";
|
|
292
|
+
claude: "claude";
|
|
293
|
+
perplexity: "perplexity";
|
|
294
|
+
google_ai_overview: "google_ai_overview";
|
|
295
|
+
claude_code: "claude_code";
|
|
296
|
+
codex: "codex";
|
|
297
|
+
cursor: "cursor";
|
|
298
|
+
}>;
|
|
299
|
+
usedWebSearch: z.ZodNullable<z.ZodBoolean>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>>;
|
|
302
|
+
failedSections: z.ZodArray<z.ZodObject<{
|
|
303
|
+
key: z.ZodString;
|
|
304
|
+
error: z.ZodString;
|
|
305
|
+
}, z.core.$strict>>;
|
|
306
|
+
resumed: z.ZodObject<{
|
|
307
|
+
count: z.ZodNumber;
|
|
308
|
+
total: z.ZodNumber;
|
|
309
|
+
oldestCapturedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
agentCliVersions: z.ZodObject<{
|
|
312
|
+
claudeCode: z.ZodNullable<z.ZodString>;
|
|
313
|
+
codex: z.ZodNullable<z.ZodString>;
|
|
314
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
startedAt: z.ZodISODateTime;
|
|
317
|
+
completedAt: z.ZodISODateTime;
|
|
318
|
+
}, z.core.$strict>;
|
|
319
|
+
runPolicy: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
export type PlanDocument = z.infer<typeof planDocumentSchema>;
|
|
322
|
+
/** The parts of a bundle the exporter and verifier both name. */
|
|
323
|
+
export declare const bundlePaths: {
|
|
324
|
+
readonly manifest: "manifest.json";
|
|
325
|
+
readonly config: "inputs/config.json";
|
|
326
|
+
readonly plan: "inputs/plan.json";
|
|
327
|
+
readonly method: "inputs/method.json";
|
|
328
|
+
readonly author: "inputs/author/declaration.json";
|
|
329
|
+
readonly authorRecord: "inputs/author/record.json";
|
|
330
|
+
readonly authorDiff: "inputs/author/diff.json";
|
|
331
|
+
readonly auditFile: "inputs/audit.json";
|
|
332
|
+
readonly runtime: "runtime.json";
|
|
333
|
+
readonly events: "events.jsonl";
|
|
334
|
+
readonly captures: "captures/units.json";
|
|
335
|
+
readonly captureManifest: "captures/manifest.json";
|
|
336
|
+
readonly analyze: "analysis/analyze.json";
|
|
337
|
+
readonly qualify: "analysis/qualify.json";
|
|
338
|
+
readonly review: "analysis/review.json";
|
|
339
|
+
readonly corrections: "analysis/corrections.json";
|
|
340
|
+
readonly reviewProgress: "analysis/review-progress.json";
|
|
341
|
+
readonly grounding: "grounding/bundle.json";
|
|
342
|
+
readonly aggregate: "report/aggregate.json";
|
|
343
|
+
readonly metrics: "report/metrics.json";
|
|
344
|
+
readonly snapshot: "report/snapshot.json";
|
|
345
|
+
readonly labels: "report/labels.json";
|
|
346
|
+
readonly partialFailures: "report/partial-failures.json";
|
|
347
|
+
readonly copy: "report/copy.json";
|
|
348
|
+
readonly scorecard: "report/scorecard.json";
|
|
349
|
+
readonly usage: "usage.json";
|
|
350
|
+
};
|
|
351
|
+
export declare const objectPathPrefix = "objects/sha256/";
|
|
352
|
+
/** Where a derived bundle carries the revision it derives from. Revision
|
|
353
|
+
* ids are case-insensitive ULIDs, lowercased into the bundle path set. */
|
|
354
|
+
export declare const predecessorPrefix: (revisionId: string) => string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type BundleManifest } from './contracts';
|
|
2
|
+
import { type CredentialFinding } from './project';
|
|
3
|
+
import { type Redactions } from './redact';
|
|
4
|
+
export declare const revisionsDir = "REVISIONS";
|
|
5
|
+
/** Thrown when export refuses to write an archive (exit code 1). */
|
|
6
|
+
export declare class ExportBlockedError extends Error {
|
|
7
|
+
readonly findings: readonly CredentialFinding[];
|
|
8
|
+
constructor(message: string, findings?: readonly CredentialFinding[]);
|
|
9
|
+
}
|
|
10
|
+
export type FinalizedRevision = {
|
|
11
|
+
dir: string;
|
|
12
|
+
manifest: BundleManifest;
|
|
13
|
+
};
|
|
14
|
+
/** readFinalizedRevisions lists the finalized revisions of a work
|
|
15
|
+
* directory, oldest first (revision ids sort by creation time). */
|
|
16
|
+
export declare const readFinalizedRevisions: (dir: string) => Promise<FinalizedRevision[]>;
|
|
17
|
+
export type ExportOptions = {
|
|
18
|
+
/** The run's own credentials: found in any exported file, they block. */
|
|
19
|
+
secrets?: readonly string[];
|
|
20
|
+
/** Accept generic credential-pattern findings (`--accept-findings`). */
|
|
21
|
+
acceptFindings?: boolean;
|
|
22
|
+
now?: () => Date;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* finalizeRevision freezes the work directory's current state as a
|
|
26
|
+
* revision, or returns the latest revision when nothing changed since.
|
|
27
|
+
*/
|
|
28
|
+
export declare const finalizeRevision: (dir: string, options?: ExportOptions) => Promise<FinalizedRevision & {
|
|
29
|
+
reused: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
/** The bundle files of a finalized revision directory, manifest included. */
|
|
32
|
+
export declare const readRevisionFiles: (revision: FinalizedRevision) => Promise<Map<string, Buffer>>;
|
|
33
|
+
export type ExportResult = {
|
|
34
|
+
archive: string;
|
|
35
|
+
archiveSha256: string;
|
|
36
|
+
manifest: BundleManifest;
|
|
37
|
+
reusedRevision: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* exportRun packs the work directory's latest finalized revision into a
|
|
41
|
+
* new .aeo.zip archive. It never overwrites an existing archive.
|
|
42
|
+
*/
|
|
43
|
+
export declare const exportRun: (dir: string, { output, redactions, ...options }?: ExportOptions & {
|
|
44
|
+
output?: string;
|
|
45
|
+
redactions?: Redactions;
|
|
46
|
+
}) => Promise<ExportResult>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type BundleEvent, type EventType } from './contracts';
|
|
2
|
+
/** The digest an event carries: its canonical form without the digest. */
|
|
3
|
+
export declare const digestEvent: (event: Omit<BundleEvent, "digest">) => string;
|
|
4
|
+
export type JournalEntry = {
|
|
5
|
+
type: EventType;
|
|
6
|
+
operationId?: string;
|
|
7
|
+
payload?: Record<string, unknown>;
|
|
8
|
+
objects?: readonly string[];
|
|
9
|
+
};
|
|
10
|
+
/** buildEvent chains one entry onto the journal head. */
|
|
11
|
+
export declare const buildEvent: (entry: JournalEntry, head: {
|
|
12
|
+
count: number;
|
|
13
|
+
digest: string | null;
|
|
14
|
+
}, at: string) => BundleEvent;
|
|
15
|
+
export type JournalReading = {
|
|
16
|
+
events: BundleEvent[];
|
|
17
|
+
errors: string[];
|
|
18
|
+
/** A final line without its newline: an append the process lost. */
|
|
19
|
+
tornTail: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
/** readJournal parses and chain-checks events.jsonl text. */
|
|
22
|
+
export declare const readJournal: (text: string) => JournalReading;
|
|
23
|
+
export declare const putObject: (root: string, bytes: string | Buffer) => Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* openJournal opens a run directory's events.jsonl for appending. A torn
|
|
26
|
+
* final line is quarantined beside the journal and recorded as an
|
|
27
|
+
* interruption; any other defect refuses the journal, since resuming over a
|
|
28
|
+
* broken chain would deliver a trace that looks complete and is not.
|
|
29
|
+
*/
|
|
30
|
+
export declare const openJournal: (root: string, { now }?: {
|
|
31
|
+
now?: (() => Date) | undefined;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
append: (entry: JournalEntry) => Promise<BundleEvent>;
|
|
34
|
+
head: () => {
|
|
35
|
+
count: number;
|
|
36
|
+
digest: string | null;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
export type Journal = Awaited<ReturnType<typeof openJournal>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const sha256Hex: (bytes: string | Uint8Array) => string;
|
|
2
|
+
/** sha256 over the strict canonical form of a JSON value. */
|
|
3
|
+
export declare const canonicalDigest: (value: unknown) => string;
|
|
4
|
+
/** parseBundleJson parses a bundle document, refusing duplicate keys. */
|
|
5
|
+
export declare const parseBundleJson: (text: string) => unknown;
|
|
6
|
+
/** encodeBundleJson is how the exporter writes a JSON document: readable
|
|
7
|
+
* bytes whose value is what the digests cover. */
|
|
8
|
+
export declare const encodeBundleJson: (value: unknown) => Buffer;
|