@canonry/canonry 7.128.0 → 7.128.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/assets/{AgentSetupPage-BFO6Jx36.js → AgentSetupPage-BFXD__2X.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-Cwyl4MS5.js → MeasurementPropertyPage-BuVvdugZ.js} +1 -1
- package/assets/assets/{ProjectPage-JCH068IS.js → ProjectPage-er2nBpgg.js} +3 -3
- package/assets/assets/{RunsPage-B56n3Xwl.js → RunsPage-wtzz8XIJ.js} +1 -1
- package/assets/assets/{ServerTrafficSection-JZ7tID1A.js → ServerTrafficSection-oViiKz3j.js} +3 -3
- package/assets/assets/{SettingsPage-C1XRb6UB.js → SettingsPage-CVL6mVTM.js} +1 -1
- package/assets/assets/{TrafficPage-BIbFPquR.js → TrafficPage-drK_F4xY.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-DpJyjmCY.js → TrafficSourceDetailPage-BdvprrAg.js} +1 -1
- package/assets/assets/{index-CmdxqiD3.js → index-Bh4Hdh7M.js} +3 -3
- package/assets/assets/query-client-DTIKbVqE.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BTRnvmn2.js → react-sigma_core.esm.min-DLmrzL1s.js} +1 -1
- package/assets/assets/{server-traffic-D598cM_v.js → server-traffic-BApvbZVl.js} +1 -1
- package/assets/index.html +2 -2
- package/dist/activity-IDVGFHBZ.js +13 -0
- package/dist/{ads-PB3VFUPV.js → ads-MMIVXXYK.js} +4 -4
- package/dist/{agent-VOL7SOEQ.js → agent-3N6J7AP5.js} +8 -8
- package/dist/{agent-ask-F46ERE3W.js → agent-ask-V5NBRKWB.js} +4 -4
- package/dist/{agent-conversations-T5Q43627.js → agent-conversations-6ZKNOOGK.js} +4 -4
- package/dist/{agent-journeys-GVEVJ5J2.js → agent-journeys-R3TB7RS6.js} +4 -4
- package/dist/{agent-memory-XXN7QXNM.js → agent-memory-VKNEXDCF.js} +4 -4
- package/dist/{agent-providers-U6XIM5JI.js → agent-providers-HV3LM656.js} +4 -4
- package/dist/{agent-transcript-ONEA6JBO.js → agent-transcript-5B7ZSNQO.js} +4 -4
- package/dist/{analytics-XWVTM57N.js → analytics-NRYYKO3D.js} +4 -4
- package/dist/{answerability-GNYSELX5.js → answerability-BMPIAEV4.js} +4 -4
- package/dist/{apply-WXW4KWUK.js → apply-52VDVYIV.js} +4 -4
- package/dist/{backfill-SWDR5M4O.js → backfill-QIXONSLO.js} +11 -11
- package/dist/{backlinks-5LIBLUEG.js → backlinks-B4IMH5VN.js} +4 -4
- package/dist/{bing-4U4ODKGV.js → bing-G56ZWW4V.js} +4 -4
- package/dist/{bootstrap-FY72AHVW.js → bootstrap-74GDJENX.js} +11 -11
- package/dist/{cdp-H5WMBYIF.js → cdp-LVPKD5WH.js} +8 -8
- package/dist/{chunk-XONND7NT.js → chunk-2GA43I45.js} +3 -3
- package/dist/{chunk-GTX7C5Y5.js → chunk-2JW5OBUF.js} +53 -25
- package/dist/{chunk-M4IAXLBT.js → chunk-34CPCOQI.js} +3 -3
- package/dist/{chunk-RDCEFEXP.js → chunk-3TCXYRME.js} +3 -3
- package/dist/{chunk-2VDYFOKB.js → chunk-4MEWPJ7A.js} +8 -8
- package/dist/{chunk-6TXHNNKW.js → chunk-4PFBSPFE.js} +4 -4
- package/dist/{chunk-BAO3PHQP.js → chunk-5JQHOPNE.js} +2 -2
- package/dist/{chunk-HS2HYFPX.js → chunk-5LBYOWQZ.js} +4 -4
- package/dist/{chunk-NEJEHRPT.js → chunk-6RE7O724.js} +2 -2
- package/dist/{chunk-5WDU7ZML.js → chunk-7G6PCF4H.js} +6 -6
- package/dist/{chunk-2PLJ4QG5.js → chunk-A4NXXWFC.js} +4 -4
- package/dist/{chunk-K3YHPTKL.js → chunk-AT2LRVEB.js} +2 -2
- package/dist/{chunk-IIL4NKRU.js → chunk-AVLWYL4G.js} +4 -4
- package/dist/{chunk-PWXLKW2F.js → chunk-BHWR4PBF.js} +3 -3
- package/dist/{chunk-X6DD3OIR.js → chunk-DOXBK2KF.js} +23 -3
- package/dist/{chunk-GRX2DION.js → chunk-EOZLVWOC.js} +4 -4
- package/dist/{chunk-GKQ4CYUM.js → chunk-ETTKN2R4.js} +52 -36
- package/dist/{chunk-FMS7CIEK.js → chunk-F56XOHE2.js} +4 -4
- package/dist/{chunk-G2NIO2J3.js → chunk-FQFL223H.js} +2 -2
- package/dist/{chunk-DY2Q3VIM.js → chunk-G7HRY36G.js} +2 -2
- package/dist/{chunk-DWFCDUE2.js → chunk-HOR6MC5A.js} +372 -372
- package/dist/{chunk-HQEH4YRO.js → chunk-I4ITDPK7.js} +1 -1
- package/dist/{chunk-GCBFSIKI.js → chunk-KIJCFPN4.js} +1 -1
- package/dist/{chunk-3GE4Z4J3.js → chunk-KZKPWHJA.js} +5 -5
- package/dist/{chunk-2T4OGJWP.js → chunk-O6RKXY2P.js} +1 -1
- package/dist/{chunk-QWD3ABAW.js → chunk-PGKT42YN.js} +1 -1
- package/dist/{chunk-LWRPSAVC.js → chunk-PM23BRHO.js} +1 -1
- package/dist/{chunk-RMLGMB5B.js → chunk-RG5E54VU.js} +1 -1
- package/dist/{chunk-GW4CL5ZO.js → chunk-STNPEES2.js} +315 -126
- package/dist/{chunk-A36PZKKS.js → chunk-SXLHTMXA.js} +2 -2
- package/dist/{chunk-ZKIEOEUZ.js → chunk-UXCNYSAB.js} +2 -2
- package/dist/{chunk-GPPTW3HU.js → chunk-V42NDP4R.js} +4 -4
- package/dist/{chunk-QXRI6DRE.js → chunk-WCWWHK7P.js} +2331 -1983
- package/dist/{chunk-OKIAF573.js → chunk-XMPXMQ5X.js} +1 -1
- package/dist/{chunk-FIF4N7DP.js → chunk-XTIOFTFS.js} +1 -1
- package/dist/{chunk-3ZNDJ4OM.js → chunk-YDVXZWWF.js} +5 -5
- package/dist/{chunk-425BZPKK.js → chunk-YW4K74WM.js} +4 -4
- package/dist/{chunk-RPAWPX7B.js → chunk-ZXX7DMBJ.js} +1 -1
- package/dist/{citations-622BWQTR.js → citations-CF7AU3KY.js} +5 -5
- package/dist/{cli-catalog-ACK3FVAX.js → cli-catalog-U6WE3BU7.js} +4 -4
- package/dist/cli-commands-DFFJYIZF.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-QYZIWXGC.js → competitor-Q7L6HJ5O.js} +4 -4
- package/dist/{content-PJASAMIV.js → content-5KLBWKCB.js} +4 -4
- package/dist/{dashboard-FQOS3J4B.js → dashboard-KQ3INTH3.js} +7 -7
- package/dist/{demo-ZGGVSKN4.js → demo-5YEH32AM.js} +3 -3
- package/dist/{demo-server-TLXLEPOI.js → demo-server-25MUI3QS.js} +13 -13
- package/dist/{discover-ZLDSXDRI.js → discover-ENDRNDS6.js} +5 -5
- package/dist/{discover-eval-7F5Q3RXS.js → discover-eval-7LJXSHUM.js} +4 -4
- package/dist/{doctor-3KSQZDZ3.js → doctor-3N7TEK5G.js} +4 -4
- package/dist/{evidence-BJZIRJ4U.js → evidence-MAIUNVWP.js} +4 -4
- package/dist/{export-cmd-BYPGV4IU.js → export-cmd-6FJNHZVJ.js} +4 -4
- package/dist/{ga-A3BAZCYH.js → ga-HWFGPMTN.js} +4 -4
- package/dist/{gbp-U6VCRAFN.js → gbp-KIPU2NE6.js} +4 -4
- package/dist/{google-UNQZBUGS.js → google-PKYUSFRS.js} +5 -5
- package/dist/{google-marketing-QSIRQAVH.js → google-marketing-NHQ6VSOK.js} +2 -2
- package/dist/{health-cmd-Z5KTTJQU.js → health-cmd-OGYIMIFA.js} +5 -5
- package/dist/{history-IIGUZMOM.js → history-5NJOUK2A.js} +4 -4
- package/dist/index.d.ts +70 -70
- package/dist/index.js +26 -26
- package/dist/{init-GGKLWNRS.js → init-3JXUT7VJ.js} +13 -13
- package/dist/{insights-UQ234W6T.js → insights-CWTPGOPF.js} +4 -4
- package/dist/intelligence-service-7DFVBFXY.js +15 -0
- package/dist/{journeys-2EZIRL7K.js → journeys-VP7LL2DS.js} +4 -4
- package/dist/{keys-NIAANGXE.js → keys-VBZG6BWU.js} +4 -4
- package/dist/{keyword-LHHNG3GL.js → keyword-M7Y4V5MJ.js} +4 -4
- package/dist/{logs-UFOOIKTC.js → logs-NTFQR3S6.js} +4 -4
- package/dist/{mcp-AZYUFL5V.js → mcp-DUN57Q6H.js} +5 -5
- package/dist/mcp.js +10 -10
- package/dist/{measurement-plan-H2HIHJ3D.js → measurement-plan-SGJ7EDVC.js} +6 -6
- package/dist/{notify-TIE2ZJ26.js → notify-4NOHQ6G4.js} +4 -4
- package/dist/{organic-evidence-BX5MGZTK.js → organic-evidence-5NWLGCGE.js} +4 -4
- package/dist/{overview-MGQE43GU.js → overview-EQ3BTXHC.js} +7 -7
- package/dist/{project-2JL4ZW52.js → project-J43SI3ZT.js} +4 -4
- package/dist/{project-setup-CXOVBRLZ.js → project-setup-5WA4RAN3.js} +4 -4
- package/dist/{query-Q5BF63QF.js → query-NMWKGTJ3.js} +4 -4
- package/dist/{research-RQBZ57W5.js → research-UU2JB4JH.js} +4 -4
- package/dist/{results-export-TVCBJNJN.js → results-export-RQMNBKXT.js} +4 -4
- package/dist/{run-L6WG5WP2.js → run-JTIH3ET5.js} +6 -6
- package/dist/{schedule-3HQMG3AM.js → schedule-YVKS4ILU.js} +4 -4
- package/dist/{search-ZLQE4J66.js → search-XCX3SAOT.js} +4 -4
- package/dist/{serve-VV4SVEJW.js → serve-GOZOQL67.js} +36 -27
- package/dist/{session-IJLUYO4T.js → session-H6N6B6RR.js} +14 -14
- package/dist/{settings-T3U7TQOF.js → settings-2GDLWIBA.js} +4 -4
- package/dist/{sitemaps-UZPLGN4W.js → sitemaps-22O75HMK.js} +4 -4
- package/dist/{skills-P4WSSFPF.js → skills-NSUS2XV2.js} +3 -3
- package/dist/{snapshot-ROJPISJE.js → snapshot-UCITZQFF.js} +4 -4
- package/dist/{src-ZYWTGILQ.js → src-OAVTTKVK.js} +2 -2
- package/dist/{status-43XNR3NS.js → status-KJZSA6KP.js} +6 -6
- package/dist/{support-I7E4I3GG.js → support-PWLEDLQT.js} +2 -2
- package/dist/{technical-aeo-D4F2R6M3.js → technical-aeo-P3R7RR52.js} +4 -4
- package/dist/{telemetry-5DMVDDZI.js → telemetry-LA72RJFS.js} +5 -5
- package/dist/{tools-M534GJMS.js → tools-Q6ITEQ4V.js} +12 -12
- package/dist/{traffic-R2UA27AZ.js → traffic-CRLJJFKS.js} +6 -6
- package/dist/{trends-BXOZIWIE.js → trends-A7ST3WIY.js} +4 -4
- package/dist/{users-X6WJV7VJ.js → users-4H7IS7WC.js} +4 -4
- package/dist/{visibility-stats-MCNUXUCL.js → visibility-stats-F2RUTMYR.js} +5 -5
- package/dist/{wordpress-AMGUJUZX.js → wordpress-EVNS3SAF.js} +4 -4
- package/package.json +1 -1
- package/assets/assets/query-client-BcqjBQN8.js +0 -1
- package/dist/activity-2KFFWLYN.js +0 -13
- package/dist/cli-commands-IM2ISRXZ.js +0 -18
- package/dist/intelligence-service-S3GTOTGQ.js +0 -15
|
@@ -10246,55 +10246,71 @@ var MIN_BRAND_ALIAS_KEY_LENGTH = 3;
|
|
|
10246
10246
|
function usableBrandAliases(aliases) {
|
|
10247
10247
|
return aliases.filter((alias) => brandKeyFromText(alias).length >= MIN_BRAND_ALIAS_KEY_LENGTH);
|
|
10248
10248
|
}
|
|
10249
|
-
function
|
|
10250
|
-
|
|
10251
|
-
const prose = answerProseForMentions(answerText);
|
|
10252
|
-
const matchedTerms = [];
|
|
10253
|
-
const matchedDomainTerms = /* @__PURE__ */ new Set();
|
|
10254
|
-
const extractedAnswerDomains = answerDomains ?? extractDomainsFromText(prose);
|
|
10249
|
+
function compileAnswerMentionMatcher(brandNames, domains) {
|
|
10250
|
+
const normalizedDomains = [];
|
|
10255
10251
|
for (const domain of domains) {
|
|
10256
10252
|
const normalizedDomain = hostOf(domain);
|
|
10257
10253
|
if (!normalizedDomain || !normalizedDomain.includes(".")) continue;
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10254
|
+
normalizedDomains.push({
|
|
10255
|
+
domain: normalizedDomain,
|
|
10256
|
+
lower: normalizedDomain.toLowerCase(),
|
|
10257
|
+
brandKey: brandKeyFromText(brandLabelFromDomain(normalizedDomain))
|
|
10258
|
+
});
|
|
10262
10259
|
}
|
|
10263
10260
|
const candidates = [];
|
|
10264
10261
|
for (const brandName of brandNames) {
|
|
10265
10262
|
if (!brandName || !brandName.trim()) continue;
|
|
10266
10263
|
const key = brandKeyFromText(brandName);
|
|
10267
|
-
if (key) candidates.push({ term: brandName, key });
|
|
10264
|
+
if (key) candidates.push({ term: brandName, lower: brandName.toLowerCase(), key });
|
|
10268
10265
|
}
|
|
10269
10266
|
for (const domain of domains) {
|
|
10270
10267
|
const brand = brandLabelFromDomain(domain);
|
|
10271
10268
|
const key = brandKeyFromText(brand);
|
|
10272
|
-
if (key.length >= MIN_DOMAIN_BRAND_KEY_LENGTH)
|
|
10273
|
-
|
|
10274
|
-
if (candidates.length > 0) {
|
|
10275
|
-
const hits = matchedAliasKeys(
|
|
10276
|
-
compileBrandAliases(candidates.map((c) => c.term)),
|
|
10277
|
-
prose
|
|
10278
|
-
);
|
|
10279
|
-
for (const candidate of candidates) {
|
|
10280
|
-
if (hits.has(candidate.key)) matchedTerms.push(candidate.term);
|
|
10269
|
+
if (key.length >= MIN_DOMAIN_BRAND_KEY_LENGTH) {
|
|
10270
|
+
candidates.push({ term: brand, lower: brand.toLowerCase(), key });
|
|
10281
10271
|
}
|
|
10282
10272
|
}
|
|
10283
|
-
const
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10273
|
+
const aliasMatcher = candidates.length > 0 ? compileBrandAliases(candidates.map((c) => c.term)) : null;
|
|
10274
|
+
return {
|
|
10275
|
+
match(answerText, answerDomains) {
|
|
10276
|
+
if (!answerText) return { mentioned: false, matchedTerms: [] };
|
|
10277
|
+
const prose = answerProseForMentions(answerText);
|
|
10278
|
+
const extractedAnswerDomains = answerDomains ?? extractDomainsFromText(prose);
|
|
10279
|
+
const matchedDomainTerms = /* @__PURE__ */ new Set();
|
|
10280
|
+
const domainBrandKeys = /* @__PURE__ */ new Set();
|
|
10281
|
+
const seenTerms = /* @__PURE__ */ new Set();
|
|
10282
|
+
const unique = [];
|
|
10283
|
+
for (const entry of normalizedDomains) {
|
|
10284
|
+
if (!extractedAnswerDomains.some((candidate) => hostMatchesDomain(candidate, entry.domain))) continue;
|
|
10285
|
+
matchedDomainTerms.add(entry.domain);
|
|
10286
|
+
if (entry.brandKey) domainBrandKeys.add(entry.brandKey);
|
|
10287
|
+
if (!seenTerms.has(entry.lower)) {
|
|
10288
|
+
seenTerms.add(entry.lower);
|
|
10289
|
+
unique.push({ term: entry.domain, isDomain: true, key: entry.brandKey });
|
|
10290
|
+
}
|
|
10291
|
+
}
|
|
10292
|
+
if (aliasMatcher !== null) {
|
|
10293
|
+
const hits = matchedAliasKeys(aliasMatcher, prose);
|
|
10294
|
+
for (const candidate of candidates) {
|
|
10295
|
+
if (!hits.has(candidate.key)) continue;
|
|
10296
|
+
if (seenTerms.has(candidate.lower)) continue;
|
|
10297
|
+
seenTerms.add(candidate.lower);
|
|
10298
|
+
unique.push({ term: candidate.term, isDomain: false, key: candidate.key });
|
|
10299
|
+
}
|
|
10300
|
+
}
|
|
10301
|
+
const dedupedFinal = [];
|
|
10302
|
+
for (const entry of unique) {
|
|
10303
|
+
if (entry.isDomain || matchedDomainTerms.has(entry.term) || !domainBrandKeys.has(entry.key)) {
|
|
10304
|
+
dedupedFinal.push(entry.term);
|
|
10305
|
+
}
|
|
10306
|
+
}
|
|
10307
|
+
return { mentioned: dedupedFinal.length > 0, matchedTerms: dedupedFinal };
|
|
10308
|
+
}
|
|
10309
|
+
};
|
|
10310
|
+
}
|
|
10311
|
+
function extractAnswerMentions(answerText, brandNames, domains, answerDomains) {
|
|
10312
|
+
if (!answerText) return { mentioned: false, matchedTerms: [] };
|
|
10313
|
+
return compileAnswerMentionMatcher(brandNames, domains).match(answerText, answerDomains);
|
|
10298
10314
|
}
|
|
10299
10315
|
function determineAnswerMentioned(answerText, brandNames, domains, answerDomains) {
|
|
10300
10316
|
return extractAnswerMentions(answerText, brandNames, domains, answerDomains).mentioned;
|
|
@@ -30259,7 +30275,7 @@ export {
|
|
|
30259
30275
|
MIN_DOMAIN_BRAND_KEY_LENGTH,
|
|
30260
30276
|
MIN_BRAND_ALIAS_KEY_LENGTH,
|
|
30261
30277
|
usableBrandAliases,
|
|
30262
|
-
|
|
30278
|
+
compileAnswerMentionMatcher,
|
|
30263
30279
|
determineAnswerMentioned,
|
|
30264
30280
|
visibilityStateFromAnswerMentioned,
|
|
30265
30281
|
mentionStateFromAnswerMentioned,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6RKXY2P.js";
|
|
4
4
|
import {
|
|
5
5
|
AGENT_PROVIDER_IDS,
|
|
6
6
|
AgentProviderIds,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveProviderModel,
|
|
23
23
|
schedulableRunKindSchema,
|
|
24
24
|
sentimentEvaluatorProviderSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ETTKN2R4.js";
|
|
26
26
|
|
|
27
27
|
// ../config/src/index.ts
|
|
28
28
|
import { z as z5 } from "zod";
|
|
@@ -1266,7 +1266,7 @@ function writeConfigAtomically(configPath, contents) {
|
|
|
1266
1266
|
function saveConfig(config, configPath = getConfigPath()) {
|
|
1267
1267
|
const configDir = path.dirname(configPath);
|
|
1268
1268
|
if (!fs.existsSync(configDir)) {
|
|
1269
|
-
fs.mkdirSync(configDir, { recursive: true });
|
|
1269
|
+
fs.mkdirSync(configDir, { recursive: true, mode: 448 });
|
|
1270
1270
|
}
|
|
1271
1271
|
const onDisk = loadConfigRaw(configPath);
|
|
1272
1272
|
const merged = onDisk ? { ...onDisk } : {};
|
|
@@ -1294,7 +1294,7 @@ function saveConfigPatch(patch, options = {}) {
|
|
|
1294
1294
|
const configPath = options.configPath ?? getConfigPath();
|
|
1295
1295
|
const configDir = path.dirname(configPath);
|
|
1296
1296
|
if (!fs.existsSync(configDir)) {
|
|
1297
|
-
fs.mkdirSync(configDir, { recursive: true });
|
|
1297
|
+
fs.mkdirSync(configDir, { recursive: true, mode: 448 });
|
|
1298
1298
|
}
|
|
1299
1299
|
let base = {};
|
|
1300
1300
|
let baseRead = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRequestContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PM23BRHO.js";
|
|
4
4
|
import {
|
|
5
5
|
diagnosticIdentity,
|
|
6
6
|
redactLogString,
|
|
7
7
|
redactLogValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ETTKN2R4.js";
|
|
9
9
|
|
|
10
10
|
// ../api-routes/src/runtime-logger.ts
|
|
11
11
|
import { format } from "util";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F56XOHE2.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_NPM_PACKAGE_URL,
|
|
11
11
|
compareSemver,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
updateCheckEnvOptOut,
|
|
19
19
|
upgradeCaveatFor,
|
|
20
20
|
upgradeCommandFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ETTKN2R4.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|