@lovek4d/kickflip 0.7.8 → 0.9.0
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/CONTEXT.md +10 -6
- package/SKILL.md +19 -13
- package/bin/event-lines.mjs +1 -1
- package/bin/install.mjs +3 -3
- package/board/bin/board.mjs +35 -13
- package/board/commit-message.mjs +6 -0
- package/board/domain.mjs +7 -7
- package/board/finish.mjs +5 -4
- package/board/headless.mjs +8 -8
- package/board/hub-lines.mjs +1 -1
- package/board/public/app-header.js +23 -0
- package/board/public/app-needs.js +1 -1
- package/board/public/app-reader.js +6 -2
- package/board/public/app.html +2 -0
- package/board/public/app.js +2 -0
- package/board/public/attach.js +12 -0
- package/board/public/col-resize.js +73 -0
- package/board/public/dialogs.js +3 -0
- package/board/public/prototype-kit.js +1 -1
- package/board/public/prototype.html +1 -0
- package/board/public/sidebar.css +8 -2
- package/board/public/style.css +33 -11
- package/board/public/ui-header.js +2 -2
- package/board/public/ui-sidebar.js +11 -3
- package/board/public/ui-threads.js +1 -0
- package/board/public/view-hub.js +2 -2
- package/board/public/view-questions.js +2 -1
- package/board/render-check.mjs +8 -8
- package/board/server.mjs +18 -18
- package/board/store.mjs +32 -31
- package/board/tickets.mjs +3 -3
- package/board/worktree.mjs +21 -19
- package/hooks-plugin/hooks/usage-gate.mjs +1 -3
- package/hub/boards.mjs +4 -4
- package/hub/home.mjs +1 -1
- package/hub/hub.mjs +11 -11
- package/hub/pr-report.mjs +2 -2
- package/hub/readiness.mjs +1 -1
- package/hub/review-send.mjs +1 -1
- package/hub/schedule.mjs +1 -1
- package/hub/slack.mjs +2 -2
- package/hub/views.mjs +1 -1
- package/package.json +1 -1
- package/shared/fake-gh.mjs +9 -4
package/shared/fake-gh.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
1
|
+
var u=Object.defineProperty;var t=(r,e)=>u(r,"name",{value:e,configurable:!0});import n from"node:fs";import l from"node:path";import{PR_VIEW_FIELDS as g}from"../hub/pr-report.mjs";const o=t((r,e,s,i)=>{const a=l.join(r,e,`${String(s).replace(/[/#]/g,"__")}.json`);n.mkdirSync(l.dirname(a),{recursive:!0}),n.writeFileSync(a,JSON.stringify(i))},"write"),x=t((r,e,s)=>o(r,"pr",e,s),"writePR"),b=t((r,e,s)=>o(r,"issue-comments",e,s),"writeIssueComments"),v=t((r,e,s)=>o(r,"review-comments",e,s),"writeReviewComments"),S=t((r,e,s)=>o(r,"reviews",e,s),"writeReviews"),_=t((r,e,s)=>o(r,"merge",e,s),"writeMerge"),f={title:"feat: the work",body:"Checked it.",commits:[{messageBody:`Refs: A1
|
|
2
|
+
Co-Authored-By: Claude <noreply@anthropic.com>`}]},j=t((r,e,s)=>o(r,"ready",e,s),"writeReady"),R=t((r,e,s)=>o(r,"open",e,s),"writeOpen"),O=t((r,e)=>o(r,"","user",e),"writeUser"),N=t((r,e,s={login:e})=>o(r,"github-users",e,s),"writeGithubUser"),q=t((r,e,s)=>o(r,"collaborators",e.replace("/","__"),s),"writeCollaborators"),A=t((r,e)=>o(r,"","accounts",e),"writeAccounts"),c=t((r,e)=>{try{return n.readFileSync(l.join(r,e),"utf8").trim().split(`
|
|
3
|
+
`).filter(Boolean).map(JSON.parse)}catch{return[]}},"jsonl"),d=t(r=>c(r,"calls.jsonl"),"calls"),k=t((r,e)=>o(r,"","rate",e),"writeRate"),J=t((r,e)=>o(r,"","limit",e),"writeLimit"),E=t(r=>d(r).filter(e=>e[0]==="api"&&e[1]==="graphql").map(e=>[...e[3].matchAll(/repository\(owner: "([^"]+)", name: "([^"]+)"\) \{ pullRequest\(number: (\d+)\)/g)].map(([,s,i,a])=>`${s}/${i}#${a}`)),"queried"),$=t(r=>c(r,"tokens.jsonl"),"tokens");function P({head:r="abc1234567",failing:e=[],pending:s=0,...i}={}){return{state:"OPEN",isDraft:!1,reviewDecision:"REVIEW_REQUIRED",mergeable:"MERGEABLE",mergeStateStatus:"BLOCKED",headRefOid:r,statusCheckRollup:[...e.map(a=>({__typename:"CheckRun",name:a,status:"COMPLETED",conclusion:"FAILURE"})),...Array.from({length:s},(a,p)=>({__typename:"CheckRun",name:`ci-${p}`,status:"IN_PROGRESS",conclusion:""}))],...i}}t(P,"prView");function I(r){const e=l.join(r,"bin");return n.mkdirSync(e,{recursive:!0}),n.writeFileSync(l.join(e,"gh"),`#!${process.execPath}
|
|
3
4
|
const fs = require('node:fs');
|
|
4
5
|
const path = require('node:path');
|
|
5
6
|
const dir = ${JSON.stringify(r)};
|
|
@@ -43,7 +44,7 @@ if (args[0] === 'issue' && args.includes('--repo')) {
|
|
|
43
44
|
else if (args[1] !== 'close') fail();
|
|
44
45
|
process.exit(0);
|
|
45
46
|
}
|
|
46
|
-
if (args.length
|
|
47
|
+
if (args.length >= 6 && args[0] === 'pr' && args[1] === 'merge' && /^\\d+$/.test(args[2]) && args[3] === '--repo' && args[5] === '--squash') {
|
|
47
48
|
let refused = null;
|
|
48
49
|
try { refused = JSON.parse(fs.readFileSync(fixture('merge', args[4], args[2]), 'utf8')).error; } catch {}
|
|
49
50
|
if (refused) { console.error(refused); process.exit(1); }
|
|
@@ -103,6 +104,10 @@ if (args[0] === 'pr' && args[1] === 'create' && args.includes('--repo')) {
|
|
|
103
104
|
console.log('https://github.com/' + args[args.indexOf('--repo') + 1] + '/pull/' + (99 + n));
|
|
104
105
|
process.exit(0);
|
|
105
106
|
}
|
|
107
|
+
if (args.length === 7 && args[0] === 'pr' && args[1] === 'view' && /^\\d+$/.test(args[2]) && args[3] === '--repo' && args[5] === '--json' && args[6] === 'title,body,commits') {
|
|
108
|
+
console.log(${JSON.stringify(JSON.stringify(f))});
|
|
109
|
+
process.exit(0);
|
|
110
|
+
}
|
|
106
111
|
let file;
|
|
107
112
|
let list = false;
|
|
108
113
|
if (args.length === 7 && args[0] === 'pr' && args[1] === 'view' && /^\\d+$/.test(args[2]) && args[3] === '--repo' && args[5] === '--json' && args[6] === ${JSON.stringify(g)}) file = fixture('pr', args[4], args[2]);
|
|
@@ -130,4 +135,4 @@ if (list) {
|
|
|
130
135
|
try { if (JSON.parse(value).fail) fail(); } catch {}
|
|
131
136
|
console.log(value);
|
|
132
137
|
}
|
|
133
|
-
`,{mode:493}),e}t(I,"fakeGh");export{f as calls,I as fakeGh,P as prView,E as queried
|
|
138
|
+
`,{mode:493}),e}t(I,"fakeGh");export{f as SQUASH_SOURCE,d as calls,I as fakeGh,P as prView,E as queried,$ as tokens,A as writeAccounts,q as writeCollaborators,N as writeGithubUser,b as writeIssueComments,J as writeLimit,_ as writeMerge,R as writeOpen,x as writePR,k as writeRate,j as writeReady,v as writeReviewComments,S as writeReviews,O as writeUser};
|