getprismo 0.1.0 → 0.1.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/lib/prismo-dev-scan.js +14 -8
- package/package.json +1 -1
package/lib/prismo-dev-scan.js
CHANGED
|
@@ -1291,6 +1291,13 @@ function renderArchitectureSummary(ctx) {
|
|
|
1291
1291
|
const apiLayer = ctx.backend.api.slice(0, 6);
|
|
1292
1292
|
const dbLayer = ctx.backend.db.slice(0, 6);
|
|
1293
1293
|
const frontendLayer = ctx.frontend.app.slice(0, 6);
|
|
1294
|
+
const readOrder = [
|
|
1295
|
+
"- Start here.",
|
|
1296
|
+
ctx.backendDetected ? "- For backend work, read `.prismo/backend-summary.md` next." : null,
|
|
1297
|
+
ctx.frontendDetected ? "- For frontend work, read `.prismo/frontend-summary.md` next." : null,
|
|
1298
|
+
"- Then inspect only the files directly relevant to the task.",
|
|
1299
|
+
"- Avoid broad recursive reads unless the task truly needs a repo-wide audit.",
|
|
1300
|
+
].filter(Boolean);
|
|
1294
1301
|
return [
|
|
1295
1302
|
"# Architecture Summary",
|
|
1296
1303
|
"",
|
|
@@ -1314,11 +1321,7 @@ function renderArchitectureSummary(ctx) {
|
|
|
1314
1321
|
"",
|
|
1315
1322
|
"## Recommended Read Order",
|
|
1316
1323
|
"",
|
|
1317
|
-
|
|
1318
|
-
ctx.backendDetected ? "- For backend work, read `.prismo/backend-summary.md` next." : "",
|
|
1319
|
-
ctx.frontendDetected ? "- For frontend work, read `.prismo/frontend-summary.md` next." : "",
|
|
1320
|
-
"- Then inspect only the files directly relevant to the task.",
|
|
1321
|
-
"- Avoid broad recursive reads unless the task truly needs a repo-wide audit.",
|
|
1324
|
+
readOrder.join("\n"),
|
|
1322
1325
|
"",
|
|
1323
1326
|
"## Key Entrypoints",
|
|
1324
1327
|
"",
|
|
@@ -1401,6 +1404,11 @@ function renderFrontendSummary(ctx) {
|
|
|
1401
1404
|
|
|
1402
1405
|
function renderRecommendedClaude(ctx) {
|
|
1403
1406
|
const commands = [];
|
|
1407
|
+
const importantPaths = [
|
|
1408
|
+
"- `.prismo/architecture-summary.md`",
|
|
1409
|
+
ctx.backendDetected ? "- `.prismo/backend-summary.md`" : null,
|
|
1410
|
+
ctx.frontendDetected ? "- `.prismo/frontend-summary.md`" : null,
|
|
1411
|
+
].filter(Boolean);
|
|
1404
1412
|
if (hasPath(ctx.scan, (rel) => rel === "package.json")) {
|
|
1405
1413
|
commands.push("npm run scan");
|
|
1406
1414
|
commands.push("npm run test:scan");
|
|
@@ -1433,9 +1441,7 @@ function renderRecommendedClaude(ctx) {
|
|
|
1433
1441
|
"",
|
|
1434
1442
|
"## Important Paths",
|
|
1435
1443
|
"",
|
|
1436
|
-
|
|
1437
|
-
ctx.backendDetected ? "- `.prismo/backend-summary.md`" : "",
|
|
1438
|
-
ctx.frontendDetected ? "- `.prismo/frontend-summary.md`" : "",
|
|
1444
|
+
importantPaths.join("\n"),
|
|
1439
1445
|
"",
|
|
1440
1446
|
].join("\n");
|
|
1441
1447
|
}
|