literally-aeo 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/cli.mjs +33 -8
- package/dist/lib/agents/author-validation.js +1 -1
- package/dist/lib/agents/methodology.js +9 -9
- package/dist/lib/bundle/contracts.js +1 -1
- package/dist/lib/bundle/export.js +18 -18
- package/dist/lib/bundle/journal.js +2 -2
- package/dist/lib/bundle/project-journal.js +5 -5
- package/dist/lib/bundle/project.js +16 -16
- package/dist/lib/bundle/read.js +19 -19
- 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-BNX7S4GK.js → chunk-2A4WHTTK.js} +4 -4
- package/dist/lib/chunks/{chunk-RM7U5M5L.js → chunk-2PGI7M2M.js} +1 -1
- package/dist/lib/chunks/{chunk-3USKGGFT.js → chunk-2WBJER62.js} +15 -5
- package/dist/lib/chunks/{chunk-7L4Y6N3V.js → chunk-3G44LCAL.js} +1 -1
- package/dist/lib/chunks/{chunk-YX4EH6FR.js → chunk-3MKOLBFL.js} +1 -1
- package/dist/lib/chunks/{chunk-C2Q7YE7Y.js → chunk-3TY2PVJC.js} +6 -6
- package/dist/lib/chunks/{chunk-P5VVHTZU.js → chunk-54FLGZ6O.js} +1 -1
- package/dist/lib/chunks/{chunk-T4Z3GAEH.js → chunk-5EE3IOLY.js} +1 -1
- package/dist/lib/chunks/{chunk-Q7CWM6LZ.js → chunk-6CUNAPKU.js} +6 -6
- package/dist/lib/chunks/{chunk-7QWT7LFM.js → chunk-6JS5YNEP.js} +2 -2
- package/dist/lib/chunks/{chunk-54GMIPWV.js → chunk-6S5WEUMI.js} +1 -1
- package/dist/lib/chunks/{chunk-KFJ5O5CL.js → chunk-6YRXRPHA.js} +2 -2
- package/dist/lib/chunks/{chunk-MQFFMD4Q.js → chunk-BFXITRRK.js} +1 -1
- package/dist/lib/chunks/{chunk-MMJ5UR2E.js → chunk-C34HMSWI.js} +1 -1
- package/dist/lib/chunks/{chunk-32LZRJ3P.js → chunk-CYTHCMYY.js} +2 -2
- package/dist/lib/chunks/{chunk-BZAPAGXM.js → chunk-D2IMJDXV.js} +1 -1
- package/dist/lib/chunks/{chunk-MKA2EP7M.js → chunk-DVZMYWDP.js} +1 -1
- package/dist/lib/chunks/{chunk-6OURIXQZ.js → chunk-GC2JU4AC.js} +1 -1
- package/dist/lib/chunks/{chunk-R2HFGAOO.js → chunk-GKLCM5K2.js} +2 -2
- package/dist/lib/chunks/{chunk-B6XGNJUU.js → chunk-GS4QCFZT.js} +1 -1
- package/dist/lib/chunks/{chunk-BWI4M36B.js → chunk-GTQORFWR.js} +4 -4
- package/dist/lib/chunks/{chunk-NM2LUMQT.js → chunk-GVOTT6N6.js} +4 -4
- package/dist/lib/chunks/{chunk-65OIYOUH.js → chunk-H6M322OF.js} +3 -3
- package/dist/lib/chunks/{chunk-ARKZ5PJN.js → chunk-JQ4DUGEP.js} +1 -1
- package/dist/lib/chunks/{chunk-STNUFF7H.js → chunk-K6MHEUSS.js} +2 -2
- package/dist/lib/chunks/{chunk-ZM4RHMBI.js → chunk-KBYMGB7T.js} +1 -1
- package/dist/lib/chunks/{chunk-7SA2CRSS.js → chunk-KKMLDVZS.js} +1 -1
- package/dist/lib/chunks/{chunk-7QYZSP7Q.js → chunk-LQIBRJWR.js} +4 -0
- package/dist/lib/chunks/{chunk-RQ6GUJI5.js → chunk-LY3ZVVIH.js} +1 -1
- package/dist/lib/chunks/{chunk-PFG3ESJE.js → chunk-MKCTM3FP.js} +5 -5
- package/dist/lib/chunks/{chunk-GC7DISQO.js → chunk-MMBROBGR.js} +1 -1
- package/dist/lib/chunks/{chunk-LJD37WAV.js → chunk-NQMTIPLI.js} +2 -2
- package/dist/lib/chunks/{chunk-7HCVSLVG.js → chunk-OF3XHSPJ.js} +2 -2
- package/dist/lib/chunks/{chunk-EVEJ3MFU.js → chunk-PJOX6I2E.js} +3 -3
- package/dist/lib/chunks/{chunk-UNNRLD2U.js → chunk-PPKMBXSY.js} +4 -4
- package/dist/lib/chunks/{chunk-6MGXILUJ.js → chunk-PW46TBA4.js} +1 -1
- package/dist/lib/chunks/{chunk-XSOTCSD3.js → chunk-Q4XW3M6Q.js} +3 -3
- package/dist/lib/chunks/{chunk-VPJN2GNC.js → chunk-QMTARDGI.js} +8 -3
- package/dist/lib/chunks/{chunk-D2LJMNH3.js → chunk-R7RHUEF7.js} +2 -2
- package/dist/lib/chunks/{chunk-2ANSPIUT.js → chunk-SI3NDKTW.js} +1 -1
- package/dist/lib/chunks/{chunk-RUSMX6JH.js → chunk-SO72HD6S.js} +3 -3
- package/dist/lib/chunks/{chunk-74K4E3ZS.js → chunk-TTPKYXWX.js} +1 -1
- package/dist/lib/chunks/{chunk-R5NLULQW.js → chunk-UDDH3T6F.js} +6 -1
- package/dist/lib/chunks/{chunk-JREYIUNG.js → chunk-UDHV4G3M.js} +4 -4
- package/dist/lib/chunks/{chunk-ZC4MKS3J.js → chunk-WMHXFOMU.js} +12 -12
- package/dist/lib/chunks/{chunk-ZWWIXFCV.js → chunk-WXWEEFIO.js} +7 -4
- package/dist/lib/chunks/{chunk-746643QV.js → chunk-WZ3OSK3R.js} +1 -1
- package/dist/lib/chunks/{chunk-7K2XT3WI.js → chunk-WZCHP3GN.js} +5 -5
- package/dist/lib/chunks/{chunk-L5HFTFFG.js → chunk-Y3HMJZHX.js} +2 -2
- package/dist/lib/cli/bundle-commands.js +38 -38
- package/dist/lib/cli/run-commands.js +41 -41
- package/dist/lib/cli/status-command.js +25 -25
- package/dist/lib/codex-workflow/aggregate.js +2 -2
- package/dist/lib/codex-workflow/author.js +2 -2
- package/dist/lib/codex-workflow/capture.js +12 -12
- package/dist/lib/codex-workflow/finish.js +11 -11
- package/dist/lib/codex-workflow/loop.js +17 -17
- package/dist/lib/codex-workflow/run-source.js +5 -5
- package/dist/lib/codex-workflow/stage.js +4 -4
- package/dist/lib/engine/audit-file.js +9 -9
- package/dist/lib/engine/author.js +15 -15
- package/dist/lib/engine/cost-estimate.js +9 -9
- package/dist/lib/engine/local-run.js +24 -24
- package/dist/lib/engine/preflight.js +10 -10
- package/dist/lib/engine/rejudge.js +31 -31
- package/dist/lib/engine/run-bindings.js +9 -9
- 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 +25 -25
- package/dist/lib/engine/templates.js +10 -10
- package/dist/lib/grounding/grounding-runtime.js +5 -5
- package/dist/lib/grounding/recorded-tools.js +4 -4
- package/dist/lib/pipeline.js +11 -11
- package/dist/lib/probes/adapters/cli-agents.js +6 -6
- package/dist/lib/probes/adapters/cli-claude-code.js +3 -3
- package/dist/lib/probes/adapters/cli-codex.js +3 -3
- package/dist/lib/probes/adapters/cli-cursor.js +3 -3
- package/dist/lib/probes/adapters/cli-process.js +2 -2
- package/dist/lib/probes/agent-clis.js +7 -7
- package/dist/lib/probes/bindings.js +8 -8
- package/dist/lib/probes/charged-trace.js +9 -9
- package/dist/lib/probes/child-process.js +1 -1
- package/dist/lib/probes/probes.js +9 -9
- 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/dist/types/engine/templates.d.ts +1 -1
- package/package.json +1 -1
- package/resources/guide/OPERATOR.md +4 -1
- package/src/agents/author-validation.ts +10 -4
- package/src/bundle/contracts.ts +1 -1
- package/src/engine/guide/OPERATOR.md +4 -1
- package/src/engine/preflight.ts +4 -1
- package/src/engine/templates.ts +5 -0
- package/src/probes/adapters/cli-claude-code.ts +14 -4
- package/src/probes/child-process.ts +4 -0
|
@@ -278,9 +278,6 @@ export const validateAuthorOutput = async (args: {
|
|
|
278
278
|
|
|
279
279
|
if (
|
|
280
280
|
!underHost(normalizeDomain(config.brand.domain), host) ||
|
|
281
|
-
config.moneyPages.some(
|
|
282
|
-
(url) => moneyPageProblem(url, { domain: host })?.kind === 'off_site',
|
|
283
|
-
) ||
|
|
284
281
|
competitors.some((competitor) =>
|
|
285
282
|
args.protectedClientHosts.some((client) =>
|
|
286
283
|
underHost(normalizeDomain(competitor.domain), normalizeDomain(client)),
|
|
@@ -290,7 +287,7 @@ export const validateAuthorOutput = async (args: {
|
|
|
290
287
|
return {
|
|
291
288
|
flags: [],
|
|
292
289
|
errors: [
|
|
293
|
-
'
|
|
290
|
+
'The brand must belong to the submitted host; other client brands cannot be competitors',
|
|
294
291
|
],
|
|
295
292
|
fatal: 'brief_mismatch',
|
|
296
293
|
};
|
|
@@ -298,9 +295,18 @@ export const validateAuthorOutput = async (args: {
|
|
|
298
295
|
|
|
299
296
|
// The site checks fetch and render every money page: a page the guard
|
|
300
297
|
// would refuse, or more than it may fetch, is the author's to repair.
|
|
298
|
+
// A page on another site is repairable too: the brand check above already
|
|
299
|
+
// refuses the wrong company, and a company's docs often live on a sister
|
|
300
|
+
// domain the site checks may not fetch.
|
|
301
301
|
config.moneyPages.forEach((url, index) => {
|
|
302
302
|
const problem = moneyPageProblem(url, { domain: host });
|
|
303
303
|
|
|
304
|
+
if (problem?.kind === 'off_site') {
|
|
305
|
+
errors.push(
|
|
306
|
+
`moneyPages.${index}: The site checks fetch only ${host} and its subdomains; drop ${url} or replace it with a page on ${host}`,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
304
310
|
if (problem?.kind === 'unsafe_url') {
|
|
305
311
|
errors.push(
|
|
306
312
|
`moneyPages.${index}: Use a public https URL with no port or credentials (${problem.message})`,
|
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.5';
|
|
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.
|
|
@@ -69,7 +69,10 @@ run needs reports present.
|
|
|
69
69
|
|
|
70
70
|
Coding-agent surfaces (Claude Code, Codex, Cursor) are measured with the
|
|
71
71
|
CLI's own login on this machine. They matter most when the buyers are
|
|
72
|
-
developers.
|
|
72
|
+
developers. A logged-in Claude Code tells the model the account's email, so
|
|
73
|
+
when the user audits their own company from their own account, suggest
|
|
74
|
+
`ANTHROPIC_API_KEY`, or `ANTHROPIC_AUTH_TOKEN` with `ANTHROPIC_BASE_URL`
|
|
75
|
+
for a gateway, in `.env` instead. If the user cannot or will not set one up, remove it from
|
|
73
76
|
`surfaces` in `audit.json` in checkpoint 5 and tell them it is now out of
|
|
74
77
|
scope for this audit.
|
|
75
78
|
|
package/src/engine/preflight.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
detectAgentClis,
|
|
8
8
|
versionForSurface,
|
|
9
9
|
} from '../probes/agent-clis';
|
|
10
|
+
import { cliAdapterProfiles } from '../probes/adapters/cli-agents';
|
|
10
11
|
import {
|
|
11
12
|
bindingOf,
|
|
12
13
|
probeAdapterProfiles,
|
|
@@ -81,7 +82,9 @@ export const credentialSettingNames: readonly string[] = [
|
|
|
81
82
|
export const runSettingNames = [
|
|
82
83
|
gatewaySetting,
|
|
83
84
|
...overviewSettings,
|
|
84
|
-
...Object.values(
|
|
85
|
+
...Object.values(cliAdapterProfiles).flatMap((profile) =>
|
|
86
|
+
profile.settings.map((setting) => setting.name),
|
|
87
|
+
),
|
|
85
88
|
];
|
|
86
89
|
|
|
87
90
|
// A coding agent's probes bill its own plan, outside the run's cap; an
|
package/src/engine/templates.ts
CHANGED
|
@@ -71,4 +71,9 @@ DATAFORSEO_PASSWORD=
|
|
|
71
71
|
CLAUDE_CODE_OAUTH_TOKEN=
|
|
72
72
|
OPENAI_API_KEY=
|
|
73
73
|
CURSOR_API_KEY=
|
|
74
|
+
|
|
75
|
+
# Claude Code through an Anthropic-compatible gateway, with no account
|
|
76
|
+
# identity (a logged-in Claude Code tells the model the account's email).
|
|
77
|
+
ANTHROPIC_AUTH_TOKEN=
|
|
78
|
+
ANTHROPIC_BASE_URL=
|
|
74
79
|
`;
|
|
@@ -6,7 +6,6 @@ import { parseClaudeCodeStream } from '../agent-cli-parsers';
|
|
|
6
6
|
import { childEnv } from '../child-process';
|
|
7
7
|
import {
|
|
8
8
|
attachCliOutput,
|
|
9
|
-
authSettingNames,
|
|
10
9
|
execCli,
|
|
11
10
|
withScratchDir,
|
|
12
11
|
type AgentProbeFn,
|
|
@@ -23,6 +22,17 @@ export const claudeCodeProfile: ProbeAdapterProfile = {
|
|
|
23
22
|
group: 'auth',
|
|
24
23
|
billsAccount: 'Anthropic',
|
|
25
24
|
},
|
|
25
|
+
// A bearer token for an Anthropic-compatible gateway at
|
|
26
|
+
// ANTHROPIC_BASE_URL. Unlike the CLI's own login, it carries no account
|
|
27
|
+
// identity: a logged-in Claude Code tells the model the account's email,
|
|
28
|
+
// which tilts an audit run from the audited company's own account.
|
|
29
|
+
{
|
|
30
|
+
name: 'ANTHROPIC_AUTH_TOKEN',
|
|
31
|
+
secret: true,
|
|
32
|
+
group: 'auth',
|
|
33
|
+
billsAccount: 'gateway',
|
|
34
|
+
},
|
|
35
|
+
{ name: 'ANTHROPIC_BASE_URL', secret: false },
|
|
26
36
|
],
|
|
27
37
|
pool: 'claude_code',
|
|
28
38
|
retry: 'agent',
|
|
@@ -31,10 +41,10 @@ export const claudeCodeProfile: ProbeAdapterProfile = {
|
|
|
31
41
|
resolvesRedirects: false,
|
|
32
42
|
};
|
|
33
43
|
|
|
34
|
-
// Claude Code's
|
|
35
|
-
//
|
|
44
|
+
// Claude Code's settings and its config directory, nothing else from the
|
|
45
|
+
// parent (§4.5).
|
|
36
46
|
const claudeEnvKeys = [
|
|
37
|
-
...
|
|
47
|
+
...claudeCodeProfile.settings.map((setting) => setting.name),
|
|
38
48
|
'CLAUDE_CONFIG_DIR',
|
|
39
49
|
];
|
|
40
50
|
|
|
@@ -237,6 +237,10 @@ export const runChild = (
|
|
|
237
237
|
const baseEnvKeys = [
|
|
238
238
|
'PATH',
|
|
239
239
|
'HOME',
|
|
240
|
+
// macOS: a CLI's own login lives in the login Keychain, which Claude Code
|
|
241
|
+
// looks up by account name; without these it reports "Not logged in".
|
|
242
|
+
'USER',
|
|
243
|
+
'LOGNAME',
|
|
240
244
|
'TMPDIR',
|
|
241
245
|
'LANG',
|
|
242
246
|
'LC_ALL',
|