@krisada-m/ksd-intelligence 0.0.0-stage → 1.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/.antigravity-plugin/plugin.json +20 -0
- package/LICENSE +21 -0
- package/README.md +195 -2
- package/agy-skills/erosiano-review/SKILL.md +17 -0
- package/dist/adapters/agy/skills.js +252 -0
- package/dist/adapters/cli/check-changed.js +3 -0
- package/dist/adapters/cli/main.js +1013 -0
- package/dist/adapters/cli/policy-bin.js +10 -0
- package/dist/adapters/cli/review-verdict.js +3 -0
- package/dist/adapters/omp/extension.js +884 -0
- package/dist/adapters/omp/skills.js +130 -0
- package/dist/adapters/ui/hud.js +389 -0
- package/dist/adapters/ui/tree.js +471 -0
- package/dist/core/audit/index.js +2 -0
- package/dist/core/audit/log.js +505 -0
- package/dist/core/audit/summary.js +188 -0
- package/dist/core/changes/changes.js +591 -0
- package/dist/core/changes/git.js +266 -0
- package/dist/core/changes/plan.js +109 -0
- package/dist/core/changes/render.js +356 -0
- package/dist/core/engine/build.js +178 -0
- package/dist/core/engine/child.js +389 -0
- package/dist/core/engine/host.js +206 -0
- package/dist/core/engine/lock.js +133 -0
- package/dist/core/engine/protocol.js +43 -0
- package/dist/core/engine/runtime.js +44 -0
- package/dist/core/engine/status.js +452 -0
- package/dist/core/engine/typescript.js +194 -0
- package/dist/core/engine/workspace.js +72 -0
- package/dist/core/graph/graph.js +127 -0
- package/dist/core/graph/limits.js +16 -0
- package/dist/core/impact/query.js +1292 -0
- package/dist/core/impact/render.js +590 -0
- package/dist/core/impact/session.js +694 -0
- package/dist/core/indexing/declarations.js +455 -0
- package/dist/core/indexing/differential.js +345 -0
- package/dist/core/indexing/doctor.js +120 -0
- package/dist/core/indexing/indexer.js +811 -0
- package/dist/core/indexing/keys.js +451 -0
- package/dist/core/indexing/lexical.js +212 -0
- package/dist/core/indexing/packages.js +57 -0
- package/dist/core/indexing/program.js +171 -0
- package/dist/core/indexing/resolve.js +1004 -0
- package/dist/core/indexing/stamp.js +52 -0
- package/dist/core/indexing/surface.js +335 -0
- package/dist/core/indexing/ui-progress.js +37 -0
- package/dist/core/indexing/verify.js +76 -0
- package/dist/core/kernel/config.js +383 -0
- package/dist/core/kernel/glob.js +105 -0
- package/dist/core/kernel/guards.js +4 -0
- package/dist/core/kernel/types.js +3 -0
- package/dist/core/kernel/verdict.js +142 -0
- package/dist/core/knowledge/anchors.js +139 -0
- package/dist/core/knowledge/knowledge.js +95 -0
- package/dist/core/knowledge/learning.js +102 -0
- package/dist/core/knowledge/render.js +76 -0
- package/dist/core/knowledge/store.js +109 -0
- package/dist/core/knowledge/yaml.js +87 -0
- package/dist/core/search/lexical.js +382 -0
- package/dist/core/search/render.js +98 -0
- package/dist/core/search/segments.js +118 -0
- package/dist/core/verify/parse.js +127 -0
- package/dist/core/verify/render.js +67 -0
- package/dist/core/verify/report.js +40 -0
- package/dist/core/verify/revision.js +79 -0
- package/dist/core/verify/run.js +117 -0
- package/dist/core/verify/store.js +66 -0
- package/dist/core/verify/verify.js +173 -0
- package/dist/core/workspace/init.js +267 -0
- package/dist/core/workspace/probe.js +56 -0
- package/dist/core/workspace/scan.js +420 -0
- package/dist/engineering/baseline.js +337 -0
- package/dist/engineering/change-scope.js +500 -0
- package/dist/engineering/check-changed.js +40 -0
- package/dist/engineering/config.js +129 -0
- package/dist/engineering/dist/policy.d.ts +17 -0
- package/dist/engineering/dist/policy.js +150 -0
- package/dist/engineering/dist/runtime.d.ts +40 -0
- package/dist/engineering/dist/runtime.js +77 -0
- package/dist/engineering/dist/sdlc.d.ts +7 -0
- package/dist/engineering/dist/sdlc.js +27 -0
- package/dist/engineering/eslint-rules/index.js +107 -0
- package/dist/engineering/index.d.ts +7 -0
- package/dist/engineering/index.js +319 -0
- package/dist/engineering/intelligence.js +44 -0
- package/dist/engineering/package.json +36 -0
- package/dist/engineering/policy.js +2 -0
- package/dist/engineering/practice-tool.js +72 -0
- package/dist/engineering/practices.js +283 -0
- package/dist/engineering/practices.json +2453 -0
- package/dist/engineering/review-verdict.js +262 -0
- package/dist/engineering/sdlc.js +2 -0
- package/dist/index.js +20 -0
- package/dist/storage/records.js +245 -0
- package/dist/storage/sqlite.js +314 -0
- package/dist/workflow/catalog.js +69 -0
- package/dist/workflow/classify.js +55 -0
- package/dist/workflow/loader.js +140 -0
- package/dist/workflow/packs.js +469 -0
- package/dist/workflow/registry.js +359 -0
- package/dist/workflow/render.js +61 -0
- package/dist/workflow/router.js +141 -0
- package/dist/workflow/sources.js +229 -0
- package/dist/workflow/types.js +44 -0
- package/dist/workflow/updates.js +532 -0
- package/engineering.lock.json +94 -0
- package/package.json +81 -4
- package/rules/engineering.md +20 -0
- package/scripts/agy-mcp.mjs +27 -0
- package/scripts/mcp/engineering.mjs +91 -0
- package/scripts/mcp/stdio.mjs +304 -0
- package/scripts/mcp/tools.mjs +491 -0
- package/skills/ksd-intelligence/SKILL.md +54 -0
- package/skills/matt-sdlc/SKILL.md +42 -0
- package/skills/osmani-quality/SKILL.md +38 -0
- package/skills/poteto-mode/SKILL.md +40 -0
- package/skills/pstack-analysis/SKILL.md +36 -0
- package/skills.lock.json +71 -0
- package/skills.registry.json +181 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { existsSync, readdirSync, readFileSync, realpathSync, statSync } from 'node:fs';
|
|
3
|
+
import { chmod, mkdir, readdir, readFile, writeFile } from 'node:fs/promises';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
5
|
+
import { dirname, join, posix, resolve } from 'node:path';
|
|
6
|
+
import { defaultConfig, parseProjectConfig } from '../kernel/config.js';
|
|
7
|
+
import { matchAny } from '../kernel/glob.js';
|
|
8
|
+
import { isRecord } from '../kernel/guards.js';
|
|
9
|
+
export function computeRepoId(rootPath) {
|
|
10
|
+
const real = realpathSync(rootPath);
|
|
11
|
+
return createHash('sha256').update(real).digest('hex').slice(0, 16);
|
|
12
|
+
}
|
|
13
|
+
export function resolveCacheDir(repoId, customHome) {
|
|
14
|
+
const base = customHome ?? homedir();
|
|
15
|
+
return join(base, '.cache', 'ksd-intelligence', repoId);
|
|
16
|
+
}
|
|
17
|
+
export function findGitRoot(startDir) {
|
|
18
|
+
let current = startDir;
|
|
19
|
+
while (true) {
|
|
20
|
+
if (existsSync(join(current, '.git'))) {
|
|
21
|
+
return current;
|
|
22
|
+
}
|
|
23
|
+
const parent = dirname(current);
|
|
24
|
+
if (parent === current) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
current = parent;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const SKIP_DIRS = new Set(['node_modules', 'dist', 'dist-test', '.git']);
|
|
31
|
+
const TSCONFIG_FILE = /^(?:tsconfig(?:\..+)?|jsconfig)\.json$/;
|
|
32
|
+
function stripJsonComments(raw) {
|
|
33
|
+
return raw.replace(/\\"|"(?:\\"|[^"])*"|(\/\/.*|\/\*[\s\S]*?\*\/)/g, (match, comment) => comment ? '' : match);
|
|
34
|
+
}
|
|
35
|
+
/** Top-level directories owned by any tsconfig in `rootPath` (D57). */
|
|
36
|
+
export function tsconfigOwnedDirs(rootPath) {
|
|
37
|
+
const configs = [];
|
|
38
|
+
const walk = (relDir, depth) => {
|
|
39
|
+
if (depth > 3)
|
|
40
|
+
return;
|
|
41
|
+
let entries;
|
|
42
|
+
try {
|
|
43
|
+
entries = readdirSync(join(rootPath, relDir), { withFileTypes: true });
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
for (const entry of entries) {
|
|
49
|
+
if (entry.name.startsWith('.') || SKIP_DIRS.has(entry.name))
|
|
50
|
+
continue;
|
|
51
|
+
const relPath = relDir === '' ? entry.name : `${relDir}/${entry.name}`;
|
|
52
|
+
if (entry.isDirectory()) {
|
|
53
|
+
walk(relPath, depth + 1);
|
|
54
|
+
}
|
|
55
|
+
else if (entry.isFile() && TSCONFIG_FILE.test(entry.name)) {
|
|
56
|
+
configs.push(relPath);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
walk('', 0);
|
|
61
|
+
const owned = new Set();
|
|
62
|
+
const isDirectory = (dir) => {
|
|
63
|
+
try {
|
|
64
|
+
return statSync(join(rootPath, dir)).isDirectory();
|
|
65
|
+
}
|
|
66
|
+
catch {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
for (const relConfig of configs) {
|
|
71
|
+
if (relConfig === 'tsconfig.base.json' && configs.length > 1)
|
|
72
|
+
continue;
|
|
73
|
+
const configDir = dirname(relConfig);
|
|
74
|
+
if (configDir !== '.') {
|
|
75
|
+
const top = configDir.split('/')[0];
|
|
76
|
+
if (top && !SKIP_DIRS.has(top) && isDirectory(top))
|
|
77
|
+
owned.add(top);
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
const raw = readFileSync(join(rootPath, relConfig), 'utf8');
|
|
81
|
+
const parsed = JSON.parse(stripJsonComments(raw));
|
|
82
|
+
if (!isRecord(parsed))
|
|
83
|
+
continue;
|
|
84
|
+
const inputs = [];
|
|
85
|
+
if (Array.isArray(parsed.include)) {
|
|
86
|
+
for (const item of parsed.include)
|
|
87
|
+
if (typeof item === 'string')
|
|
88
|
+
inputs.push(item);
|
|
89
|
+
}
|
|
90
|
+
if (Array.isArray(parsed.files)) {
|
|
91
|
+
for (const item of parsed.files)
|
|
92
|
+
if (typeof item === 'string')
|
|
93
|
+
inputs.push(item);
|
|
94
|
+
}
|
|
95
|
+
for (const pattern of inputs) {
|
|
96
|
+
const norm = posix.normalize(configDir === '.' ? pattern : `${configDir}/${pattern}`);
|
|
97
|
+
if (norm.startsWith('..'))
|
|
98
|
+
continue;
|
|
99
|
+
const first = norm.split('/')[0];
|
|
100
|
+
if (first &&
|
|
101
|
+
first !== '.' &&
|
|
102
|
+
!first.includes('*') &&
|
|
103
|
+
!SKIP_DIRS.has(first) &&
|
|
104
|
+
isDirectory(first)) {
|
|
105
|
+
owned.add(first);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
// Unparseable tsconfig is reported by scan; directory ownership still holds if nested.
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return [...owned];
|
|
114
|
+
}
|
|
115
|
+
export function detectProjectLayout(rootPath) {
|
|
116
|
+
const standardDirs = ['packages', 'apps', 'src', 'test', 'tests', '__tests__', 'spec'];
|
|
117
|
+
const include = [];
|
|
118
|
+
for (const dir of standardDirs) {
|
|
119
|
+
if (existsSync(join(rootPath, dir))) {
|
|
120
|
+
include.push(`${dir}/**`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
for (const dir of tsconfigOwnedDirs(rootPath)) {
|
|
124
|
+
if (!matchAny(include, `${dir}/index.ts`)) {
|
|
125
|
+
include.push(`${dir}/**`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (include.length === 0) {
|
|
129
|
+
// Without standard or tsconfig-owned directories there is no layout to infer; index the whole root.
|
|
130
|
+
include.push('**');
|
|
131
|
+
}
|
|
132
|
+
// `impact.routes` holds file globs (DESIGN §9), so a detected directory becomes the glob
|
|
133
|
+
// for the route files a framework loads from it, never the bare directory path.
|
|
134
|
+
const candidateRoutes = [
|
|
135
|
+
{ probe: 'src/routes.ts', route: 'src/routes.ts' },
|
|
136
|
+
{ probe: 'src/routes/index.ts', route: 'src/routes/index.ts' },
|
|
137
|
+
{ probe: 'src/app/api', route: 'src/app/api/**/route.{ts,tsx,js,jsx}' },
|
|
138
|
+
{ probe: 'src/pages/api', route: 'src/pages/api/**/*.{ts,tsx,js,jsx}' },
|
|
139
|
+
{ probe: 'app/api', route: 'app/api/**/route.{ts,tsx,js,jsx}' },
|
|
140
|
+
{ probe: 'pages/api', route: 'pages/api/**/*.{ts,tsx,js,jsx}' },
|
|
141
|
+
{ probe: 'packages/api/src/routes.ts', route: 'packages/api/src/routes.ts' },
|
|
142
|
+
];
|
|
143
|
+
const routes = [];
|
|
144
|
+
for (const candidate of candidateRoutes) {
|
|
145
|
+
if (existsSync(join(rootPath, candidate.probe))) {
|
|
146
|
+
routes.push(candidate.route);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return { include, routes };
|
|
150
|
+
}
|
|
151
|
+
export async function discoverTsconfigs(rootPath) {
|
|
152
|
+
const results = [];
|
|
153
|
+
const entries = await readdir(rootPath, { withFileTypes: true });
|
|
154
|
+
for (const entry of entries) {
|
|
155
|
+
if (entry.isFile() &&
|
|
156
|
+
(entry.name === 'tsconfig.json' ||
|
|
157
|
+
(entry.name.startsWith('tsconfig.') && entry.name.endsWith('.json')))) {
|
|
158
|
+
results.push(entry.name);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const subdirsToScan = ['packages', 'apps', 'src', 'tests'];
|
|
162
|
+
for (const subdir of subdirsToScan) {
|
|
163
|
+
const subdirPath = join(rootPath, subdir);
|
|
164
|
+
if (!existsSync(subdirPath))
|
|
165
|
+
continue;
|
|
166
|
+
try {
|
|
167
|
+
const subEntries = await readdir(subdirPath, { withFileTypes: true });
|
|
168
|
+
for (const sub of subEntries) {
|
|
169
|
+
if (sub.isDirectory()) {
|
|
170
|
+
const nestedTsconfig = join(subdir, sub.name, 'tsconfig.json');
|
|
171
|
+
if (existsSync(join(rootPath, nestedTsconfig))) {
|
|
172
|
+
results.push(nestedTsconfig.replace(/\\/g, '/'));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
else if (sub.isFile() &&
|
|
176
|
+
(sub.name === 'tsconfig.json' ||
|
|
177
|
+
(sub.name.startsWith('tsconfig.') && sub.name.endsWith('.json')))) {
|
|
178
|
+
const relPath = join(subdir, sub.name).replace(/\\/g, '/');
|
|
179
|
+
results.push(relPath);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
catch {
|
|
184
|
+
// Ignore unreadable subdirectories
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
results.sort();
|
|
188
|
+
return results;
|
|
189
|
+
}
|
|
190
|
+
export async function initProject(options = {}) {
|
|
191
|
+
const targetPath = options.root ? resolve(options.root) : process.cwd();
|
|
192
|
+
let realRoot;
|
|
193
|
+
try {
|
|
194
|
+
realRoot = realpathSync(targetPath);
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
throw new Error(`Target root path does not exist: ${targetPath}`);
|
|
198
|
+
}
|
|
199
|
+
const warnings = [];
|
|
200
|
+
const gitRoot = findGitRoot(realRoot);
|
|
201
|
+
const isRepo = gitRoot !== null;
|
|
202
|
+
if (!isRepo) {
|
|
203
|
+
warnings.push(`Not a git repository: ${realRoot}`);
|
|
204
|
+
}
|
|
205
|
+
const repoId = computeRepoId(realRoot);
|
|
206
|
+
const cacheDir = resolveCacheDir(repoId, options.cacheHome);
|
|
207
|
+
if (!options.dryRun) {
|
|
208
|
+
// The cache holds index records and the audit log; keep it private to the user (RISK §5).
|
|
209
|
+
await mkdir(cacheDir, { recursive: true, mode: 0o700 });
|
|
210
|
+
await chmod(cacheDir, 0o700);
|
|
211
|
+
}
|
|
212
|
+
const configPath = join(realRoot, 'ei.config.json');
|
|
213
|
+
const configExists = existsSync(configPath);
|
|
214
|
+
let configCreated = false;
|
|
215
|
+
let configOverwritten = false;
|
|
216
|
+
let configSkipped = false;
|
|
217
|
+
let config;
|
|
218
|
+
if (configExists && !options.force) {
|
|
219
|
+
configSkipped = true;
|
|
220
|
+
const raw = await readFile(configPath, 'utf8');
|
|
221
|
+
const parsed = parseProjectConfig(raw);
|
|
222
|
+
config = parsed.config;
|
|
223
|
+
if (parsed.errors.length > 0) {
|
|
224
|
+
for (const error of parsed.errors) {
|
|
225
|
+
warnings.push(`Existing config: ${error}`);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
const layout = detectProjectLayout(realRoot);
|
|
231
|
+
config = defaultConfig(layout);
|
|
232
|
+
if (configExists && options.force) {
|
|
233
|
+
configOverwritten = true;
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
configCreated = true;
|
|
237
|
+
}
|
|
238
|
+
if (!options.dryRun) {
|
|
239
|
+
await writeFile(configPath, `${JSON.stringify(config, null, 2)}\n`, 'utf8');
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const tsconfigs = await discoverTsconfigs(realRoot);
|
|
243
|
+
if (tsconfigs.length === 0) {
|
|
244
|
+
warnings.push('No tsconfig files found in repository');
|
|
245
|
+
}
|
|
246
|
+
const omittedTsconfigDirs = tsconfigOwnedDirs(realRoot).filter((dir) => !matchAny(config.impact.include, `${dir}/index.ts`));
|
|
247
|
+
if (omittedTsconfigDirs.length > 0) {
|
|
248
|
+
warnings.push(`impact.include leaves out tsconfig-owned directories: ${omittedTsconfigDirs.join(', ')}`);
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
root: realRoot,
|
|
252
|
+
repoId,
|
|
253
|
+
cacheDir,
|
|
254
|
+
configPath,
|
|
255
|
+
configCreated,
|
|
256
|
+
configOverwritten,
|
|
257
|
+
configSkipped,
|
|
258
|
+
config,
|
|
259
|
+
tsconfigs,
|
|
260
|
+
omittedTsconfigDirs,
|
|
261
|
+
git: {
|
|
262
|
+
isRepo,
|
|
263
|
+
gitRoot: gitRoot ?? undefined,
|
|
264
|
+
},
|
|
265
|
+
warnings,
|
|
266
|
+
};
|
|
267
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { hashFile, kindOf, mapLimit, neverReadOf, statVisible } from './scan.js';
|
|
3
|
+
/**
|
|
4
|
+
* Two-level freshness, level 1 (D22): list the visible files, stat each, and read only files whose
|
|
5
|
+
* (size, mtime) differ from the fingerprint. Blind spot, accepted for queries: a same-size edit
|
|
6
|
+
* that keeps the mtime. `freshness: "hash"` hashes every readable file and has no blind spot.
|
|
7
|
+
* Excluded, secret and symlinked files are never read; for them size and mtime decide.
|
|
8
|
+
*/
|
|
9
|
+
export async function probe(root, impact, fingerprint, freshness = impact.freshness) {
|
|
10
|
+
const started = performance.now();
|
|
11
|
+
const known = new Map(fingerprint.map((record) => [record.path, record]));
|
|
12
|
+
const { entries } = await statVisible(root);
|
|
13
|
+
const added = [];
|
|
14
|
+
const changed = [];
|
|
15
|
+
const touched = [];
|
|
16
|
+
const toHash = [];
|
|
17
|
+
for (const entry of entries) {
|
|
18
|
+
const previous = known.get(entry.path);
|
|
19
|
+
known.delete(entry.path);
|
|
20
|
+
if (!previous) {
|
|
21
|
+
added.push(entry.path);
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
const statSame = entry.size === previous.size && entry.mtimeMs === previous.mtimeMs;
|
|
25
|
+
// The common case on every query: nothing to read, so no path matching either.
|
|
26
|
+
if (statSame && freshness === 'stat')
|
|
27
|
+
continue;
|
|
28
|
+
const readable = !entry.symlink && neverReadOf(entry.path, kindOf(entry.path), impact) === null;
|
|
29
|
+
if (!readable || previous.hash === null) {
|
|
30
|
+
if (!statSame)
|
|
31
|
+
changed.push(entry.path);
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
toHash.push({ entry, previousHash: previous.hash, statSame });
|
|
35
|
+
}
|
|
36
|
+
const hashed = toHash.length;
|
|
37
|
+
if (hashed > 0) {
|
|
38
|
+
await mapLimit(toHash, 32, async ({ entry, previousHash, statSame }) => {
|
|
39
|
+
const hash = await hashFile(join(root, entry.path), entry.size);
|
|
40
|
+
if (hash !== previousHash)
|
|
41
|
+
changed.push(entry.path);
|
|
42
|
+
else if (!statSame)
|
|
43
|
+
touched.push(entry.path);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
added: added.sort(),
|
|
48
|
+
deleted: [...known.keys()].sort(),
|
|
49
|
+
changed: changed.sort(),
|
|
50
|
+
touched: touched.sort(),
|
|
51
|
+
files: entries.length,
|
|
52
|
+
hashed,
|
|
53
|
+
freshness,
|
|
54
|
+
ms: Math.round(performance.now() - started),
|
|
55
|
+
};
|
|
56
|
+
}
|