Add daily logs and templates for project fidelity
- Created daily log entries for May 13, 14, 18, 19, 20, and 21, capturing work done, findings, and next steps. - Established a daily logs index for easy navigation of daily notes. - Developed templates for daily logs, decisions, meeting notes, people, systems, and work items to standardize documentation. - Introduced base files for filtering and displaying various types of project knowledge, including daily notes, decisions, people, systems, work items, and workstreams. - Added maps for current work, fidelity apps, and fidelity domain to enhance project navigation and context.
This commit is contained in:
@@ -43,6 +43,21 @@ async function resolveSyncContent(directory, stdoutText) {
|
||||
return (generated || "").trim()
|
||||
}
|
||||
|
||||
async function resolveProfileInbox(directory) {
|
||||
const profile = process.env.AIW_PROJECT_PROFILE?.trim() || "fidelity"
|
||||
const configured = process.env.AIW_PROJECT_INBOX_DIR?.trim()
|
||||
if (configured) return path.isAbsolute(configured) ? configured : path.join(directory, configured)
|
||||
|
||||
const workspaceConfigPath = path.join(directory, "profiles", profile, "workspace.json")
|
||||
try {
|
||||
const config = JSON.parse(await readFile(workspaceConfigPath, "utf8"))
|
||||
const inboxDir = config?.inbox_dir || `workspaces/${profile}/inbox`
|
||||
return path.isAbsolute(inboxDir) ? inboxDir : path.join(directory, inboxDir)
|
||||
} catch {
|
||||
return path.join(directory, "workspaces", profile, "inbox")
|
||||
}
|
||||
}
|
||||
|
||||
function extractPromptText(event) {
|
||||
const candidates = [
|
||||
event?.properties?.text,
|
||||
@@ -144,7 +159,7 @@ export const MattermostInbox = async ({ $, directory, client }) => {
|
||||
lastSyncAt = now
|
||||
const syncStartedAt = Date.now()
|
||||
|
||||
const inboxDir = path.join(directory, "ai/inbox")
|
||||
const inboxDir = await resolveProfileInbox(directory)
|
||||
const latestPath = path.join(inboxDir, "mattermost-latest.md")
|
||||
const statusPath = path.join(inboxDir, "mattermost-status.json")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user