projscan 4.0.0 → 4.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/README.md +332 -24
- package/dist/cli/commands/route.js +1 -0
- package/dist/cli/commands/route.js.map +1 -1
- package/dist/cli/commands/semanticGraph.js +27 -0
- package/dist/cli/commands/semanticGraph.js.map +1 -1
- package/dist/cli/commands/start.js +74 -1
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/core/dependencyAnalyzer.js +172 -0
- package/dist/core/dependencyAnalyzer.js.map +1 -1
- package/dist/core/intentRouter.d.ts +8 -1
- package/dist/core/intentRouter.js +2186 -22
- package/dist/core/intentRouter.js.map +1 -1
- package/dist/core/issueEngine.js +6 -7
- package/dist/core/issueEngine.js.map +1 -1
- package/dist/core/onboarding.d.ts +2 -2
- package/dist/core/onboarding.js +29 -5
- package/dist/core/onboarding.js.map +1 -1
- package/dist/core/start.d.ts +1 -0
- package/dist/core/start.js +2010 -10
- package/dist/core/start.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.js +14 -5
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/start.js +6 -1
- package/dist/mcp/tools/start.js.map +1 -1
- package/dist/projscan-sbom.cdx.json +6 -6
- package/dist/reporters/consoleReporter.js +19 -0
- package/dist/reporters/consoleReporter.js.map +1 -1
- package/dist/reporters/markdownReporter.js +19 -0
- package/dist/reporters/markdownReporter.js.map +1 -1
- package/dist/tool-manifest.json +6 -2
- package/dist/types.d.ts +83 -0
- package/docs/GUIDE.md +1565 -0
- package/docs/ROADMAP.md +219 -0
- package/docs/demos/projscan-4-1-demo.html +648 -0
- package/docs/projscan-mission-control.png +0 -0
- package/docs/projscan-proof-router.png +0 -0
- package/package.json +8 -1
- package/scripts/capture-readme-assets.mjs +60 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
7
|
+
const demoPath = path.join(repoRoot, 'docs', 'demos', 'projscan-4-1-demo.html');
|
|
8
|
+
|
|
9
|
+
if (!existsSync(demoPath)) {
|
|
10
|
+
console.error(`Missing capture source: ${path.relative(repoRoot, demoPath)}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const captures = [
|
|
15
|
+
{
|
|
16
|
+
name: 'Mission Control hero',
|
|
17
|
+
url: pathToFileURL(demoPath).href,
|
|
18
|
+
output: path.join(repoRoot, 'docs', 'projscan-mission-control.png'),
|
|
19
|
+
viewport: '1440,960',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Intent and proof workflow',
|
|
23
|
+
url: `${pathToFileURL(demoPath).href}#proof`,
|
|
24
|
+
output: path.join(repoRoot, 'docs', 'projscan-proof-router.png'),
|
|
25
|
+
viewport: '1440,760',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
for (const capture of captures) {
|
|
30
|
+
console.log(`Capturing ${capture.name} -> ${path.relative(repoRoot, capture.output)}`);
|
|
31
|
+
const result = spawnSync(
|
|
32
|
+
'npx',
|
|
33
|
+
[
|
|
34
|
+
'--yes',
|
|
35
|
+
'playwright',
|
|
36
|
+
'screenshot',
|
|
37
|
+
'--browser',
|
|
38
|
+
'chromium',
|
|
39
|
+
'--viewport-size',
|
|
40
|
+
capture.viewport,
|
|
41
|
+
'--wait-for-selector',
|
|
42
|
+
'[data-ready="true"]',
|
|
43
|
+
capture.url,
|
|
44
|
+
capture.output,
|
|
45
|
+
],
|
|
46
|
+
{
|
|
47
|
+
cwd: repoRoot,
|
|
48
|
+
stdio: 'inherit',
|
|
49
|
+
},
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
if (result.status !== 0) {
|
|
53
|
+
console.error(
|
|
54
|
+
'Playwright screenshot capture failed. If Chromium is missing locally, run: npx --yes playwright install chromium',
|
|
55
|
+
);
|
|
56
|
+
process.exit(result.status ?? 1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
console.log('README screenshots captured.');
|