vault commit: 2025-10-02 17:45, 8 files changed
This commit is contained in:
@@ -7,24 +7,24 @@ if (!file) { new Notice("Open a Faction note first."); return; }
|
||||
const today = tp.date.now("YYYY-MM-DD");
|
||||
|
||||
// ---------- TYPE ----------
|
||||
new Notice("Step 1/6 — Pick Intel TYPE");
|
||||
const TYPE_OPTIONS = ["interaction","report","rumor","asset","op"];
|
||||
new Notice("Step 1/6 — Pick TYPE of Intelligence");
|
||||
const TYPE_OPTIONS = ["interaction","report","rumor","asset","op","lore"];
|
||||
const type = await tp.system.suggester(TYPE_OPTIONS.map(x => `Type: ${x}`), TYPE_OPTIONS);
|
||||
if (!type) { new Notice("Cancelled."); return; }
|
||||
|
||||
// ---------- SOURCE (suggest existing notes as [[Note]]) ----------
|
||||
new Notice("Step 2/6 — Choose SOURCE");
|
||||
new Notice("Step 2/6 — Select Intelligence SOURCE");
|
||||
const allFiles = app.vault.getMarkdownFiles();
|
||||
const names = allFiles.map(f => f.basename).sort((a,b)=>a.localeCompare(b, undefined, {sensitivity:"base"}));
|
||||
const wikiChoices = ["(manual entry)…", ...names.map(n => `[[${n}]]`)];
|
||||
const wikiChoices = ["(Manual Entry)…", ...names.map(n => `[[${n}]]`)];
|
||||
let sourcePick = await tp.system.suggester(wikiChoices, wikiChoices);
|
||||
if (!sourcePick) { new Notice("Cancelled."); return; }
|
||||
let source = sourcePick === "(manual entry)…"
|
||||
let source = sourcePick === "(Manual Entry)…"
|
||||
? (await tp.system.prompt("Source (free text or [[Link]])")) ?? ""
|
||||
: sourcePick;
|
||||
|
||||
// ---------- SUMMARY (free text, then auto-complete [[links]]) ----------
|
||||
new Notice("Step 3/6 — Write SUMMARY (you can include [[links]])");
|
||||
new Notice("Step 3/6 — Write Intelligence SUMMARY");
|
||||
let summary = await tp.system.prompt("Summary (what happened)?\nTip: You can include [[Note]] names; we’ll auto-complete them next.") ?? "";
|
||||
|
||||
// Helper: resolve [[links]] in the summary to existing notes (prompt if ambiguous)
|
||||
@@ -67,12 +67,12 @@ while (true) {
|
||||
|
||||
// ---------- RELIABILITY / CREDIBILITY ----------
|
||||
new Notice("Step 4/6 — Reliability (A–E)");
|
||||
const relDisplay = ["A — confirmed","B — likely","C — uncertain","D — doubtful","E — unknown"];
|
||||
const relDisplay = ["A — Confirmed","B — Likely","C — Uncertain","D — Doubtful","E — Unknown"];
|
||||
const relValues = ["A","B","C","D","E"];
|
||||
const reliability = (await tp.system.suggester(relDisplay, relValues)) ?? "C";
|
||||
|
||||
new Notice("Step 5/6 — Credibility (1–5)");
|
||||
const credDisplay = ["5 — strong","4 — good","3 — fair","2 — weak","1 — very weak"];
|
||||
const credDisplay = ["5 — Strong","4 — Good","3 — Fair","2 — Weak","1 — Very Weak"];
|
||||
const credValues = ["5","4","3","2","1"];
|
||||
const credibility = (await tp.system.suggester(credDisplay, credValues)) ?? "3";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user