@longtable/cli 0.1.8 → 0.1.10

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
@@ -1,17 +1,17 @@
1
1
  # @longtable/cli
2
2
 
3
- Long Table의 researcher-facing CLI입니다.
3
+ Researcher-facing CLI for LongTable.
4
4
 
5
- 패키지의 핵심은 명령을 많이 외우게 하는 것이 아니라, 아래 두 단계를 명확하게 만드는 것입니다.
5
+ LongTable is an npm-first, provider-neutral research harness. It keeps the core
6
+ product contract in project files and shared packages, while Codex skills,
7
+ Claude skills, and future MCP surfaces remain generated adapter artifacts.
6
8
 
7
- 1. `longtable init`
8
- 2. `longtable start`
9
+ The basic contract is:
9
10
 
10
- 중요한 점:
11
-
12
- - 명령은 **터미널에서 실행하는 명령**입니다.
13
- - Codex 채팅창에 `longtable start`를 입력하는 것이 아닙니다.
14
- - `longtable start`로 프로젝트 작업공간을 만든 뒤, 그 디렉토리에서 `codex`를 여는 것이 기본 경로입니다.
11
+ 1. seed the researcher profile once
12
+ 2. create a workspace for each project
13
+ 3. continue the research conversation inside that workspace
14
+ 4. preserve decisions, tensions, and evidence as durable project state
15
15
 
16
16
  ## Install
17
17
 
@@ -19,117 +19,162 @@ Long Table의 researcher-facing CLI입니다.
19
19
  npm install -g @longtable/cli
20
20
  ```
21
21
 
22
- ## 1. Global setup
22
+ ## Primary Flow
23
23
 
24
24
  ```bash
25
25
  longtable init --flow interview
26
+ longtable start
27
+ cd "<project-path>"
28
+ codex
26
29
  ```
27
30
 
28
- 여기서는 연구자 프로필과 기본 선호를 묻습니다.
31
+ Return later:
29
32
 
30
- - 연구 분야
31
- - 연구자 역할
32
- - challenge 강도
33
- - 저자성/서사 관련 기본값
34
- - Long Table이 보통 어디서부터 시작해야 하는지
33
+ ```bash
34
+ cd "<project-path>"
35
+ longtable resume
36
+ codex
37
+ ```
35
38
 
36
- ## 2. Project start
39
+ ## What `longtable start` Creates
37
40
 
38
- ```bash
39
- longtable start
41
+ ```text
42
+ <project>/
43
+ AGENTS.md
44
+ CURRENT.md
45
+ .longtable/
46
+ project.json
47
+ current-session.json
48
+ state.json
49
+ sessions/
40
50
  ```
41
51
 
42
- 여기서는 실제 작업공간을 만듭니다.
52
+ ## Artifact Contract
53
+
54
+ - `AGENTS.md`: runtime guidance for Codex
55
+ - `CURRENT.md`: human-facing current view regenerated from state
56
+ - `.longtable/project.json`: stable project identity
57
+ - `.longtable/current-session.json`: current session cursor
58
+ - `.longtable/state.json`: layered memory state
59
+ - `.longtable/sessions/`: historical snapshots
43
60
 
44
- - 프로젝트 이름
45
- - 프로젝트 디렉토리 위치
46
- - 현재 세션 목표
47
- - 현재 blocker
48
- - 필요한 관점
49
- - disagreement 가시성
61
+ ## Why This Shape
50
62
 
51
- 그리고 Long Table은:
63
+ The CLI tries to keep the root simple for novice researchers while preserving enough structure for power users and downstream tooling.
52
64
 
53
- - 프로젝트 디렉토리 생성
54
- - `.longtable/` 메모리 파일 생성
55
- - 프로젝트용 `AGENTS.md` 생성
56
- - `START-HERE.md` 생성
57
- - `NEXT-STEPS.md` 생성
58
- - `SESSION-SNAPSHOT.md` 생성
65
+ The memory model distinguishes:
59
66
 
60
- 수행합니다.
67
+ - explicit state
68
+ - working state
69
+ - inferred hypotheses
70
+ - open tensions
71
+ - narrative traces
61
72
 
62
- ## Recommended flow
73
+ This is how LongTable avoids turning tacit knowledge into fake certainty.
74
+
75
+ ## Commands
63
76
 
64
77
  ```bash
65
- longtable init --flow interview
78
+ longtable init
66
79
  longtable start
67
- cd "<project-path>"
68
- codex
80
+ longtable resume --cwd "<project-path>"
81
+ longtable roles
82
+ longtable ask --cwd "<project-path>" --prompt "..."
83
+ longtable panel --prompt "..."
84
+ longtable codex install-skills
85
+ longtable claude install-skills
69
86
  ```
70
87
 
71
- 이게 현재 가장 신뢰할 있는 Long Table 사용 경로입니다.
72
-
73
- 돌아와서 다시 이어갈 때는:
88
+ Useful structured routes for scripts and debugging:
74
89
 
75
90
  ```bash
76
- cd "<project-path>"
77
- longtable resume
78
- codex
91
+ longtable panel --prompt "review this methods section" --json
92
+ longtable review --role methods_critic,measurement_auditor --panel --prompt "review this methods section" --json
93
+ longtable ask --prompt "lt panel: show the disagreement before I commit" --json
79
94
  ```
80
95
 
81
- ## After the project starts
96
+ ## Inside Codex
82
97
 
