@staff0rd/assist 0.913.0 → 0.915.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/claude/commands/review-pr-comments.md +2 -2
- package/dist/commands/extension/extension/background.js +1 -1
- package/dist/commands/extension/extension/content.js +40 -40
- package/dist/commands/extension/extension/docs.js +114 -14
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +490 -490
- package/dist/index.js +17 -4
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ If `$ARGUMENTS` contains `--batch`, collect every decision before changing anyth
|
|
|
56
56
|
|
|
57
57
|
1. For each thread, display it, analyse it and ask the user with AskUserQuestion exactly as in steps 1–3, recording their choice and your recommended fix. Do not edit any file, commit, reply or resolve anything until every thread has a decision.
|
|
58
58
|
2. Once every thread has a decision, implement each **Address** thread in turn and run `/commit` after each — one commit per thread — noting its SHA.
|
|
59
|
-
3. Run `
|
|
59
|
+
3. Run `assist prs fixed <comment-id> <sha>` for each addressed thread with the SHA of the commit that addressed it — the first one pushes every commit, so do not run `git push` yourself — and `assist prs wontfix <comment-id> "<reason>"` for each **Do not address** thread as in step 4. Leave skipped threads untouched.
|
|
60
60
|
|
|
61
61
|
## Auto mode
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ If `$ARGUMENTS` contains `--auto`, process the threads without asking the user,
|
|
|
66
66
|
- **Address**: implement the fix and run `/commit` — one commit per thread — noting the SHA. Do not push yet and do not run `assist prs fixed` yet.
|
|
67
67
|
- **Do not address**: run `assist prs wontfix <comment-id> "<reason>"` as in step 4.
|
|
68
68
|
2. If you cannot confidently decide on a thread — the comment is unclear, the fix is risky or large, or reasonable people would disagree — put that one thread to the user with AskUserQuestion exactly as in step 3, act on their choice as above, then continue automatically with the next thread.
|
|
69
|
-
3. Once every thread has been processed, run `
|
|
69
|
+
3. Once every thread has been processed, run `assist prs fixed <comment-id> <sha>` for each addressed thread with the SHA of the commit that addressed it — the first one pushes every commit, so do not run `git push` yourself.
|
|
70
70
|
4. Finish with a closing summary listing each thread and its outcome, calling out any thread that was skipped so the user can revisit it.
|
|
71
71
|
|
|
72
72
|
## Bodies containing markdown
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{function
|
|
1
|
+
"use strict";(()=>{function c(s){let{type:e,pageId:o,prompt:t}=s??{};return e==="assist-docs-feedback"&&typeof o=="string"&&typeof t=="string"}async function r(s,e,o){let t;try{t=await fetch(`${s}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})}catch{return{ok:!1,message:`assist web server unreachable at ${s}`}}let n=await t.json().catch(()=>({}));return t.ok?{ok:!0,data:n}:{ok:!1,message:n.error??`assist web server returned ${t.status}`}}async function u(s,{type:e,...o}){let t=await r(s,"/api/sessions/docs-feedback",o);return t.ok?{ok:!0,message:t.data.message??"Sent to the docs session"}:t}function p(){return globalThis.browser?.storage?.local}function g(s){let e;try{e=new URL(s.trim())}catch{return}if(!(e.protocol!=="http:"&&e.protocol!=="https:"))return e.origin}var A="http://localhost:3100",m="serverUrl";async function d(){let e=(await p()?.get(m).catch(()=>{}))?.[m];return typeof e=="string"&&g(e)||A}var S={draft:["draft","--once"]};function f(s){return typeof s=="string"&&Object.hasOwn(S,s)}function l(s){let{type:e,url:o,args:t,mode:n}=s??{};return e==="assist-send"&&typeof o=="string"&&(t===void 0||Array.isArray(t)&&t.every(i=>typeof i=="string"))&&(n===void 0||f(n))}function y(){return globalThis.browser?.runtime}async function b(s,{url:e,instructions:o,args:t,mode:n}){let[i,k]=t?["review-from-github",{url:e,args:t}]:["from-github",{url:e,instructions:o,mode:n}],a=await r(s,`/api/sessions/${i}`,k);return a.ok?{ok:!0,message:`assist session started in ${a.data.cwd}`}:a}function h(){y()?.onMessage.addListener(s=>{if(l(s))return d().then(e=>b(e,s));if(c(s))return d().then(e=>u(e,s))})}h();})();
|