literally-aeo 0.4.4 → 0.4.6
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/dist/cli.mjs +13 -5
- package/dist/lib/agents/author-validation.js +2 -1
- package/dist/lib/agents/methodology.js +4 -4
- package/dist/lib/bundle/contracts.js +1 -1
- package/dist/lib/bundle/export.js +13 -13
- package/dist/lib/bundle/journal.js +2 -2
- package/dist/lib/bundle/project-journal.js +5 -5
- package/dist/lib/bundle/project.js +11 -11
- package/dist/lib/bundle/read.js +14 -14
- package/dist/lib/bundle/recorder.js +3 -3
- package/dist/lib/bundle/redact.js +2 -2
- package/dist/lib/bundle/trace-coverage.js +2 -2
- package/dist/lib/bundle/verify-integrity.js +4 -4
- package/dist/lib/bundle/verify-measurement.js +2 -2
- package/dist/lib/bundle/verify-report.js +3 -3
- package/dist/lib/bundle/verify.js +8 -8
- package/dist/lib/checks/run-checks.js +4 -4
- package/dist/lib/chunks/{chunk-5YXU5WAK.js → chunk-464Z7TPX.js} +1 -1
- package/dist/lib/chunks/{chunk-JMWS4PZR.js → chunk-4I356KHY.js} +1 -1
- package/dist/lib/chunks/{chunk-YGW3HTTH.js → chunk-55YNYIQX.js} +1 -1
- package/dist/lib/chunks/{chunk-WQXXNDBO.js → chunk-62JSQUFY.js} +4 -4
- package/dist/lib/chunks/{chunk-L5FM3KGF.js → chunk-6F6XY5SH.js} +1 -1
- package/dist/lib/chunks/{chunk-22QIMTQJ.js → chunk-73IVTL6N.js} +1 -1
- package/dist/lib/chunks/{chunk-4VURIRL7.js → chunk-7LWL5ZHA.js} +4 -4
- package/dist/lib/chunks/{chunk-YHHWIOO5.js → chunk-7ONH4GCQ.js} +6 -6
- package/dist/lib/chunks/{chunk-3RSF2PY4.js → chunk-7VA7O5VT.js} +1 -1
- package/dist/lib/chunks/{chunk-6ZZ4MHYW.js → chunk-BWAV7HSA.js} +3 -3
- package/dist/lib/chunks/{chunk-WZ5A77WN.js → chunk-CFDH4ABD.js} +1 -1
- package/dist/lib/chunks/{chunk-BC53CVOM.js → chunk-CRN4WX5I.js} +1 -1
- package/dist/lib/chunks/{chunk-GZRG3QSS.js → chunk-DGHYZ5XD.js} +1 -1
- package/dist/lib/chunks/{chunk-4M6CQKSH.js → chunk-DKMIYGKZ.js} +5 -5
- package/dist/lib/chunks/{chunk-DH7D4KNR.js → chunk-DQS5MCF6.js} +12 -12
- package/dist/lib/chunks/{chunk-4SPKLFJK.js → chunk-GQWGSSG5.js} +4 -4
- package/dist/lib/chunks/{chunk-RF2V6XQ3.js → chunk-H5PJI75Z.js} +1 -1
- package/dist/lib/chunks/{chunk-J66AN3MF.js → chunk-HESEELME.js} +5 -5
- package/dist/lib/chunks/{chunk-C34NR35E.js → chunk-HFNXU3X4.js} +1 -1
- package/dist/lib/chunks/{chunk-FX4Y7GVR.js → chunk-IAFJESZV.js} +4 -4
- package/dist/lib/chunks/{chunk-KNX75J6T.js → chunk-J3RUIQNT.js} +3 -3
- package/dist/lib/chunks/{chunk-OSELZPPA.js → chunk-JKUC22YE.js} +1 -1
- package/dist/lib/chunks/{chunk-GVDOWLYF.js → chunk-JXU56E7J.js} +1 -1
- package/dist/lib/chunks/{chunk-V4VBRJEK.js → chunk-KGOBE326.js} +1 -1
- package/dist/lib/chunks/{chunk-NAFSRHVZ.js → chunk-LKS4HTW2.js} +2 -2
- package/dist/lib/chunks/{chunk-EI6P2B4R.js → chunk-M2MS2HHA.js} +1 -1
- package/dist/lib/chunks/{chunk-ALORJCG4.js → chunk-M46I2ZMV.js} +4 -4
- package/dist/lib/chunks/{chunk-OXNS5JNZ.js → chunk-NDGBPO3R.js} +2 -2
- package/dist/lib/chunks/{chunk-2S2NKIK2.js → chunk-NNMTAUIN.js} +1 -1
- package/dist/lib/chunks/{chunk-2IZ2LTBQ.js → chunk-OED3HFLN.js} +4 -4
- package/dist/lib/chunks/{chunk-ATYDD4EM.js → chunk-PQITX7CL.js} +2 -2
- package/dist/lib/chunks/{chunk-R5VAHYBF.js → chunk-PYTIF76T.js} +1 -1
- package/dist/lib/chunks/{chunk-MI4GIMHK.js → chunk-QJX7CAOV.js} +1 -1
- package/dist/lib/chunks/{chunk-AQVARUFR.js → chunk-RDBE4UB6.js} +6 -6
- package/dist/lib/chunks/{chunk-ZWWIXFCV.js → chunk-TOZM253W.js} +16 -4
- package/dist/lib/chunks/{chunk-SVVA7MIE.js → chunk-TSPBMBHK.js} +1 -1
- package/dist/lib/chunks/{chunk-AR2LGUP4.js → chunk-U2PFCXKF.js} +2 -2
- package/dist/lib/chunks/{chunk-AC5YND5N.js → chunk-UK75U54G.js} +1 -1
- package/dist/lib/chunks/{chunk-DOV622W3.js → chunk-X2CHE3M6.js} +2 -2
- package/dist/lib/chunks/{chunk-6OV2GIKK.js → chunk-XXSZSFXQ.js} +5 -5
- package/dist/lib/chunks/{chunk-GV47I7MF.js → chunk-XZXXDILU.js} +4 -4
- package/dist/lib/chunks/{chunk-MKA2EP7M.js → chunk-YX4JY3AG.js} +1 -1
- package/dist/lib/cli/bundle-commands.js +33 -33
- package/dist/lib/cli/run-commands.js +36 -36
- package/dist/lib/cli/status-command.js +20 -20
- package/dist/lib/codex-workflow/aggregate.js +2 -2
- package/dist/lib/codex-workflow/author.js +3 -2
- package/dist/lib/codex-workflow/capture.js +6 -6
- package/dist/lib/codex-workflow/finish.js +7 -7
- package/dist/lib/codex-workflow/loop.js +13 -13
- package/dist/lib/codex-workflow/run-source.js +5 -5
- package/dist/lib/codex-workflow/stage.js +4 -3
- package/dist/lib/engine/audit-file.js +4 -4
- package/dist/lib/engine/author.js +10 -10
- package/dist/lib/engine/cost-estimate.js +4 -4
- package/dist/lib/engine/local-run.js +19 -19
- package/dist/lib/engine/preflight.js +4 -4
- package/dist/lib/engine/rejudge.js +26 -26
- package/dist/lib/engine/run-bindings.js +4 -4
- package/dist/lib/engine/run-method.js +2 -2
- package/dist/lib/engine/run-models.js +4 -4
- package/dist/lib/engine/run-status.js +20 -20
- package/dist/lib/engine/templates.js +5 -5
- package/dist/lib/grounding/grounding-runtime.js +6 -6
- package/dist/lib/grounding/recorded-tools.js +4 -4
- package/dist/lib/pipeline.js +5 -5
- package/dist/lib/probes/bindings.js +3 -3
- package/dist/lib/probes/charged-trace.js +4 -4
- package/dist/lib/probes/probes.js +4 -4
- package/dist/lib/runner.js +2 -2
- package/dist/lib/viewer/presentation.js +2 -2
- package/dist/lib/viewer/server.js +10 -10
- package/dist/types/bundle/contracts.d.ts +1 -1
- package/package.json +1 -1
- package/resources/author/RULES.md +2 -0
- package/src/agents/author-validation.ts +22 -4
- package/src/author/RULES.md +2 -0
- package/src/bundle/contracts.ts +1 -1
- package/dist/lib/chunks/{chunk-U6I2RU4Z.js → chunk-W34DBXJ6.js} +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startViewer
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-J3RUIQNT.js";
|
|
4
4
|
import "../chunks/chunk-VFN2J4Z3.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-HFNXU3X4.js";
|
|
6
6
|
import "../chunks/chunk-JQFLWUCA.js";
|
|
7
7
|
import "../chunks/chunk-BWBPEXEU.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-XXSZSFXQ.js";
|
|
9
|
+
import "../chunks/chunk-BWAV7HSA.js";
|
|
10
|
+
import "../chunks/chunk-DGHYZ5XD.js";
|
|
11
|
+
import "../chunks/chunk-U2PFCXKF.js";
|
|
12
12
|
import "../chunks/chunk-M3WZCV65.js";
|
|
13
|
-
import "../chunks/chunk-
|
|
13
|
+
import "../chunks/chunk-UK75U54G.js";
|
|
14
14
|
import "../chunks/chunk-77EQ3RT6.js";
|
|
15
15
|
import "../chunks/chunk-SFPPZGTA.js";
|
|
16
16
|
import "../chunks/chunk-SN3DKEOY.js";
|
|
@@ -18,8 +18,8 @@ import "../chunks/chunk-BYPCNCN3.js";
|
|
|
18
18
|
import "../chunks/chunk-JEAZREDN.js";
|
|
19
19
|
import "../chunks/chunk-JHOLYLI4.js";
|
|
20
20
|
import "../chunks/chunk-SREGO3PU.js";
|
|
21
|
-
import "../chunks/chunk-
|
|
22
|
-
import "../chunks/chunk-
|
|
21
|
+
import "../chunks/chunk-CFDH4ABD.js";
|
|
22
|
+
import "../chunks/chunk-QJX7CAOV.js";
|
|
23
23
|
import "../chunks/chunk-W46Y7KBR.js";
|
|
24
24
|
import "../chunks/chunk-2QLAFBCG.js";
|
|
25
25
|
import "../chunks/chunk-YQD5ITKI.js";
|
|
@@ -31,7 +31,7 @@ import "../chunks/chunk-UWXR24TV.js";
|
|
|
31
31
|
import "../chunks/chunk-TCOH3FGE.js";
|
|
32
32
|
import "../chunks/chunk-XPUCJQIB.js";
|
|
33
33
|
import "../chunks/chunk-CRVCWDH6.js";
|
|
34
|
-
import "../chunks/chunk-
|
|
34
|
+
import "../chunks/chunk-CRN4WX5I.js";
|
|
35
35
|
import "../chunks/chunk-WSFXGX7S.js";
|
|
36
36
|
import "../chunks/chunk-7O3M6I2X.js";
|
|
37
37
|
import "../chunks/chunk-E6NQQU6V.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const toolId = "literally-aeo";
|
|
3
|
-
export declare const toolVersion = "0.4.
|
|
3
|
+
export declare const toolVersion = "0.4.6";
|
|
4
4
|
export declare const bundleSchemaVersion = 3;
|
|
5
5
|
export declare const readableBundleSchemaVersions: readonly number[];
|
|
6
6
|
export declare const traceSchemaVersion = 1;
|
package/package.json
CHANGED
|
@@ -37,6 +37,8 @@ competitors. Prompts form a quarterly baseline and must not ask about the
|
|
|
37
37
|
submitted brand. productBrief is a fallible, non-exhaustive planning summary,
|
|
38
38
|
never the authority for factual verdicts. moneyPages must be docs,
|
|
39
39
|
pricing, or comparison pages on the submitted website or its subdomains.
|
|
40
|
+
geography is one two-letter country code, never a region such as `eu`: for a
|
|
41
|
+
company that sells across several countries, use the one it sells into most.
|
|
40
42
|
Do not copy another brand's identity from an example.
|
|
41
43
|
|
|
42
44
|
Awareness wording checked by the host is defined in banlist.json awarenessPatterns;
|
|
@@ -2,6 +2,10 @@ import { aeoAuditConfigSchema, type AeoAuditConfig } from '../schema';
|
|
|
2
2
|
import { normalizeDomain } from '../analysis/scoring';
|
|
3
3
|
import banlist from '../author/banlist.json';
|
|
4
4
|
import { maxMoneyPages, moneyPageProblem } from '../checks/money-pages';
|
|
5
|
+
import {
|
|
6
|
+
resolveDataForSeoLocale,
|
|
7
|
+
supportedMarkets,
|
|
8
|
+
} from '../probes/dataforseo-locale';
|
|
5
9
|
import { canonicalResearchUrl, fetchGroundingSource } from '../grounding/fetch';
|
|
6
10
|
import { SourceRetrievalError } from '../grounding/guarded-request';
|
|
7
11
|
import { credentialDetected } from './credentials';
|
|
@@ -278,9 +282,6 @@ export const validateAuthorOutput = async (args: {
|
|
|
278
282
|
|
|
279
283
|
if (
|
|
280
284
|
!underHost(normalizeDomain(config.brand.domain), host) ||
|
|
281
|
-
config.moneyPages.some(
|
|
282
|
-
(url) => moneyPageProblem(url, { domain: host })?.kind === 'off_site',
|
|
283
|
-
) ||
|
|
284
285
|
competitors.some((competitor) =>
|
|
285
286
|
args.protectedClientHosts.some((client) =>
|
|
286
287
|
underHost(normalizeDomain(competitor.domain), normalizeDomain(client)),
|
|
@@ -290,7 +291,7 @@ export const validateAuthorOutput = async (args: {
|
|
|
290
291
|
return {
|
|
291
292
|
flags: [],
|
|
292
293
|
errors: [
|
|
293
|
-
'
|
|
294
|
+
'The brand must belong to the submitted host; other client brands cannot be competitors',
|
|
294
295
|
],
|
|
295
296
|
fatal: 'brief_mismatch',
|
|
296
297
|
};
|
|
@@ -298,9 +299,18 @@ export const validateAuthorOutput = async (args: {
|
|
|
298
299
|
|
|
299
300
|
// The site checks fetch and render every money page: a page the guard
|
|
300
301
|
// would refuse, or more than it may fetch, is the author's to repair.
|
|
302
|
+
// A page on another site is repairable too: the brand check above already
|
|
303
|
+
// refuses the wrong company, and a company's docs often live on a sister
|
|
304
|
+
// domain the site checks may not fetch.
|
|
301
305
|
config.moneyPages.forEach((url, index) => {
|
|
302
306
|
const problem = moneyPageProblem(url, { domain: host });
|
|
303
307
|
|
|
308
|
+
if (problem?.kind === 'off_site') {
|
|
309
|
+
errors.push(
|
|
310
|
+
`moneyPages.${index}: The site checks fetch only ${host} and its subdomains; drop ${url} or replace it with a page on ${host}`,
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
304
314
|
if (problem?.kind === 'unsafe_url') {
|
|
305
315
|
errors.push(
|
|
306
316
|
`moneyPages.${index}: Use a public https URL with no port or credentials (${problem.message})`,
|
|
@@ -308,6 +318,14 @@ export const validateAuthorOutput = async (args: {
|
|
|
308
318
|
}
|
|
309
319
|
});
|
|
310
320
|
|
|
321
|
+
// Google AI Overviews and grounding search are placed in this market; a
|
|
322
|
+
// config the engine cannot place is refused at approval, past any repair.
|
|
323
|
+
if (!resolveDataForSeoLocale(config.geography, config.language)) {
|
|
324
|
+
errors.push(
|
|
325
|
+
`geography: No search market for geography ${JSON.stringify(config.geography)} and language ${JSON.stringify(config.language)}. Use one country code, the country the company sells into most. ${supportedMarkets}`,
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
311
329
|
if (config.moneyPages.length > maxMoneyPages) {
|
|
312
330
|
errors.push(
|
|
313
331
|
`moneyPages: Keep the ${maxMoneyPages} pages that matter most; the site checks fetch at most ${maxMoneyPages}.`,
|
package/src/author/RULES.md
CHANGED
|
@@ -37,6 +37,8 @@ competitors. Prompts form a quarterly baseline and must not ask about the
|
|
|
37
37
|
submitted brand. productBrief is a fallible, non-exhaustive planning summary,
|
|
38
38
|
never the authority for factual verdicts. moneyPages must be docs,
|
|
39
39
|
pricing, or comparison pages on the submitted website or its subdomains.
|
|
40
|
+
geography is one two-letter country code, never a region such as `eu`: for a
|
|
41
|
+
company that sells across several countries, use the one it sells into most.
|
|
40
42
|
Do not copy another brand's identity from an example.
|
|
41
43
|
|
|
42
44
|
Awareness wording checked by the host is defined in banlist.json awarenessPatterns;
|
package/src/bundle/contracts.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { canonicalDigest } from './json';
|
|
|
13
13
|
export const toolId = 'literally-aeo';
|
|
14
14
|
// The package version, recorded in every journal and bundle; the build and
|
|
15
15
|
// version.spec.ts refuse a mismatch with package.json.
|
|
16
|
-
export const toolVersion = '0.4.
|
|
16
|
+
export const toolVersion = '0.4.6';
|
|
17
17
|
// Version 2: config.json may set chatProbes, and agentProbes.runsPerPrompt
|
|
18
18
|
// above 2. A verifier that reads only version 1 then refuses the bundle as
|
|
19
19
|
// unsupported instead of dropping its depth and failing it.
|
|
@@ -11,11 +11,6 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
deriveOutreachTargets
|
|
13
13
|
} from "./chunk-O2DKE2RO.js";
|
|
14
|
-
import {
|
|
15
|
-
consumerMarketProblem,
|
|
16
|
-
resolveDataForSeoLocale,
|
|
17
|
-
supportedMarkets
|
|
18
|
-
} from "./chunk-GC4XJYQW.js";
|
|
19
14
|
import {
|
|
20
15
|
competitorClassifierVersion
|
|
21
16
|
} from "./chunk-YIEAIIND.js";
|
|
@@ -31,6 +26,11 @@ import {
|
|
|
31
26
|
import {
|
|
32
27
|
domainClassifierVersion
|
|
33
28
|
} from "./chunk-GZC3ASNL.js";
|
|
29
|
+
import {
|
|
30
|
+
consumerMarketProblem,
|
|
31
|
+
resolveDataForSeoLocale,
|
|
32
|
+
supportedMarkets
|
|
33
|
+
} from "./chunk-GC4XJYQW.js";
|
|
34
34
|
import {
|
|
35
35
|
plannedProbeUnitsForSection
|
|
36
36
|
} from "./chunk-DHQKAIOP.js";
|