@thxgg/steward 0.1.16 → 0.1.18
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{CxHOXVf6.js → -z_Gr0GN.js} +1 -1
- package/.output/public/_nuxt/5LlyHjkF.js +60 -0
- package/.output/public/_nuxt/BA0u_CRT.js +1 -0
- package/.output/public/_nuxt/{Bibm_IDv.js → BA4e9-N5.js} +2 -2
- package/.output/public/_nuxt/{BSA0RJ-H.js → BO8EM227.js} +1 -1
- package/.output/public/_nuxt/C0XT5P3Q.js +1 -0
- package/.output/public/_nuxt/{BWVTacYj.js → CGzrvVc6.js} +1 -1
- package/.output/public/_nuxt/{Dum5qplW.js → CJlXUkTg.js} +1 -1
- package/.output/public/_nuxt/CZsXZugv.js +1 -0
- package/.output/public/_nuxt/{ynmyrfyT.js → C_HVaH3B.js} +1 -1
- package/.output/public/_nuxt/{wbjFvimm.js → DAnnHVQP.js} +1 -1
- package/.output/public/_nuxt/DEr8q68O.js +141 -0
- package/.output/public/_nuxt/Detail.DSyVQNdr.css +1 -0
- package/.output/public/_nuxt/DrXxYwWw.js +30 -0
- package/.output/public/_nuxt/QAzsKGuP.js +1 -0
- package/.output/public/_nuxt/TSsR_oCL.js +1 -0
- package/.output/public/_nuxt/WUF6Thhn.js +13 -0
- package/.output/public/_nuxt/_prd_.BkpxMFSV.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/19e0e040-a531-4c25-b46d-a6ca54a1ae3e.json +1 -0
- package/.output/public/_nuxt/i9wn3hS7.js +1 -0
- package/.output/server/chunks/_/git-api.mjs +101 -8
- package/.output/server/chunks/_/git-api.mjs.map +1 -1
- package/.output/server/chunks/_/git.mjs +3 -10
- package/.output/server/chunks/_/git.mjs.map +1 -1
- package/.output/server/chunks/_/prd-service.mjs +366 -0
- package/.output/server/chunks/_/prd-service.mjs.map +1 -0
- package/.output/server/chunks/_/repos.mjs +448 -0
- package/.output/server/chunks/_/repos.mjs.map +1 -0
- package/.output/server/chunks/_/task-graph.mjs +13 -14
- package/.output/server/chunks/_/task-graph.mjs.map +1 -1
- package/.output/server/chunks/_/watcher.mjs +54 -68
- package/.output/server/chunks/_/watcher.mjs.map +1 -1
- package/.output/server/chunks/build/{Detail-CUfU85GY.mjs → Detail-BQSkP9Zm.mjs} +170 -74
- package/.output/server/chunks/build/Detail-BQSkP9Zm.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs +4 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs +8 -0
- package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs +10 -0
- package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs.map +1 -0
- package/.output/server/chunks/build/Viewer-styles.D6wYWFb1.mjs +8 -0
- package/.output/server/chunks/build/Viewer-styles.D6wYWFb1.mjs.map +1 -0
- package/.output/server/chunks/build/{_prd_-CeVnQzOV.mjs → _prd_-CBR_wm9i.mjs} +73 -33
- package/.output/server/chunks/build/_prd_-CBR_wm9i.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-DWCOHHTE.mjs → default-Cao5eO80.mjs} +2 -3
- package/.output/server/chunks/build/default-Cao5eO80.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-Bf6kdO80.mjs +0 -1
- package/.output/server/chunks/build/error-500-D_bcARXN.mjs +0 -1
- package/.output/server/chunks/build/{index-CckL_NBD.mjs → index-ByZO4Bvq.mjs} +2 -2
- package/.output/server/chunks/build/index-ByZO4Bvq.mjs.map +1 -0
- package/.output/server/chunks/build/{index-QVeSHT3L.mjs → index-ljj9uTXI.mjs} +6 -5
- package/.output/server/chunks/build/index-ljj9uTXI.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs +1 -1
- package/.output/server/chunks/build/{repo-graph-CHNl58mY.mjs → repo-graph-CVnkmn8i.mjs} +23 -10
- package/.output/server/chunks/build/repo-graph-CVnkmn8i.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +5 -6
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/build/{usePrd-SqcxGyFU.mjs → usePrd-f7ylhIqs.mjs} +10 -34
- package/.output/server/chunks/build/usePrd-f7ylhIqs.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +614 -1211
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/browse.get.mjs +34 -10
- package/.output/server/chunks/routes/api/browse.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +3 -2
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +22 -7
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs +29 -23
- package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs +12 -7
- package/.output/server/chunks/routes/api/repos/_repoId/git/diff.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs +32 -13
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-content.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs +14 -14
- package/.output/server/chunks/routes/api/repos/_repoId/git/file-diff.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/graph.get.mjs +7 -2
- package/.output/server/chunks/routes/api/repos/_repoId/graph.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/graph.get.mjs +16 -2
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/graph.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs +21 -9
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs +21 -85
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs +21 -9
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs +31 -50
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs +20 -49
- package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs +6 -13
- package/.output/server/chunks/routes/api/repos/_repoId/refresh-git-repos.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs +3 -2
- package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/runtime.get.mjs +1 -2
- package/.output/server/chunks/routes/api/runtime.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/watch.get.mjs +5 -4
- package/.output/server/chunks/routes/api/watch.get.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -2
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +118 -0
- package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
- package/.output/server/node_modules/zod/v3/errors.js +9 -0
- package/.output/server/node_modules/zod/v3/external.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
- package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v3/types.js +3693 -0
- package/.output/server/package.json +2 -1
- package/README.md +2 -2
- package/dist/host/src/api/prds.js +6 -172
- package/dist/host/src/api/repos.js +3 -18
- package/dist/host/src/api/state.js +8 -9
- package/dist/host/src/executor-runner.js +368 -0
- package/dist/host/src/executor.js +138 -260
- package/dist/host/src/mcp.js +27 -1
- package/dist/host/src/ui.js +14 -4
- package/dist/server/utils/change-events.js +33 -0
- package/dist/server/utils/git.js +11 -16
- package/dist/server/utils/prd-service.js +231 -0
- package/dist/server/utils/prd-state.js +54 -162
- package/dist/server/utils/repos.js +72 -17
- package/dist/server/utils/state-schema.js +61 -0
- package/dist/server/utils/task-graph.js +13 -13
- package/package.json +2 -1
- package/.output/public/_nuxt/CVJh28bx.js +0 -1
- package/.output/public/_nuxt/CyZuidLG.js +0 -60
- package/.output/public/_nuxt/D0op9E2g.js +0 -1
- package/.output/public/_nuxt/DX8awZaa.js +0 -1
- package/.output/public/_nuxt/Detail.z33AHKev.css +0 -1
- package/.output/public/_nuxt/DiTJUZOC.js +0 -1
- package/.output/public/_nuxt/T_3JE9C-.js +0 -1
- package/.output/public/_nuxt/WOI2tLsR.js +0 -42
- package/.output/public/_nuxt/_prd_.KTotLoF_.css +0 -1
- package/.output/public/_nuxt/builds/meta/029070b0-b8e2-4988-84f4-d0c9ff55c998.json +0 -1
- package/.output/public/_nuxt/odRGDGwj.js +0 -1
- package/.output/server/chunks/build/Detail-CUfU85GY.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-CS8FTppg.mjs +0 -4
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-CS8FTppg.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.AUfwwelI.mjs +0 -10
- package/.output/server/chunks/build/DiffViewer-styles.AUfwwelI.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.D_it8zfk.mjs +0 -8
- package/.output/server/chunks/build/DiffViewer-styles.D_it8zfk.mjs.map +0 -1
- package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs +0 -8
- package/.output/server/chunks/build/Viewer-styles.CshnetGw.mjs.map +0 -1
- package/.output/server/chunks/build/_prd_-CeVnQzOV.mjs.map +0 -1
- package/.output/server/chunks/build/default-DWCOHHTE.mjs.map +0 -1
- package/.output/server/chunks/build/index-CckL_NBD.mjs.map +0 -1
- package/.output/server/chunks/build/index-QVeSHT3L.mjs.map +0 -1
- package/.output/server/chunks/build/repo-graph-CHNl58mY.mjs.map +0 -1
- package/.output/server/chunks/build/usePrd-SqcxGyFU.mjs.map +0 -1
|
@@ -2,15 +2,15 @@ import { _ as __nuxt_component_0$2 } from './nuxt-link-SvT1nf8Z.mjs';
|
|
|
2
2
|
import { defineComponent, computed, ref, watch, inject, mergeProps, unref, withCtx, createVNode, createTextVNode, isRef, openBlock, createBlock, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, useSSRContext } from 'vue';
|
|
3
3
|
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderSlot, ssrRenderList, ssrRenderClass, ssrRenderVNode } from 'vue/server-renderer';
|
|
4
4
|
import { Loader2, AlertCircle, RefreshCw, FileText, LayoutGrid, GitBranch, User, Calendar, CircleDot, ExternalLink, Circle, CheckCircle2, PlayCircle, Minus, ArrowDown, ArrowUp } from 'lucide-vue-next';
|
|
5
|
-
import { _ as __nuxt_component_0$2$1, a as __nuxt_component_1$1, B as Badge } from './Detail-
|
|
5
|
+
import { _ as __nuxt_component_0$2$1, a as __nuxt_component_1$1, B as Badge } from './Detail-BQSkP9Zm.mjs';
|
|
6
6
|
import { marked } from 'marked';
|
|
7
7
|
import { codeToHtml } from 'shiki';
|
|
8
8
|
import DOMPurify from 'dompurify';
|
|
9
|
-
import { u as useRepos, a as usePrd, b as useToast, c as cn } from './usePrd-
|
|
9
|
+
import { u as useRepos, a as usePrd, b as useToast, c as cn } from './usePrd-f7ylhIqs.mjs';
|
|
10
10
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
|
11
11
|
import { reactiveOmit } from '@vueuse/core';
|
|
12
12
|
import { useForwardPropsEmits, TabsRoot, TabsList as TabsList$1, useForwardProps, TabsTrigger as TabsTrigger$1, TabsContent as TabsContent$1 } from 'reka-ui';
|
|
13
|
-
import { B as Button } from './index-
|
|
13
|
+
import { B as Button } from './index-ByZO4Bvq.mjs';
|
|
14
14
|
import { b as useRoute, a as useRouter } from './server.mjs';
|
|
15
15
|
import '../nitro/nitro.mjs';
|
|
16
16
|
import 'node:http';
|
|
@@ -20,12 +20,10 @@ import 'node:buffer';
|
|
|
20
20
|
import 'node:fs';
|
|
21
21
|
import 'node:path';
|
|
22
22
|
import 'node:crypto';
|
|
23
|
-
import 'node:os';
|
|
24
23
|
import 'node:url';
|
|
25
24
|
import '@vue-flow/background';
|
|
26
25
|
import '@vue-flow/controls';
|
|
27
26
|
import '@vue-flow/core';
|
|
28
|
-
import 'shiki/bundle/full';
|
|
29
27
|
import 'class-variance-authority';
|
|
30
28
|
import 'clsx';
|
|
31
29
|
import 'tailwind-merge';
|
|
@@ -184,13 +182,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
184
182
|
return DOMPurify.sanitize(html, purifyConfig);
|
|
185
183
|
}
|
|
186
184
|
watch(() => props.content, async (newContent) => {
|
|
187
|
-
if (newContent) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
if (!newContent) {
|
|
186
|
+
renderedHtml.value = "";
|
|
187
|
+
isLoading.value = false;
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
isLoading.value = true;
|
|
191
|
+
try {
|
|
192
|
+
renderedHtml.value = await renderMarkdown(newContent);
|
|
193
|
+
} finally {
|
|
194
|
+
isLoading.value = false;
|
|
194
195
|
}
|
|
195
196
|
}, { immediate: true });
|
|
196
197
|
return (_ctx, _push, _parent, _attrs) => {
|
|
@@ -904,6 +905,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
904
905
|
}
|
|
905
906
|
return null;
|
|
906
907
|
}
|
|
908
|
+
function getStatusCode(error2) {
|
|
909
|
+
const fetchError = error2;
|
|
910
|
+
return fetchError.statusCode ?? fetchError.status;
|
|
911
|
+
}
|
|
912
|
+
function getErrorMessage(error2, fallback) {
|
|
913
|
+
const fetchError = error2;
|
|
914
|
+
return fetchError.data?.message || fetchError.statusMessage || fetchError.message || fallback;
|
|
915
|
+
}
|
|
907
916
|
const route = useRoute();
|
|
908
917
|
const router = useRouter();
|
|
909
918
|
const { selectRepo } = useRepos();
|
|
@@ -955,9 +964,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
955
964
|
if (Object.prototype.hasOwnProperty.call(tasksByPrd.value, slug)) {
|
|
956
965
|
return tasksByPrd.value[slug] ?? null;
|
|
957
966
|
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
967
|
+
try {
|
|
968
|
+
const tasks = await fetchTasks(slug);
|
|
969
|
+
cacheTasksForPrd(slug, tasks);
|
|
970
|
+
return tasks;
|
|
971
|
+
} catch (error2) {
|
|
972
|
+
showError("Failed to load tasks", getErrorMessage(error2, `Could not load tasks for ${slug}.`));
|
|
973
|
+
return null;
|
|
974
|
+
}
|
|
961
975
|
}
|
|
962
976
|
function buildBaseQuery() {
|
|
963
977
|
const query = {};
|
|
@@ -999,7 +1013,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
999
1013
|
detailOpen.value = true;
|
|
1000
1014
|
selectedTaskCommits.value = [];
|
|
1001
1015
|
await syncTaskQuery(task.id, sourcePrdSlug);
|
|
1002
|
-
|
|
1016
|
+
try {
|
|
1017
|
+
selectedTaskCommits.value = await fetchTaskCommits(sourcePrdSlug, task.id);
|
|
1018
|
+
} catch (error2) {
|
|
1019
|
+
selectedTaskCommits.value = [];
|
|
1020
|
+
showError("Failed to load commits", getErrorMessage(error2, "Could not resolve commits for this task."));
|
|
1021
|
+
}
|
|
1003
1022
|
}
|
|
1004
1023
|
async function syncTaskDetailFromRoute() {
|
|
1005
1024
|
const selection = routeTaskSelection.value;
|
|
@@ -1026,7 +1045,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1026
1045
|
selectedTaskPrdSlug.value = selection.prdSlug;
|
|
1027
1046
|
detailOpen.value = true;
|
|
1028
1047
|
if (!isSameTask) {
|
|
1029
|
-
|
|
1048
|
+
try {
|
|
1049
|
+
selectedTaskCommits.value = await fetchTaskCommits(selection.prdSlug, task.id);
|
|
1050
|
+
} catch (error2) {
|
|
1051
|
+
selectedTaskCommits.value = [];
|
|
1052
|
+
showError("Failed to load commits", getErrorMessage(error2, "Could not resolve commits for this task."));
|
|
1053
|
+
}
|
|
1030
1054
|
}
|
|
1031
1055
|
}
|
|
1032
1056
|
const taskTitles = computed(() => {
|
|
@@ -1045,19 +1069,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1045
1069
|
});
|
|
1046
1070
|
const fileChangeEvent = inject("fileChangeEvent", ref(null));
|
|
1047
1071
|
async function loadDocument() {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1072
|
+
try {
|
|
1073
|
+
const doc = await fetchDocument(prdSlug.value);
|
|
1074
|
+
if (doc) {
|
|
1075
|
+
document.value = doc;
|
|
1076
|
+
error.value = null;
|
|
1077
|
+
}
|
|
1078
|
+
} catch (err) {
|
|
1079
|
+
const statusCode = getStatusCode(err);
|
|
1080
|
+
if (statusCode === 404) {
|
|
1081
|
+
error.value = `PRD "${prdSlug.value}" not found in this repository.`;
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
showError("Failed to reload PRD", getErrorMessage(err, "Could not refresh the PRD document."));
|
|
1051
1085
|
}
|
|
1052
1086
|
}
|
|
1053
1087
|
async function loadTasksAndProgress() {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1088
|
+
try {
|
|
1089
|
+
const [tasks, progress] = await Promise.all([
|
|
1090
|
+
fetchTasks(prdSlug.value),
|
|
1091
|
+
fetchProgress(prdSlug.value)
|
|
1092
|
+
]);
|
|
1093
|
+
tasksFile.value = tasks;
|
|
1094
|
+
progressFile.value = progress;
|
|
1095
|
+
cacheTasksForPrd(prdSlug.value, tasks);
|
|
1096
|
+
} catch (err) {
|
|
1097
|
+
showError("Failed to refresh task state", getErrorMessage(err, "Could not refresh tasks and progress."));
|
|
1098
|
+
}
|
|
1061
1099
|
}
|
|
1062
1100
|
async function loadGraph(force = false) {
|
|
1063
1101
|
graphLoading.value = true;
|
|
@@ -1072,6 +1110,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1072
1110
|
}
|
|
1073
1111
|
prdGraph.value = graph;
|
|
1074
1112
|
graphError.value = null;
|
|
1113
|
+
} catch (err) {
|
|
1114
|
+
graphError.value = getErrorMessage(err, "Failed to load PRD graph.");
|
|
1075
1115
|
} finally {
|
|
1076
1116
|
graphLoading.value = false;
|
|
1077
1117
|
}
|
|
@@ -1109,15 +1149,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1109
1149
|
await ensureGraphLoaded();
|
|
1110
1150
|
await syncTaskDetailFromRoute();
|
|
1111
1151
|
} catch (err) {
|
|
1112
|
-
const
|
|
1113
|
-
if (
|
|
1152
|
+
const statusCode = getStatusCode(err);
|
|
1153
|
+
if (statusCode === 404) {
|
|
1114
1154
|
error.value = `PRD "${prdSlug.value}" not found. Check if the file exists in docs/prd/.`;
|
|
1115
|
-
} else if (
|
|
1155
|
+
} else if (statusCode === 500) {
|
|
1116
1156
|
error.value = "Server error while loading the PRD. Check the file format.";
|
|
1117
|
-
showError("Server error",
|
|
1157
|
+
showError("Server error", getErrorMessage(err, "Failed to read PRD file"));
|
|
1118
1158
|
} else {
|
|
1119
1159
|
error.value = "Failed to load PRD document. Please try again.";
|
|
1120
|
-
showError("Load failed", "Could not fetch the PRD document");
|
|
1160
|
+
showError("Load failed", getErrorMessage(err, "Could not fetch the PRD document"));
|
|
1121
1161
|
}
|
|
1122
1162
|
} finally {
|
|
1123
1163
|
isLoading.value = false;
|
|
@@ -1593,4 +1633,4 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
1593
1633
|
};
|
|
1594
1634
|
|
|
1595
1635
|
export { _sfc_main as default };
|
|
1596
|
-
//# sourceMappingURL=_prd_-
|
|
1636
|
+
//# sourceMappingURL=_prd_-CBR_wm9i.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_prd_-CBR_wm9i.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/_prd_-CBR_wm9i.js"],"names":["__nuxt_component_0$3"],"mappings":"","x_google_ignoreList":[0]}
|