@binclusive/cli 0.1.4 → 0.2.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/README.md CHANGED
@@ -24,6 +24,17 @@ b8e tickets # list and view violation tickets
24
24
 
25
25
  Run `b8e` with no arguments in an interactive terminal to get a menu.
26
26
 
27
+ ## Accessibility
28
+
29
+ The CLI is screen-reader friendly. It auto-detects a running screen reader
30
+ (VoiceOver, NVDA, JAWS, Orca) and switches to a linear mode where menus and
31
+ pickers announce the focused item and its position, and audits announce
32
+ progress and findings instead of drawing a dashboard.
33
+
34
+ - Force it on: `b8e --screen-reader …` (or `-a`, or `INK_SCREEN_READER=true`)
35
+ - Force it off: `b8e --no-screen-reader …`
36
+ - During an audit, press `r` to hear the current status.
37
+
27
38
  ## Audits
28
39
 
29
40
  ```bash
@@ -0,0 +1,2 @@
1
+ import { createRequire as __cjsCreateRequire } from 'node:module'; const require = __cjsCreateRequire(import.meta.url);
2
+ import{c as x,f as I}from"./chunk-YIGNFOT4.js";import{a as f,b as i,m as g,r as p}from"./chunk-SNQ7SXG3.js";import"./chunk-3MDNIFWR.js";import{d}from"./chunk-PCQ2R3VR.js";var t=d(x(),1);function L(n){return n?[{label:"Select organization",action:"selectOrg"},{label:"Run audit",action:"audit"},{label:"View tickets",action:"tickets"},{label:"Whoami",action:"whoami"},{label:"Quit",action:"quit"}]:[{label:"Login",action:"login"},{label:"Quit",action:"quit"}]}function A({loggedIn:n,orgName:c,userName:o,userEmail:e,onSelect:r}){let{exit:a}=g(),s=p(),u=L(n),M=u.map(l=>({id:l.action,label:l.label})),C=n?`b8e CLI menu. ${o||e?`Signed in as ${o??e}. `:""}Organization: ${c??"none selected"}`:"b8e CLI menu. Not signed in",m=(0,t.jsx)(I,{title:s?C:"Menu",items:M,onSubmit:l=>{let b=u.find(T=>T.action===l[0]);b&&(r(b.action),a())},onCancel:()=>{r("quit"),a()}});return s?m:(0,t.jsxs)(f,{flexDirection:"column",children:[(0,t.jsx)(i,{bold:!0,children:"b8e \u2014 Binclusive CLI"}),n?(0,t.jsxs)(t.Fragment,{children:[o||e?(0,t.jsxs)(i,{dimColor:!0,children:["User: ",o??e,o&&e?(0,t.jsxs)(i,{dimColor:!0,children:[" \xB7 ",e]}):null]}):null,(0,t.jsxs)(i,{dimColor:!0,children:["Organization: ",c??"(none \u2014 select one)"]})]}):(0,t.jsx)(i,{dimColor:!0,children:"Not signed in"}),m]})}export{A as Menu};