@ogygie/studio 0.32.0 → 0.33.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/dist/server.js +7 -1
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -3051,7 +3051,13 @@ async function judgeGeneration(input) {
|
|
|
3051
3051
|
if (!first.generated) return { problems: [], tally: null };
|
|
3052
3052
|
if (input.generation === null) return { problems: ["# G\xE9n\xE9ration: the product's manifest declares no generation block \u2014 remove the section, this product is not generated"], tally: null };
|
|
3053
3053
|
const report = first.kind === "screen" && first.screen !== null ? checkSpec({ markdown: input.content, specPath: input.specPath, generation: input.generation, consumed: await consumedFeaturesOf(input.storage, input.features, input.generation, first.screen.consumes.map((consumed) => consumed.feature)) }) : first;
|
|
3054
|
-
const problems = report.problems.map((problem) =>
|
|
3054
|
+
const problems = report.problems.map((problem) => {
|
|
3055
|
+
const path = problem.details?.["path"] === void 0 ? "" : String(problem.details["path"]);
|
|
3056
|
+
const line = problem.details?.["line"] === void 0 ? "" : String(problem.details["line"]);
|
|
3057
|
+
const pathOnce = path === "" || problem.cause?.startsWith(`${path}:`) === true ? "" : ` ${path}`;
|
|
3058
|
+
const lineOnce = line === "" || problem.cause?.startsWith(`line ${line}:`) === true ? "" : ` (line ${line})`;
|
|
3059
|
+
return `${problem.code}${pathOnce}${lineOnce}: ${problem.cause}`;
|
|
3060
|
+
});
|
|
3055
3061
|
return { problems, tally: { derivable: report.tally.derivable, hole: report.tally.hole } };
|
|
3056
3062
|
}
|
|
3057
3063
|
async function existingSpecIds(storage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogygie/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Ogygie framework dev studio: projects a repo's specs and manifest into a local UI. Ships its built UI; launched by `ogygie studio`.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fastify/static": "^10.1.3",
|
|
26
|
-
"@ogygie/core": "0.
|
|
27
|
-
"@ogygie/generate": "0.
|
|
26
|
+
"@ogygie/core": "0.33.0",
|
|
27
|
+
"@ogygie/generate": "0.33.0",
|
|
28
28
|
"fastify": "^5.0.0",
|
|
29
29
|
"fastify-type-provider-zod": "^6.0.0",
|
|
30
30
|
"zod": "^4.0.0"
|