@vibeflow-tools/cli 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cli/index.js +23 -23
- package/dist/cli/review-gate-MGMU7CIR.js +2 -0
- package/dist/client/kanban-browser.js +15 -15
- package/dist/index.js +23 -23
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{j as f}from"./chunk-BBIA4IIO.js";import{g as a,l as m}from"./chunk-Q7MEW67Z.js";import"./chunk-XHZXHACL.js";import{join as l}from"path";import{existsSync as R}from"fs";function y(i,t,s,r){if(s.commitMessage||(s.commitMessage=void 0),!t)return{ok:!0};if(!s.comment?.trim())return{ok:!1,code:"REVIEW_COMMENT_REQUIRED",message:"Comment is required when setting status to review",suggestion:'Use --comment "what changed and why" when setting status to review'};if(r.settings.autoCommit&&!s.commitMessage?.trim())return{ok:!1,code:"COMMIT_MESSAGE_REQUIRED",message:"--commit-message is required (auto-commit setting is ON)",suggestion:'Stage your changes first, then provide a one-line commit summary with --commit-message "fix: description"'};if(r.settings.createBranch&&!s.branch?.trim())return{ok:!1,code:"BRANCH_REQUIRED",message:"--branch is required (create-branch setting is ON)",suggestion:"Provide the git branch name created for this task with --branch"};if(r.settings.requireVerifyBeforeReview&&!s.skipVerify){let o=a(i,t),e=o?m(o):null;if(e){let n=e.cssSelector||e.selector&&e.selector!=="/",u=!!e.url;if(!!(n&&u)&&!e.verified){let h=l(i,".vibeflow","files",t);if(R(l(h,"baseline.json")))return{ok:!1,code:"VERIFY_REQUIRED",message:"vibeflow verify is required before setting status to review",suggestion:`Run: vibeflow verify ${t}`}}}}let c=a(i,t),g=c?m(c):null;return g&&(g.type??"").toLowerCase()==="research"&&!f(i,t).some(n=>/\.md$/i.test(n.name))?{ok:!1,code:"RESEARCH_REPORT_REQUIRED",message:"Cannot mark Research task as review: no .md report file attached",suggestion:"Provide a research report with --report-file ./my-report.md"}:{ok:!0}}export{y as checkReviewTransition};
|