Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | 1x 1x 1x 8x | <template>
<PageHero
carry="hero-method"
:title="$t('method.title')"
:mark="$t('method.titleMark')"
:lead="$t('method.lead')"
/>
<RuleSection
id="look"
:number="1"
skill="benchmark"
:count="benchmarks.length"
:to="LINKS.benchmarks"
>
<p v-if="sites" class="font-mono text-sm/loose text-muted">{{ sites }}</p>
</RuleSection>
<RuleSection
id="decide"
:number="2"
skill="decision-report"
:count="decisions.length"
:to="LINKS.decisions"
>
<DecisionQuestions :items="decisionItems" />
</RuleSection>
<RuleSection id="plan" :number="3" :count="lessons" to="/agentic-workflows">
<TermList :items="templates" />
</RuleSection>
<RuleSection
id="agents"
:number="4"
:body-params="{ steps: PIPELINE.length }"
:to="LINKS.agents"
>
<TermList :items="pipeline" ordered wide />
</RuleSection>
<RuleSection id="prove" :number="5">
<MethodChecks :specs :rules />
</RuleSection>
<UContainer v-if="example" as="section" class="pt-6">
<ULink
:to="`/work/${example.slug}`"
class="group flex flex-col gap-2 border-t border-accented pt-10"
>
<span class="font-mono text-xs text-muted uppercase">
{{ $t("method.example.kicker") }}
</span>
<span class="font-display text-title text-highlighted group-hover:text-primary">
{{ example.title }} <mark>{{ example.mark }}</mark> →
</span>
<span class="text-lg">{{ $t("method.example.line") }}</span>
</ULink>
</UContainer>
</template>
<script setup lang="ts">
import { isStudy } from "~/utils/work";
const LINKS = {
benchmarks: portalUrl("/benchmarks"),
decisions: portalUrl("/decisions"),
agents: portalUrl("/wiki/docs/concepts/agent-setup"),
};
const DECISIONS = {
comments: "0009-comment-discipline",
console: "0032-console-output-policy",
board: "0035-one-board-area-labels",
visitor: "0040-developer-portal-visitor-structure",
} as const;
const { t } = useI18n();
useSeoMeta({ title: t("method.head"), description: t("method.lead") });
const decisionItems = Object.entries(DECISIONS).map(([key, id]) => ({
id,
question: t(`method.decide.decisions.${key}.question`),
answer: t(`method.decide.decisions.${key}.answer`),
}));
const pipeline = PIPELINE.map((id) => ({
id,
term: t(`method.agents.pipeline.${id}.step`),
detail: t(`method.agents.pipeline.${id}.does`),
}));
const [
{ data: benchmarks },
{ data: workflows },
{ data: work },
{ data: rules },
{ data: specs },
{ data: decisions },
] = await Promise.all([
useBenchmarks(),
useWorkflowTemplates(),
useWorkList(),
useRuleCounts(),
useSpecTotal(),
useDecisionReports(),
]);
const example = computed(() =>
work.value.filter(isStudy).find((entry) => entry.slug === "huella-legal"),
);
const sites = computed(() => benchmarks.value.map((item) => item.title).join(" · "));
const templates = computed(() =>
workflows.value.templates.map(({ id, title, summary }) => ({
id,
term: title,
detail: summary,
})),
);
const lessons = computed(() => workflows.value.lessons);
</script>
|