@thxgg/steward 0.1.18 → 0.1.20
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/B3PShd4B.js +3 -0
- package/.output/public/_nuxt/{CJlXUkTg.js → B7kcsnX1.js} +1 -1
- package/.output/public/_nuxt/B9j1BHt9.js +1 -0
- package/.output/public/_nuxt/BGSfDLaX.js +1 -0
- package/.output/public/_nuxt/{C_HVaH3B.js → BTHAQvnA.js} +1 -1
- package/.output/public/_nuxt/C2LWefrW.js +1 -0
- package/.output/public/_nuxt/{WUF6Thhn.js → CV5HFGKm.js} +1 -1
- package/.output/public/_nuxt/{CGzrvVc6.js → ClxxfTZn.js} +1 -1
- package/.output/public/_nuxt/{QAzsKGuP.js → CzCDTesu.js} +1 -1
- package/.output/public/_nuxt/{DEr8q68O.js → D6aZT905.js} +1 -1
- package/.output/public/_nuxt/{TSsR_oCL.js → D9fz0wy8.js} +1 -1
- package/.output/public/_nuxt/DDV2bymk.js +60 -0
- package/.output/public/_nuxt/DK5VWQk7.js +1 -0
- package/.output/public/_nuxt/{DAnnHVQP.js → DSqaInP-.js} +1 -1
- package/.output/public/_nuxt/Detail.CYc96mGf.css +1 -0
- package/.output/public/_nuxt/{BA4e9-N5.js → Dn6yoG20.js} +2 -2
- package/.output/public/_nuxt/{-z_Gr0GN.js → a87LfEfa.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/37438177-5e14-4a46-9af4-eae491ba1f24.json +1 -0
- package/.output/public/_nuxt/entry.Dp3jx0Yw.css +1 -0
- package/.output/public/_nuxt/zhOijcjw.js +30 -0
- package/.output/server/chunks/_/prd-service.mjs +101 -68
- package/.output/server/chunks/_/prd-service.mjs.map +1 -1
- package/.output/server/chunks/_/repos.mjs +3 -179
- package/.output/server/chunks/_/repos.mjs.map +1 -1
- package/.output/server/chunks/_/task-graph.mjs +8 -4
- package/.output/server/chunks/_/task-graph.mjs.map +1 -1
- package/.output/server/chunks/_/watcher.mjs +2 -32
- package/.output/server/chunks/_/watcher.mjs.map +1 -1
- package/.output/server/chunks/build/{Detail-BQSkP9Zm.mjs → Detail-B7yBNjgp.mjs} +324 -140
- package/.output/server/chunks/build/Detail-B7yBNjgp.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-d2dQvARr.mjs +4 -0
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-d2dQvARr.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.BDwAqkTk.mjs +8 -0
- package/.output/server/chunks/build/DiffViewer-styles.BDwAqkTk.mjs.map +1 -0
- package/.output/server/chunks/build/DiffViewer-styles.DRJh5Ui4.mjs +10 -0
- package/.output/server/chunks/build/DiffViewer-styles.DRJh5Ui4.mjs.map +1 -0
- package/.output/server/chunks/build/{_prd_-CBR_wm9i.mjs → _prd_-DY25apyl.mjs} +81 -6
- package/.output/server/chunks/build/_prd_-DY25apyl.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-Cao5eO80.mjs → default-BKKgG7HJ.mjs} +221 -23
- package/.output/server/chunks/build/default-BKKgG7HJ.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-Bf6kdO80.mjs +2 -0
- package/.output/server/chunks/build/error-500-D_bcARXN.mjs +2 -0
- package/.output/server/chunks/build/{index-ljj9uTXI.mjs → index-DE1tjHAd.mjs} +4 -3
- package/.output/server/chunks/build/index-DE1tjHAd.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-SvT1nf8Z.mjs +1 -1
- package/.output/server/chunks/build/{repo-graph-CVnkmn8i.mjs → repo-graph-CUcJKW1F.mjs} +26 -11
- package/.output/server/chunks/build/repo-graph-CUcJKW1F.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +15 -13
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/build/{usePrd-f7ylhIqs.mjs → usePrd-hXZOmvAv.mjs} +113 -9
- package/.output/server/chunks/build/usePrd-hXZOmvAv.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +1311 -599
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +2 -1
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/repos/_repoId/git/commits.get.mjs +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +27 -4
- package/.output/server/chunks/routes/api/repos/_repoId/graph.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/archive.post.mjs +93 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/archive.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/graph.get.mjs +2 -2
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/progress.get.mjs +3 -3
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks/_taskId/commits.get.mjs +3 -3
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug/tasks.get.mjs +3 -3
- package/.output/server/chunks/routes/api/repos/_repoId/prd/_prdSlug_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/repos/_repoId/prds.get.mjs +27 -4
- 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 +2 -1
- 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 +2 -1
- package/.output/server/chunks/routes/api/repos/_repoId_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/runtime.get.mjs +2 -0
- package/.output/server/chunks/routes/api/runtime.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/state-migration/status.get.mjs +21 -0
- package/.output/server/chunks/routes/api/state-migration/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/watch.get.mjs +4 -3
- 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 +3 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/README.md +3 -0
- package/dist/app/lib/async-request.js +39 -0
- package/dist/server/utils/db.js +15 -0
- package/dist/server/utils/prd-archive.js +53 -0
- package/dist/server/utils/prd-service.js +26 -6
- package/dist/server/utils/prd-state.js +11 -2
- package/dist/server/utils/state-migration.js +225 -0
- package/dist/server/utils/state-schema.js +181 -4
- package/dist/server/utils/task-graph.js +10 -3
- package/package.json +1 -1
- package/.output/public/_nuxt/5LlyHjkF.js +0 -60
- package/.output/public/_nuxt/BA0u_CRT.js +0 -1
- package/.output/public/_nuxt/BO8EM227.js +0 -3
- package/.output/public/_nuxt/C0XT5P3Q.js +0 -1
- package/.output/public/_nuxt/CZsXZugv.js +0 -1
- package/.output/public/_nuxt/Detail.DSyVQNdr.css +0 -1
- package/.output/public/_nuxt/DrXxYwWw.js +0 -30
- package/.output/public/_nuxt/builds/meta/19e0e040-a531-4c25-b46d-a6ca54a1ae3e.json +0 -1
- package/.output/public/_nuxt/entry.LcDOtJnR.css +0 -1
- package/.output/public/_nuxt/i9wn3hS7.js +0 -1
- package/.output/server/chunks/build/Detail-BQSkP9Zm.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs +0 -4
- package/.output/server/chunks/build/DiffViewer-styles-1.mjs-BFsE2PCW.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs +0 -8
- package/.output/server/chunks/build/DiffViewer-styles.D2bqX3nK.mjs.map +0 -1
- package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs +0 -10
- package/.output/server/chunks/build/DiffViewer-styles.FoV36wuV.mjs.map +0 -1
- package/.output/server/chunks/build/_prd_-CBR_wm9i.mjs.map +0 -1
- package/.output/server/chunks/build/default-Cao5eO80.mjs.map +0 -1
- package/.output/server/chunks/build/index-ByZO4Bvq.mjs +0 -76
- package/.output/server/chunks/build/index-ByZO4Bvq.mjs.map +0 -1
- package/.output/server/chunks/build/index-ljj9uTXI.mjs.map +0 -1
- package/.output/server/chunks/build/repo-graph-CVnkmn8i.mjs.map +0 -1
- package/.output/server/chunks/build/usePrd-f7ylhIqs.mjs.map +0 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
import { computed, watch, toValue, reactive, getCurrentInstance, onServerPrefetch, defineComponent, unref, mergeProps, withCtx, renderSlot, ref, shallowRef, nextTick, toRef, useSSRContext } from 'vue';
|
|
3
|
+
import { ssrRenderComponent, ssrRenderSlot } from 'vue/server-renderer';
|
|
4
|
+
import { Primitive } from 'reka-ui';
|
|
1
5
|
import { clsx } from 'clsx';
|
|
2
6
|
import { twMerge } from 'tailwind-merge';
|
|
3
7
|
import { toast } from 'vue-sonner';
|
|
4
|
-
import {
|
|
5
|
-
import { A as hash } from '../nitro/nitro.mjs';
|
|
8
|
+
import { K as hash } from '../nitro/nitro.mjs';
|
|
6
9
|
import { isPlainObject } from '@vue/shared';
|
|
7
|
-
import {
|
|
10
|
+
import { g as useState, k as fetchDefaults, c as useNuxtApp, i as asyncDataDefaults, j as createError } from './server.mjs';
|
|
8
11
|
import { debounce } from 'perfect-debounce';
|
|
9
12
|
|
|
10
13
|
function useRequestEvent(nuxtApp) {
|
|
@@ -17,6 +20,73 @@ function useRequestFetch() {
|
|
|
17
20
|
function cn(...inputs) {
|
|
18
21
|
return twMerge(clsx(inputs));
|
|
19
22
|
}
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
|
+
__name: "Button",
|
|
25
|
+
__ssrInlineRender: true,
|
|
26
|
+
props: {
|
|
27
|
+
asChild: { type: Boolean },
|
|
28
|
+
as: { default: "button" },
|
|
29
|
+
variant: {},
|
|
30
|
+
size: {},
|
|
31
|
+
class: {}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
36
|
+
_push(ssrRenderComponent(unref(Primitive), mergeProps({
|
|
37
|
+
"data-slot": "button",
|
|
38
|
+
as: __props.as,
|
|
39
|
+
"as-child": __props.asChild,
|
|
40
|
+
class: unref(cn)(unref(buttonVariants)({ variant: __props.variant, size: __props.size }), props.class)
|
|
41
|
+
}, _attrs), {
|
|
42
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
43
|
+
if (_push2) {
|
|
44
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
45
|
+
} else {
|
|
46
|
+
return [
|
|
47
|
+
renderSlot(_ctx.$slots, "default")
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
}),
|
|
51
|
+
_: 3
|
|
52
|
+
}, _parent));
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const _sfc_setup = _sfc_main.setup;
|
|
57
|
+
_sfc_main.setup = (props, ctx) => {
|
|
58
|
+
const ssrContext = useSSRContext();
|
|
59
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/ui/button/Button.vue");
|
|
60
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
61
|
+
};
|
|
62
|
+
const Button = Object.assign(_sfc_main, { __name: "UiButton" });
|
|
63
|
+
const buttonVariants = cva(
|
|
64
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
65
|
+
{
|
|
66
|
+
variants: {
|
|
67
|
+
variant: {
|
|
68
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
69
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
70
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
71
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
72
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
73
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
"default": "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
77
|
+
"sm": "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
78
|
+
"lg": "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
79
|
+
"icon": "size-9",
|
|
80
|
+
"icon-sm": "size-8",
|
|
81
|
+
"icon-lg": "size-10"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
variant: "default",
|
|
86
|
+
size: "default"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
);
|
|
20
90
|
function useToast() {
|
|
21
91
|
function showError(message, description) {
|
|
22
92
|
toast.error(message, {
|
|
@@ -492,9 +562,14 @@ function useRepos() {
|
|
|
492
562
|
function usePrd() {
|
|
493
563
|
const { currentRepoId } = useRepos();
|
|
494
564
|
const { showError } = useToast();
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
|
|
565
|
+
const showArchived = useState("prd-show-archived", () => false);
|
|
566
|
+
const prdsUrl = computed(() => {
|
|
567
|
+
if (!currentRepoId.value) {
|
|
568
|
+
return "";
|
|
569
|
+
}
|
|
570
|
+
const includeArchivedQuery = showArchived.value ? "?includeArchived=1" : "";
|
|
571
|
+
return `/api/repos/${currentRepoId.value}/prds${includeArchivedQuery}`;
|
|
572
|
+
});
|
|
498
573
|
const { data: prds, refresh: refreshPrds, status: prdsStatus, error: prdsError } = useFetch(
|
|
499
574
|
prdsUrl,
|
|
500
575
|
{
|
|
@@ -514,6 +589,12 @@ function usePrd() {
|
|
|
514
589
|
await refreshPrds();
|
|
515
590
|
}
|
|
516
591
|
}, { immediate: true });
|
|
592
|
+
watch(showArchived, async () => {
|
|
593
|
+
if (!currentRepoId.value) {
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
await refreshPrds();
|
|
597
|
+
});
|
|
517
598
|
async function fetchDocument(slug) {
|
|
518
599
|
if (!currentRepoId.value) return null;
|
|
519
600
|
return await $fetch(`/api/repos/${currentRepoId.value}/prd/${slug}`);
|
|
@@ -538,12 +619,35 @@ function usePrd() {
|
|
|
538
619
|
}
|
|
539
620
|
async function fetchRepoGraph() {
|
|
540
621
|
if (!currentRepoId.value) return null;
|
|
541
|
-
return await $fetch(`/api/repos/${currentRepoId.value}/graph
|
|
622
|
+
return await $fetch(`/api/repos/${currentRepoId.value}/graph`, {
|
|
623
|
+
query: showArchived.value ? { includeArchived: "1" } : void 0
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function setShowArchived(value) {
|
|
627
|
+
showArchived.value = value;
|
|
628
|
+
}
|
|
629
|
+
function toggleShowArchived() {
|
|
630
|
+
showArchived.value = !showArchived.value;
|
|
631
|
+
}
|
|
632
|
+
async function setPrdArchived(slug, archived) {
|
|
633
|
+
if (!currentRepoId.value) {
|
|
634
|
+
throw new Error("No repository selected");
|
|
635
|
+
}
|
|
636
|
+
const result = await $fetch(`/api/repos/${currentRepoId.value}/prd/${slug}/archive`, {
|
|
637
|
+
method: "POST",
|
|
638
|
+
body: { archived }
|
|
639
|
+
});
|
|
640
|
+
await refreshPrds();
|
|
641
|
+
return result;
|
|
542
642
|
}
|
|
543
643
|
return {
|
|
544
644
|
prds,
|
|
545
645
|
prdsStatus,
|
|
646
|
+
showArchived,
|
|
546
647
|
refreshPrds,
|
|
648
|
+
setShowArchived,
|
|
649
|
+
toggleShowArchived,
|
|
650
|
+
setPrdArchived,
|
|
547
651
|
fetchDocument,
|
|
548
652
|
fetchTasks,
|
|
549
653
|
fetchProgress,
|
|
@@ -553,5 +657,5 @@ function usePrd() {
|
|
|
553
657
|
};
|
|
554
658
|
}
|
|
555
659
|
|
|
556
|
-
export { usePrd as a, useToast as b, cn as c, useRepos as u };
|
|
557
|
-
//# sourceMappingURL=usePrd-
|
|
660
|
+
export { Button as B, usePrd as a, useToast as b, cn as c, useRepos as u };
|
|
661
|
+
//# sourceMappingURL=usePrd-hXZOmvAv.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrd-hXZOmvAv.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/usePrd-hXZOmvAv.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
|