feat(7831): every record a session is shown, asks for or opens on its own is recorded per session, by kind
CI & Build / Plugin hooks (push) Successful in 18s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 38s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m6s
CI & Build / Build & push image (push) Successful in 32s
CI & Build / Plugin hooks (push) Successful in 18s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 38s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m6s
CI & Build / Build & push image (push) Successful in 32s
A ledger beside the rule deliveries (record_deliveries, migration 0136): - every note, snippet, issue, lesson or process line a plugin door pushes is recorded against the session, only when the payload kept it; - a search the session runs itself records its results as asked, matched to the server log of that call; - an open is stamped on the delivery it followed, or recorded as direct when nothing showed the record first. The plugin reports opens and searches from the tool calls (grimoire_record_read.sh). The readout is in retrieval_telemetry (record_reach), at /api/retrieval/record-reach, and in Settings > Moments as "How records reach the work". Plugin 2026.11.24.1827. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,9 +4,10 @@ import { useMomentsStore } from "@/stores/moments";
|
||||
import MomentProposals from "@/components/MomentProposals.vue";
|
||||
import MomentRuleUsage from "@/components/MomentRuleUsage.vue";
|
||||
import WeightProposals from "@/components/WeightProposals.vue";
|
||||
import RecordReach from "@/components/RecordReach.vue";
|
||||
import RuleAdherence from "@/components/RuleAdherence.vue";
|
||||
import { getAdherence } from "@/api/moments";
|
||||
import type { AdherencePayload, MomentAction, MomentAdherenceRow, MomentUsage } from "@/api/moments";
|
||||
import { getAdherence, getRecordReach } from "@/api/moments";
|
||||
import type { AdherencePayload, MomentAction, MomentAdherenceRow, MomentUsage, RecordReachPayload } from "@/api/moments";
|
||||
import { fmtDate } from "@/utils/dateFormat";
|
||||
|
||||
/**
|
||||
@@ -48,6 +49,20 @@ async function loadAdherence() {
|
||||
}
|
||||
}
|
||||
|
||||
// How records other than rules reach sessions, read on its own for the same
|
||||
// reason as adherence.
|
||||
const reach = ref<RecordReachPayload | null>(null);
|
||||
const reachFailed = ref(false);
|
||||
|
||||
async function loadReach() {
|
||||
try {
|
||||
reach.value = await getRecordReach(days.value);
|
||||
reachFailed.value = false;
|
||||
} catch {
|
||||
reachFailed.value = true;
|
||||
}
|
||||
}
|
||||
|
||||
function followed(moment: string): MomentAdherenceRow | null {
|
||||
return adherence.value?.by_moment.find((m) => m.at === moment) ?? null;
|
||||
}
|
||||
@@ -128,7 +143,7 @@ async function addMapping() {
|
||||
|
||||
onMounted(async () => {
|
||||
await store.load(true);
|
||||
await loadAdherence();
|
||||
await Promise.all([loadAdherence(), loadReach()]);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -156,6 +171,7 @@ onMounted(async () => {
|
||||
<MomentProposals />
|
||||
<WeightProposals />
|
||||
<RuleAdherence :data="adherence" :failed="adherenceFailed" @retry="loadAdherence" />
|
||||
<RecordReach :data="reach" :failed="reachFailed" @retry="loadReach" />
|
||||
|
||||
<ul class="moment-list">
|
||||
<li v-for="m in catalog" :key="m.name" class="moment-row">
|
||||
|
||||
Reference in New Issue
Block a user