nfo-cli 0.0.2 → 0.0.3-a
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 +21 -10
- package/dist/cli.js +64 -54
- package/dist/cli.js.map +1 -1
- package/dist/commands/restore.js +0 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/tui.js +6 -4
- package/dist/commands/tui.js.map +1 -1
- package/dist/permission.js +8 -8
- package/dist/permission.js.map +1 -1
- package/dist/prompts/orchestrator-role.js +6 -7
- package/dist/prompts/orchestrator-role.js.map +1 -1
- package/dist/tui/App.js +5 -5
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/AppView.js +1 -1
- package/dist/tui/AppView.js.map +1 -1
- package/dist/tui/SidebarHeader.js +1 -1
- package/dist/tui/SidebarHeader.js.map +1 -1
- package/dist/tui/StatusBar.js +1 -1
- package/dist/tui/StatusBar.js.map +1 -1
- package/dist/tui/components/App.js +428 -0
- package/dist/tui/components/App.js.map +1 -0
- package/dist/tui/components/AppView.js +13 -0
- package/dist/tui/components/AppView.js.map +1 -0
- package/dist/tui/components/Auditorium.js +17 -0
- package/dist/tui/components/Auditorium.js.map +1 -0
- package/dist/tui/components/ConcertHall.js +11 -0
- package/dist/tui/components/ConcertHall.js.map +1 -0
- package/dist/tui/components/Help.js +41 -0
- package/dist/tui/components/Help.js.map +1 -0
- package/dist/tui/components/OrchestratorPane.js +34 -0
- package/dist/tui/components/OrchestratorPane.js.map +1 -0
- package/dist/tui/components/SidebarHeader.js +6 -0
- package/dist/tui/components/SidebarHeader.js.map +1 -0
- package/dist/tui/components/StatusBar.js +6 -0
- package/dist/tui/components/StatusBar.js.map +1 -0
- package/package.json +10 -2
- package/src/cli.ts +119 -86
- package/src/commands/tui.tsx +10 -4
- package/src/permission.ts +8 -8
- package/src/prompts/orchestrator-role.ts +3 -2
- package/src/tui/{App.tsx → components/App.tsx} +22 -20
- package/src/tui/{AppView.tsx → components/AppView.tsx} +5 -3
- package/src/tui/{Auditorium.tsx → components/Auditorium.tsx} +3 -3
- package/src/tui/{ConcertHall.tsx → components/ConcertHall.tsx} +1 -1
- package/src/tui/{Help.tsx → components/Help.tsx} +0 -9
- package/src/tui/{OrchestratorPane.tsx → components/OrchestratorPane.tsx} +1 -1
- package/src/tui/{SidebarHeader.tsx → components/SidebarHeader.tsx} +3 -1
- package/src/tui/{StatusBar.tsx → components/StatusBar.tsx} +1 -3
- package/tests/permission.test.ts +15 -5
- package/tests/tui/AppView.test.tsx +2 -2
- package/tests/tui/Auditorium.test.tsx +1 -1
- package/tests/tui/ConcertHall.test.tsx +1 -1
- package/tests/tui/Help.test.tsx +1 -1
- package/tests/tui/OrchestratorPane.test.ts +1 -1
- package/tests/tui/SidebarHeader.test.tsx +1 -1
- package/tests/tui/StatusBar.test.tsx +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { render } from 'ink-testing-library';
|
|
3
|
-
import { Auditorium } from '../../src/tui/Auditorium.js';
|
|
3
|
+
import { Auditorium } from '../../src/tui/components/Auditorium.js';
|
|
4
4
|
import type { Musician } from '../../src/state.types.js';
|
|
5
5
|
|
|
6
6
|
function mus(over: Partial<Musician>): Musician {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { render } from 'ink-testing-library';
|
|
3
|
-
import { ConcertHall } from '../../src/tui/ConcertHall.js';
|
|
3
|
+
import { ConcertHall } from '../../src/tui/components/ConcertHall.js';
|
|
4
4
|
import type { OrchestraSummary } from '../../src/commands/list.js';
|
|
5
5
|
|
|
6
6
|
function orch(over: Partial<OrchestraSummary>): OrchestraSummary {
|
package/tests/tui/Help.test.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { render } from 'ink-testing-library';
|
|
3
|
-
import { Help } from '../../src/tui/Help.js';
|
|
3
|
+
import { Help } from '../../src/tui/components/Help.js';
|
|
4
4
|
|
|
5
5
|
describe('Help', () => {
|
|
6
6
|
it('lists the core keybindings', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { resolveSpanStyle } from '../../src/tui/OrchestratorPane.js';
|
|
2
|
+
import { resolveSpanStyle } from '../../src/tui/components/OrchestratorPane.js';
|
|
3
3
|
|
|
4
4
|
describe('resolveSpanStyle', () => {
|
|
5
5
|
it('renders a visible block cursor when the terminal is focused', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { render } from 'ink-testing-library';
|
|
3
|
-
import { SidebarHeader } from '../../src/tui/SidebarHeader.js';
|
|
3
|
+
import { SidebarHeader } from '../../src/tui/components/SidebarHeader.js';
|
|
4
4
|
|
|
5
5
|
describe('SidebarHeader', () => {
|
|
6
6
|
it('renders orchestra id and musician counts', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { render } from 'ink-testing-library';
|
|
3
|
-
import { StatusBar } from '../../src/tui/StatusBar.js';
|
|
3
|
+
import { StatusBar } from '../../src/tui/components/StatusBar.js';
|
|
4
4
|
|
|
5
5
|
describe('StatusBar', () => {
|
|
6
6
|
it('shows permission level and the token placeholder', () => {
|