83
- 프로젝트 디렉토리 안에서는 보통 그냥 `codex`를 열고 자연어로 연구를 시작하면 됩니다.
98
+ Natural language should be the default.
84
99
 
85
- Codex 안에서 명시적으로 부르고 싶다면, 아래처럼 짧은 문법도 사용할 수 있습니다.
100
+ Explicit short forms are available when needed:
86
101
 
87
102
  ```text
88
- lt explore: 연구 질문을 어디서부터 좁혀야 할지 모르겠어.
89
- lt review: 주장 어디가 약한지 봐줘.
90
- lt panel: 방향에 대한 의견 충돌도 같이 보여줘.
91
- lt editor: BJET 편집자 관점에서 봐줘.
92
- lt methods: 방법론적으로 어디가 취약한지 말해줘.
103
+ lt explore: Where should I narrow the question first?
104
+ lt review: What is weak in this claim?
105
+ lt panel: Show me the disagreement before I commit.
106
+ lt methods: Where is the design vulnerable?
93
107
  ```
94
108
 
95
- CLI를 계속 쓰고 싶다면 아래 명령은 보조 경로입니다.
96
-
97
- ## Advanced commands
109
+ Provider-native surfaces are available when installed:
98
110
 
99
111
  ```bash
100
- longtable roles
101
- longtable resume --cwd "<project-path>"
102
- longtable ask --cwd "<project-path>" --prompt "연구 질문을 어디서부터 좁혀야 할지 모르겠어."
103
- longtable review --cwd "<project-path>" --prompt "방법론적으로 어디가 취약한지 말해줘." --role methods_critic
112
+ longtable codex install-skills
113
+ longtable claude install-skills
104
114
  ```
105
115
 
106
- ## Roles
116
+ Codex skills include `longtable`, `longtable-panel`, and generated role-specific
117
+ skills such as `longtable-methods-critic`. If your Codex build exposes explicit
118
+ skill shortcuts, `$longtable` is the manual entry. Do not depend on `/prompts`;
119
+ current Codex builds may reject it.
120
+
121
+ Claude Code skills include `longtable`, `longtable-panel`, and generated
122
+ role-specific skills such as `longtable-methods-critic`. They are adapter files
123
+ generated from the LongTable role registry.
124
+
125
+ ## Panel Orchestration
126
+
127
+ Panel orchestration is for moments where disagreement matters: methods risk,
128
+ measurement validity, theory fit, literature positioning, and claims that need
129
+ challenge before they become project memory.
130
+
131
+ The CLI creates a provider-neutral `PanelPlan` and returns a planned
132
+ `PanelResult`. When native subagents are unavailable, LongTable uses a stable
133
+ sequential fallback prompt. That keeps the same research semantics available in
134
+ Codex and Claude Code without making either provider's native question or agent
135
+ tool the source of truth.
136
+
137
+ Inside a LongTable project workspace, panel planning also appends an
138
+ `InvocationRecord` to `.longtable/state.json`, creates a pending follow-up
139
+ `QuestionRecord`, and refreshes `CURRENT.md`.
107
140
 
108
141
  ```bash
109
- longtable roles
142
+ longtable decide --answer evidence --rationale "Need citation support before continuing."
110
143
  ```
111
144
 
112
- 예:
145
+ Default panel roles include:
113
146
 
114
- - `editor`
115
147
  - `reviewer`
116
148
  - `methods_critic`
117
- - `voice_keeper`
149
+ - `measurement_auditor`
150
+ - `theory_critic`
118
151
 
119
- ## Codex prompt-file integration
152
+ Use `--role` to constrain the panel when the research problem is already clear.
120
153
 
121
- ```bash
122
- longtable codex install-prompts
123
- longtable codex status
124
- ```
154
+ ## Evidence And Search Direction
155
+
156
+ LongTable should not behave like a generic web scraper. Research search should
157
+ start from scholarly routes when the user needs literature discovery, citation
158
+ verification, publication metadata, or evidence-backed research decisions.
125
159
 
126
- 경로는 현재 실험적입니다.
127
- 사용자에게 약속하는 경로는 아닙니다.
160
+ Planned scholarly routes include arXiv, Crossref, OpenAlex, Semantic Scholar,
161
+ PubMed/NCBI, ERIC, DOAJ, and Unpaywall. They have different setup requirements:
162
+ some work without keys, some require a contact email, and some need API keys for
163
+ reliable use.
128
164
 
129
- 기본 경로는 여전히:
165
+ Citation support should be checked explicitly. A reference can be useful as
166
+ background while still failing to support the specific claim attached to it.
130
167
 
131
- - `longtable init`
132
- - `longtable start`
133
- - 프로젝트 디렉토리에서 `codex`
168
+ See:
134
169
 
135
- 입니다.
170
+ - [Research Search](https://github.com/HosungYou/LongTable/blob/main/docs/RESEARCH-SEARCH.md)
171
+ - [Evidence Policy](https://github.com/HosungYou/LongTable/blob/main/docs/EVIDENCE-POLICY.md)
172
+ - [LongTable Command Surface](https://github.com/HosungYou/LongTable/blob/main/docs/LONGTABLE-COMMAND-SURFACE.md)
173
+
174
+ ## Validation
175
+
176
+ ```bash
177
+ npm install
178
+ npm run typecheck
179
+ npm run build
180
+ ```