-
-
Notifications
You must be signed in to change notification settings - Fork 227
docs(install): per-agent install matrix + first-run welcome #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7e2342a
f9a328c
e8aac47
089f579
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -120,7 +120,23 @@ async function main() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Not a git repo or git not available | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log('[ProWorkflow] Ready. Use /wrap-up before ending, /learn to capture corrections.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const stateDir = path.join(os.homedir(), '.pro-workflow'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const firstRunFlag = path.join(stateDir, '.welcomed'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (!fs.existsSync(firstRunFlag)) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| try { fs.mkdirSync(stateDir, { recursive: true }); } catch (e) {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log('[ProWorkflow] First run detected. Five commands to know:'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(' /learn-rule capture a correction so it never repeats'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(' /wrap-up end-of-session ritual (audit + persist + handoff)'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(' /wiki init start a persistent FTS5 research wiki'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(' /develop research -> plan -> implement with gates'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(' /smart-commit quality-gated conventional commit'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log('[ProWorkflow] Run /doctor to verify install. Full list: /list'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| try { fs.writeFileSync(firstRunFlag, new Date().toISOString()); } catch (e) {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+126
to
+137
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don’t silently swallow first-run marker write failures. If directory creation or marker write fails, users will repeatedly see “first run” with no clue why. Log a warning in these catch blocks so setup issues are diagnosable. Suggested patch- try { fs.mkdirSync(stateDir, { recursive: true }); } catch (e) {}
+ try { fs.mkdirSync(stateDir, { recursive: true }); } catch (e) {
+ log(`[ProWorkflow] Warning: could not create state dir at ${stateDir}: ${e.message}`);
+ }
@@
- try { fs.writeFileSync(firstRunFlag, new Date().toISOString()); } catch (e) {}
+ try { fs.writeFileSync(firstRunFlag, new Date().toISOString()); } catch (e) {
+ log(`[ProWorkflow] Warning: could not persist welcome flag at ${firstRunFlag}: ${e.message}`);
+ }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log('[ProWorkflow] Ready. Use /wrap-up before ending, /learn to capture corrections.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| process.exit(0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.