@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 +121 -76
- package/dist/cli.js +711 -66
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/panel.d.ts +40 -0
- package/dist/panel.js +268 -0
- package/dist/persona-router.d.ts +1 -1
- package/dist/persona-router.js +6 -6
- package/dist/personas.d.ts +5 -0
- package/dist/personas.js +44 -8
- package/dist/project-session.d.ts +94 -2
- package/dist/project-session.js +593 -150
- package/dist/prompt-aliases.js +34 -34
- package/package.json +13 -7
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# @longtable/cli
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
8
|
-
2. `longtable start`
|
|
9
|
+
The basic contract is:
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
```bash
|
|
34
|
+
cd "<project-path>"
|
|
35
|
+
longtable resume
|
|
36
|
+
codex
|
|
37
|
+
```
|
|
35
38
|
|
|
36
|
-
##
|
|
39
|
+
## What `longtable start` Creates
|
|
37
40
|
|
|
38
|
-
```
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
+
This is how LongTable avoids turning tacit knowledge into fake certainty.
|
|
74
|
+
|
|
75
|
+
## Commands
|
|
63
76
|
|
|
64
77
|
```bash
|
|
65
|
-
longtable init
|
|
78
|
+
longtable init
|
|
66
79
|
longtable start
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
돌아와서 다시 이어갈 때는:
|
|
88
|
+
Useful structured routes for scripts and debugging:
|
|
74
89
|
|
|
75
90
|
```bash
|
|
76
|
-
|
|
77
|
-
longtable
|
|
78
|
-
|
|
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
|
-
##
|
|
96
|
+
## Inside Codex
|
|
82
97
|
|
|
83
|
-
|
|
98
|
+
Natural language should be the default.
|
|
84
99
|
|
|
85
|
-
|
|
100
|
+
Explicit short forms are available when needed:
|
|
86
101
|
|
|
87
102
|
```text
|
|
88
|
-
lt explore:
|
|
89
|
-
lt review:
|
|
90
|
-
lt panel:
|
|
91
|
-
lt
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
## Advanced commands
|
|
109
|
+
Provider-native surfaces are available when installed:
|
|
98
110
|
|
|
99
111
|
```bash
|
|
100
|
-
longtable
|
|
101
|
-
longtable
|
|
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
|
-
|
|
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
|
|
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
|
-
- `
|
|
149
|
+
- `measurement_auditor`
|
|
150
|
+
- `theory_critic`
|
|
118
151
|
|
|
119
|
-
|
|
152
|
+
Use `--role` to constrain the panel when the research problem is already clear.
|
|
120
153
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
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
|
+
```
|