@gruum/cli 0.1.15 → 0.1.16
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/gruum.mjs +1 -1
- package/package.json +15 -2
package/gruum.mjs
CHANGED
|
@@ -108,7 +108,7 @@ ${w}
|
|
|
108
108
|
`)}catch{process.stderr.write(`gruum: couldn't reach Gruum to report this check. The local result still stands.
|
|
109
109
|
`)}}async function Lo(e,t,n){let s=await Nn(e);if(!s)return{ok:!1,text:"Sign in with gruum login before requesting an exception."};let r=It(e.repoDir);if(!r)return{ok:!1,text:"This folder is not on a named git branch."};try{let o=await Z(s.credentials,`/api/v2/cli/projects/${encodeURIComponent(s.project.id)}/drift`,{method:"POST",body:JSON.stringify({action:"request",concept:"button",branch:r,commit:Co(e.repoDir),reason:n,item:t})}),i=await o.json().catch(()=>({}));if(!o.ok)return{ok:!1,text:i.error||`Request failed (${o.status}).`};let a=i.reviewUrl?`${On(s.credentials)}${i.reviewUrl}`:"",l=i.created?`Exception request ${i.id} is pending review.`:`An exception for this change is already pending (${i.id}).`;return{ok:!0,text:a?`${l}
|
|
110
110
|
${a}`:l}}catch{return{ok:!1,text:"Couldn't reach Gruum to request an exception."}}}async function Oo(e,t){let n=await Nn(e);if(!n)return{ok:!1,text:"Sign in with gruum login to see exception status."};let s=It(e.repoDir);try{let r=await Z(n.credentials,`/api/v2/cli/projects/${encodeURIComponent(n.project.id)}/drift?concept=button&branch=${encodeURIComponent(s)}`);if(!r.ok)return{ok:!1,text:`Couldn't load exceptions (${r.status}).`};let o=await r.json(),i=Array.isArray(o.requests)?o.requests:[],a=t?i.filter(l=>l.id===t):i;return a.length===0?{ok:!0,text:t?`No exception request ${t} on ${s||"this branch"}.`:`No exception requests on ${s||"this branch"}.`}:{ok:!0,text:a.map(l=>`${l.id} ${l.status} ${l.title} (${l.branch})`).join(`
|
|
111
|
-
`)}}catch{return{ok:!1,text:"Couldn't reach Gruum to read exception status."}}}var Ot="0.1.
|
|
111
|
+
`)}}catch{return{ok:!1,text:"Couldn't reach Gruum to read exception status."}}}var Ot="0.1.16",Mo=`gruum ${Ot}: keep buttons on the Gruum spec
|
|
112
112
|
|
|
113
113
|
Run it as \`npx @gruum/cli <command>\`.
|
|
114
114
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gruum/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Keep buttons on the Gruum spec: a local drift check, Cursor hooks, and an MCP server.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design",
|
|
7
|
+
"drift",
|
|
8
|
+
"cursor",
|
|
9
|
+
"audit",
|
|
10
|
+
"code",
|
|
11
|
+
"qa",
|
|
12
|
+
"design-system",
|
|
13
|
+
"mcp",
|
|
14
|
+
"pre-commit",
|
|
15
|
+
"buttons",
|
|
16
|
+
"lint"
|
|
17
|
+
],
|
|
5
18
|
"type": "module",
|
|
6
19
|
"bin": {
|
|
7
20
|
"gruum": "gruum.mjs"
|
|
@@ -12,5 +25,5 @@
|
|
|
12
25
|
"engines": {
|
|
13
26
|
"node": ">=20"
|
|
14
27
|
},
|
|
15
|
-
"license": "
|
|
28
|
+
"license": "EULA"
|
|
16
29
|
}
|