throughline 0.10.3 → 0.10.5
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/CHANGELOG.md +72 -29
- package/README.ja.md +75 -47
- package/README.md +99 -78
- package/bin/throughline.mjs +32 -13
- package/docs/00_overview.md +56 -43
- package/docs/01_l1_l2_l3_redesign.md +1 -1
- package/docs/02_clear_auto_handoff_plan.md +39 -333
- package/docs/04_public_release_plan.md +73 -190
- package/docs/05_codex_first_roadmap.md +4 -4
- package/docs/06_codex_trim_rollback_fix_plan.md +1 -1
- package/docs/08_codex_dual_support.md +1 -1
- package/docs/09_rollback_context_trim_insight.md +1 -1
- package/docs/12_desktop_clear_handoff_plan.md +6 -213
- package/docs/15_windows_ci_release_latency_plan.md +6 -87
- package/docs/16_readonly_handoff_context_plan.md +7 -38
- package/docs/adr/0005-observer-read-pagination.md +1 -1
- package/docs/adr/0014-two-phase-handoff-ghost-baton.md +1 -1
- package/docs/adr/0019-product-owned-database-migration-acceptance.md +1 -1
- package/docs/adr/0021-grok-host-capture.md +1 -1
- package/docs/archive/02_clear_auto_handoff_plan.md +350 -0
- package/docs/{03_inheritance_on_clear_only.md → archive/03_inheritance_on_clear_only.md} +22 -22
- package/docs/{07_codex_trim_implementation_plan.md → archive/07_codex_trim_implementation_plan.md} +8 -8
- package/docs/{10_transcript_injection_plan.md → archive/10_transcript_injection_plan.md} +12 -12
- package/docs/archive/12_desktop_clear_handoff_plan.md +218 -0
- package/docs/{14_observer_completed_turn_feed_plan.md → archive/14_observer_completed_turn_feed_plan.md} +7 -7
- package/docs/archive/15_windows_ci_release_latency_plan.md +89 -0
- package/docs/archive/16_readonly_handoff_context_plan.md +40 -0
- package/docs/archive/README.md +28 -15
- package/docs/archive/plan_grok-successor-launch.md +99 -0
- package/docs/archive/room-log_throughline_20260830-155052.md +285 -0
- package/docs/plan_grok-successor-launch.md +6 -97
- package/package.json +11 -4
- package/rag/INDEX.md +2 -2
- package/src/baton.mjs +11 -9
- package/src/cli/handoff-context.test.mjs +36 -0
- package/src/cli/help.test.mjs +5 -0
- package/src/cli/runtime-errors.mjs +9 -3
- package/src/cli/runtime-errors.test.mjs +13 -13
- package/src/cli/self-update.mjs +402 -0
- package/src/cli/self-update.test.mjs +525 -0
- package/src/db.mjs +1 -1
- package/src/docs-contract.test.mjs +153 -0
- package/src/product-ci-contract.test.mjs +14 -0
- package/src/prompt-submit.mjs +8 -10
- package/src/resume-context.mjs +4 -4
- package/src/runtime-error-hook.test.mjs +4 -6
- package/src/runtime-error-store.mjs +40 -18
- package/src/runtime-error-store.test.mjs +53 -26
- package/src/session-merger.mjs +16 -7
- package/src/session-merger.test.mjs +27 -0
- package/src/spike-transcript-writer.mjs +1 -1
- /package/docs/{11_codex_monitor_implementation_plan.md → archive/11_codex_monitor_implementation_plan.md} +0 -0
- /package/docs/{13_native_factory_diagnostics_plan.md → archive/13_native_factory_diagnostics_plan.md} +0 -0
- /package/docs/{BUGHUB_RUNTIME_ERROR_STORE_PLAN.md → archive/BUGHUB_RUNTIME_ERROR_STORE_PLAN.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,47 @@ shipped to npm but were not individually tagged on GitHub.
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.10.5] — 2026-09-01
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `throughline self-update` now owns the complete product update path: official
|
|
18
|
+
npm package update, integration reapplication, existing-database migration,
|
|
19
|
+
installed-version verification, and public diagnostics. Factory callers no
|
|
20
|
+
longer need to interpret Throughline's migration schema. It resolves the new
|
|
21
|
+
CLI from npm's global root, rejects old-CLI help or malformed handshakes even
|
|
22
|
+
when they exit zero, requires overall diagnostics readiness, preserves child
|
|
23
|
+
errors, and uses `npm.cmd` through PowerShell 7 on Windows. It also refuses a
|
|
24
|
+
mixed-prefix update when the public `throughline` on PATH does not resolve to
|
|
25
|
+
the newly installed CLI and version.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Session inheritance now refuses to reassign L1/L2/L3 memory when the named
|
|
30
|
+
predecessor and successor belong to different projects. Project-scoped
|
|
31
|
+
predecessor discovery already filtered candidates, but the final merge
|
|
32
|
+
state transition did not enforce the same ownership invariant itself.
|
|
33
|
+
|
|
34
|
+
## [0.10.4] — 2026-08-30
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- Runtime-error collection is now configured and owned by Throughline itself.
|
|
39
|
+
`throughline runtime-errors enable|disable --json` writes the private,
|
|
40
|
+
versioned product config under the Throughline config directory. The runtime
|
|
41
|
+
no longer reads dotagents factory-reporter configuration; factory integration
|
|
42
|
+
uses the public `runtime-errors ... --json` boundary.
|
|
43
|
+
- Corrected the documented Claude handoff boundary: built-in `/clear` does not
|
|
44
|
+
reach `UserPromptSubmit`; VS Code uses `SessionStart source='clear'`, while
|
|
45
|
+
Claude Desktop requires `/tl` before `/clear`.
|
|
46
|
+
- Moved the completed v0.4 auto-handoff plan into `docs/archive/` and replaced
|
|
47
|
+
the current path with a concise current contract. Fixed Lattice consumers of
|
|
48
|
+
other archived plans keep small compatibility entrypoints.
|
|
49
|
+
- Product-owned CI now runs `npm run verify:docs` for Markdown-only changes,
|
|
50
|
+
checking local links, the document/archive indexes, compatibility stubs, and
|
|
51
|
+
relative link/image closure inside the actual npm tarball file list.
|
|
52
|
+
- The Windows-native product CI path now uses PowerShell 7 exclusively.
|
|
53
|
+
|
|
13
54
|
## [0.10.3] — 2026-08-24
|
|
14
55
|
|
|
15
56
|
### Added
|
|
@@ -472,7 +513,7 @@ are absent and have no effect on the shipped path.
|
|
|
472
513
|
|
|
473
514
|
### Added
|
|
474
515
|
|
|
475
|
-
- `docs/10_transcript_injection_plan.md`: full Phase 0 plan and
|
|
516
|
+
- `docs/archive/10_transcript_injection_plan.md`: full Phase 0 plan and
|
|
476
517
|
result log for the D / `initialUserMessage` investigation.
|
|
477
518
|
- `rag/`: third-party spec knowledge base (Claude Code hooks
|
|
478
519
|
reference, Anthropic Messages API, sessions docs, openclaude
|
|
@@ -1320,31 +1361,33 @@ two attempts, instrument first instead of patching again.
|
|
|
1320
1361
|
|
|
1321
1362
|
---
|
|
1322
1363
|
|
|
1323
|
-
[Unreleased]: https://github.com/kitepon
|
|
1324
|
-
[0.10.
|
|
1325
|
-
[0.10.
|
|
1326
|
-
[0.10.
|
|
1327
|
-
[0.10.
|
|
1328
|
-
[0.
|
|
1329
|
-
[0.
|
|
1330
|
-
[0.
|
|
1331
|
-
[0.
|
|
1332
|
-
[0.8.
|
|
1333
|
-
[0.8.
|
|
1334
|
-
[0.8.
|
|
1335
|
-
[0.8.
|
|
1336
|
-
[0.8.
|
|
1337
|
-
[0.8.
|
|
1338
|
-
[0.8.
|
|
1339
|
-
[0.8.
|
|
1340
|
-
[0.
|
|
1341
|
-
[0.
|
|
1342
|
-
[0.
|
|
1343
|
-
[0.3
|
|
1344
|
-
[0.
|
|
1345
|
-
[0.3.
|
|
1346
|
-
[0.3.
|
|
1347
|
-
[0.3.
|
|
1348
|
-
[0.3.
|
|
1349
|
-
[0.
|
|
1350
|
-
[0.
|
|
1364
|
+
[Unreleased]: https://github.com/kitepon/Throughline/compare/v0.10.5...HEAD
|
|
1365
|
+
[0.10.5]: https://github.com/kitepon/Throughline/compare/v0.10.4...v0.10.5
|
|
1366
|
+
[0.10.4]: https://github.com/kitepon/Throughline/compare/v0.10.3...v0.10.4
|
|
1367
|
+
[0.10.3]: https://github.com/kitepon/Throughline/compare/v0.10.2...v0.10.3
|
|
1368
|
+
[0.10.2]: https://github.com/kitepon/Throughline/compare/v0.10.1...v0.10.2
|
|
1369
|
+
[0.10.1]: https://github.com/kitepon/Throughline/compare/v0.10.0...v0.10.1
|
|
1370
|
+
[0.10.0]: https://github.com/kitepon/Throughline/compare/v0.9.1...v0.10.0
|
|
1371
|
+
[0.9.1]: https://github.com/kitepon/Throughline/compare/v0.9.0...v0.9.1
|
|
1372
|
+
[0.9.0]: https://github.com/kitepon/Throughline/compare/v0.8.9...v0.9.0
|
|
1373
|
+
[0.8.9]: https://github.com/kitepon/Throughline/compare/v0.8.8...v0.8.9
|
|
1374
|
+
[0.8.8]: https://github.com/kitepon/Throughline/compare/v0.8.7...v0.8.8
|
|
1375
|
+
[0.8.7]: https://github.com/kitepon/Throughline/compare/v0.8.6...v0.8.7
|
|
1376
|
+
[0.8.6]: https://github.com/kitepon/Throughline/compare/v0.8.5...v0.8.6
|
|
1377
|
+
[0.8.5]: https://github.com/kitepon/Throughline/compare/v0.8.4...v0.8.5
|
|
1378
|
+
[0.8.4]: https://github.com/kitepon/Throughline/compare/v0.8.3...v0.8.4
|
|
1379
|
+
[0.8.3]: https://github.com/kitepon/Throughline/compare/v0.8.2...v0.8.3
|
|
1380
|
+
[0.8.2]: https://github.com/kitepon/Throughline/compare/v0.8.1...v0.8.2
|
|
1381
|
+
[0.8.1]: https://github.com/kitepon/Throughline/compare/v0.8.0...v0.8.1
|
|
1382
|
+
[0.8.0]: https://github.com/kitepon/Throughline/compare/v0.7.0...v0.8.0
|
|
1383
|
+
[0.7.0]: https://github.com/kitepon/Throughline/compare/v0.6.3...v0.7.0
|
|
1384
|
+
[0.6.3]: https://github.com/kitepon/Throughline/compare/v0.6.2...v0.6.3
|
|
1385
|
+
[0.6.2]: https://github.com/kitepon/Throughline/compare/v0.6.1...v0.6.2
|
|
1386
|
+
[0.3.22]: https://github.com/kitepon/Throughline/releases/tag/v0.3.22
|
|
1387
|
+
[0.3.21]: https://github.com/kitepon/Throughline/compare/v0.3.19...v0.3.21
|
|
1388
|
+
[0.3.20]: https://github.com/kitepon/Throughline/compare/v0.3.19...v0.3.20
|
|
1389
|
+
[0.3.19]: https://github.com/kitepon/Throughline/releases/tag/v0.3.19
|
|
1390
|
+
[0.3.18]: https://github.com/kitepon/Throughline/releases/tag/v0.3.18
|
|
1391
|
+
[0.3.0]: https://github.com/kitepon/Throughline/releases/tag/v0.3.0
|
|
1392
|
+
[0.2.0]: https://github.com/kitepon/Throughline/releases/tag/v0.2.0
|
|
1393
|
+
[0.1.0]: https://github.com/kitepon/Throughline/compare/v0.1.0
|
package/README.ja.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src=".github/og.png" alt="Throughline — 環境や境界が変わっても方向と記憶を保って進むクジラの群れ" width="100%">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/kitepon/Throughline/main/.github/og.png" alt="Throughline — 環境や境界が変わっても方向と記憶を保って進むクジラの群れ" width="100%">
|
|
3
3
|
<br>
|
|
4
4
|
<sub><em>この画像は、環境や境界が変わっても、関係・方向・記憶を失わずに進み続ける連続性を表しています。</em></sub>
|
|
5
5
|
</p>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://www.npmjs.com/package/throughline)
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://nodejs.org)
|
|
12
|
-
[](https://github.com/kitepon/Throughline/actions/workflows/test.yml)
|
|
13
13
|
|
|
14
14
|
[English](README.md) · **日本語**
|
|
15
15
|
|
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
## 所有境界
|
|
23
23
|
|
|
24
|
-
本repository
|
|
25
|
-
|
|
26
|
-
[dotagents](https://github.com/kitepon
|
|
24
|
+
本repositoryは導入、設定、状態、schemaとmigration、診断、復旧、更新、release判断を
|
|
25
|
+
所有します。Throughlineは文書化したCLIだけで単独運用でき、工場の制御装置を必要としません。
|
|
26
|
+
[dotagents](https://github.com/kitepon/dotagents)はkitepon.dev開発工場への配線と統合契約を
|
|
27
|
+
担当しますが、Throughlineの状態や製品寿命を所有・制御しません。
|
|
27
28
|
MarkItDownは別区分の第三者CLIです。
|
|
28
29
|
|
|
29
30
|
## 30 秒で始める
|
|
@@ -34,9 +35,10 @@ throughline install # hook / Codex skill / VS Code monitor task を登録
|
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
これだけ。Claude Code のセッションを開けば、以後すべてのターンが
|
|
37
|
-
`~/.throughline/throughline.db` に自動で流れていく。
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
`~/.throughline/throughline.db` に自動で流れていく。VS Code では `/clear` 後の
|
|
39
|
+
`SessionStart source='clear'` から自動で再開する。Claude Desktop はその source を
|
|
40
|
+
送らないため、`/clear` の前に `/tl` を実行する。新規 chat や再起動でも、前任を
|
|
41
|
+
確定的に指名したいときは境界の前に `/tl` を使う。
|
|
40
42
|
|
|
41
43
|
Grok Desktop も first-class host である。`throughline install` は
|
|
42
44
|
`~/.grok/hooks/throughline.json` を書く。Grok では `/tl` は今の窓へ注入せず、
|
|
@@ -105,8 +107,8 @@ current-thread rollback
|
|
|
105
107
|
| **境界後に残る記憶** | ✅ 直近ターン本文そのまま (予算内ターン原子詰め) + それ以前は `recall` で pull + L3 オンデマンド | ❌ ゼロ | △ 一個の要約 (情報欠落) | △ 要約 (情報欠落) |
|
|
106
108
|
| **ツール I/O の扱い** | L3 に退避、`/sc-detail HH:MM:SS` で取り戻せる | 消える | 要約に溶けて読めない | 要約に溶ける |
|
|
107
109
|
| **コーディング用途への適合** | 高 — ツール I/O こそ重い 80% | 低 — 文脈が切れる | 中 — ただし不可逆 | 中 |
|
|
108
|
-
| **誤継承リスク** | 低 (
|
|
109
|
-
| **ランタイム依存** | **ゼロ** (Node 22.
|
|
110
|
+
| **誤継承リスク** | 低 (`/tl` は前任を指名、VS Code `/clear` はtranscriptのある候補を凍結) | n/a | n/a | 高 |
|
|
111
|
+
| **ランタイム依存** | **ゼロ** (Node 22.13+ 同梱の `node:sqlite`) | n/a | n/a | 多数 |
|
|
110
112
|
| **マルチセッション トークン監視** | ✅ 実測 `message.usage` / Codex rollout `token_count` | — | — | — |
|
|
111
113
|
|
|
112
114
|
**ひとことで**: `/clear` は全部捨てる、`/compact` は全部混ぜる、Throughline は **書いた本文はそのまま残し、ツール出力 (= 80% の重量物) だけ退避** する。
|
|
@@ -215,17 +217,18 @@ L3 に保存された `kind` 別 (ツール入力 / ツール出力 / hook 出
|
|
|
215
217
|
|
|
216
218
|
---
|
|
217
219
|
|
|
218
|
-
## 引き継ぎ:
|
|
220
|
+
## 引き継ぎ: `/tl` はbaton、VS Code `/clear` は `source='clear'`
|
|
219
221
|
|
|
220
|
-
|
|
221
|
-
`/
|
|
222
|
-
|
|
222
|
+
引き継ぎは2経路です。`/tl` のbatonは前任をsession idで確定指名します。
|
|
223
|
+
適格なbatonが無い場合だけ、VS Code `/clear` の `SessionStart source='clear'` から
|
|
224
|
+
transcriptのある前任を1件凍結します。消費時はbatonを先に確認します。
|
|
223
225
|
|
|
224
226
|
```mermaid
|
|
225
227
|
flowchart LR
|
|
226
|
-
U["ユーザーが入力<br/>/
|
|
228
|
+
U["ユーザーが入力<br/>/tl"] -->|UserPromptSubmit| W["writeBaton<br/>(session_id + TTL 1h)"]
|
|
227
229
|
W --> B[("handoff_batons<br/>SQLite")]
|
|
228
|
-
M["VS Code
|
|
230
|
+
M["VS Code<br/>/clear"] -->|SessionStart source='clear'| X["前任を凍結<br/>baton 無し"]
|
|
231
|
+
D["Claude Desktop<br/>/clear"] -->|source='startup'| N["自動引継ぎなし<br/>先に /tl"]
|
|
229
232
|
NS["次の SessionStart<br/>(intent 登録のみ)"] --> FP["初回ユーザープロンプト<br/>(実セッションの証明)"]
|
|
230
233
|
FP --> C{"baton<br/>あり?"}
|
|
231
234
|
B -.-> C
|
|
@@ -244,14 +247,13 @@ flowchart LR
|
|
|
244
247
|
class P3,INJ neutral
|
|
245
248
|
```
|
|
246
249
|
|
|
247
|
-
### baton path
|
|
250
|
+
### baton path: `/tl`
|
|
248
251
|
|
|
249
|
-
ユーザーが
|
|
250
|
-
|
|
252
|
+
ユーザーが `/tl` を実行すると、UserPromptSubmit hook が**そのセッションの**
|
|
253
|
+
`session_id` を `handoff_batons` に書きます。次の新セッション
|
|
251
254
|
は **初回ユーザープロンプト時** に baton を消費し(適格性: セッション誕生が baton
|
|
252
255
|
書き込みから TTL 1 時間以内)、その前任を確定的に merge します。
|
|
253
|
-
|
|
254
|
-
指名された前任だけを引き継ぎます。
|
|
256
|
+
複数ウィンドウでも指名された前任だけを引き継ぎます。
|
|
255
257
|
|
|
256
258
|
なぜ SessionStart でなく初回プロンプトか: Claude Code は同一 project に数百 ms の
|
|
257
259
|
間隔で複数の SessionStart を発火させることがあり、その一部は transcript を一切
|
|
@@ -260,22 +262,25 @@ flowchart LR
|
|
|
260
262
|
が空で始まる事故が起きます。幽霊はプロンプトを発火しないので、消費を初回
|
|
261
263
|
プロンプトへ遅延させればこの事故は構造的に起きません(二相ハンドオフ、ADR 0014)。
|
|
262
264
|
|
|
263
|
-
### auto path
|
|
265
|
+
### auto path: VS Code `source='clear'`
|
|
264
266
|
|
|
265
|
-
|
|
267
|
+
組み込み `/clear` は、実測したどの Claude Code クライアントでも
|
|
268
|
+
UserPromptSubmit hook に届きません。VS Code は代わりに SessionStart の
|
|
269
|
+
`source='clear'` を送ります。baton が無い場合だけ、同 project の
|
|
266
270
|
最新 Claude predecessor を **SessionStart 時点で** 解決・凍結し(transcript の
|
|
267
|
-
無い幽霊は候補から除外)、merge +
|
|
268
|
-
VS Code 拡張メニューなど、typed `/clear` が UserPromptSubmit hook に届かない
|
|
269
|
-
経路のための補助です。
|
|
271
|
+
無い幽霊は候補から除外)、merge + 注入は初回プロンプト時に行います。
|
|
270
272
|
|
|
271
|
-
`THROUGHLINE_DISABLE_AUTO_HANDOFF=1` はこの
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
`THROUGHLINE_DISABLE_AUTO_HANDOFF=1` はこのauto pathだけをOFFにし、明示 `/tl` の
|
|
274
|
+
batonは止めません。
|
|
275
|
+
|
|
276
|
+
Claude Desktop は組み込み `/clear` をUserPromptSubmitへ渡さず、SessionStartでも
|
|
277
|
+
`source='clear'` を送りません。Desktopでは `/clear` の前に `/tl` を実行します。
|
|
278
|
+
対照実測とupstream報告はarchiveの
|
|
279
|
+
[`docs/12_desktop_clear_handoff_plan.md`](docs/archive/12_desktop_clear_handoff_plan.md)にあります。
|
|
274
280
|
|
|
275
281
|
```
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
fallback: baton 無し + source='clear' → latest predecessor を merge
|
|
282
|
+
/tl: Session A → /tl → (/clear・新chat・再起動) → Session B (Aのbatonを消費)
|
|
283
|
+
VS Code: baton無し + /clear source='clear' → transcriptのある直近前任をmerge
|
|
279
284
|
```
|
|
280
285
|
|
|
281
286
|
### 注入されるもの
|
|
@@ -300,7 +305,8 @@ extended thinking セクションは注入されません。
|
|
|
300
305
|
各マージ行は `origin_session_id` を保持するので、繰り返し引き継ぐと
|
|
301
306
|
記憶がチェーン状に蓄積します:
|
|
302
307
|
|
|
303
|
-
```
|
|
308
|
+
```text
|
|
309
|
+
VS Code:
|
|
304
310
|
S1 (4 ターン) --/clear--> S2 (S1 を auto-merge + 3 ターン追加) --/clear--> S3 (S2 を auto-merge + 5 ターン追加)
|
|
305
311
|
origin=S1×4 origin=S1×4, S2×3, S3×5
|
|
306
312
|
```
|
|
@@ -320,10 +326,10 @@ adapter / projection として追加されます。
|
|
|
320
326
|
backend 順は codex-sidecar(`summarize-l1` preset 明示設定時)→ Codex CLI
|
|
321
327
|
(既定 `gpt-5.6-luna`)→ Claude Haiku です(ADR 0015)。
|
|
322
328
|
|
|
323
|
-
Codex 側 trim (= same-thread context trim)
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
`/tl-trim` slash command は v0.4.0 で廃止されました。current-work framing は
|
|
329
|
+
Codex 側 trim (= same-thread context trim) は、診断・実験として明示した場合だけ
|
|
330
|
+
`throughline trim --execute --host codex` で発火します。bare `$throughline` は
|
|
331
|
+
`codex-handoff-start` による新スレッド handoff で、current thread をrollbackしません。
|
|
332
|
+
Claude 側の `/tl-trim` slash command は v0.4.0 で廃止されました。current-work framing は
|
|
327
333
|
再開注入の Reading Contract / Continuation Instruction で同じ意図を
|
|
328
334
|
継承しています。
|
|
329
335
|
|
|
@@ -367,6 +373,7 @@ Throughline state をまだ書いていない現在セッションも表示で
|
|
|
367
373
|
| --- | --- |
|
|
368
374
|
| `throughline install` | hook / Codex UserPromptSubmit・PostToolUse・Stop hook / Codex skill / `~/.grok/hooks/throughline.json` を登録し、VS Code 配下なら現プロジェクトの monitor task も配置 |
|
|
369
375
|
| `throughline install --project` | 現リポジトリの `.claude/settings.json` だけに hook を登録 |
|
|
376
|
+
| `throughline self-update [--json]` | 公式npm package更新、公開PATHがその新CLI・versionを指すことの確認、製品所有連携の再適用、既存DB migration、公開diagnosticsの確認までを一回で実行 |
|
|
370
377
|
| `throughline uninstall` | hook を削除 |
|
|
371
378
|
| `throughline monitor` | マルチセッション監視を起動 |
|
|
372
379
|
| `throughline monitor --diag` | TTY/columns/env 診断ダンプ (描画バグ切り分け用) |
|
|
@@ -374,6 +381,10 @@ Throughline state をまだ書いていない現在セッションも表示で
|
|
|
374
381
|
| `throughline recall --l2\|--l1 --session <id> --before <ISO> ...` | 注入の案内セクションが指す古い記憶を pull (read-only、正確なコマンドは注入に焼き込み済み) |
|
|
375
382
|
| `throughline doctor` | Node バージョン、hook 登録状況、DB、PATH をチェック |
|
|
376
383
|
| `throughline doctor --trim --host claude` | trim boundary と手動手順を診断 |
|
|
384
|
+
| `throughline runtime-errors enable --json` | Throughline所有のruntime error収集を有効化(既定OFF) |
|
|
385
|
+
| `throughline runtime-errors disable --json` | Throughline所有のruntime error収集を無効化 |
|
|
386
|
+
| `throughline runtime-errors snapshot --json` | boundedなlocal aggregateを読み取る(network I/Oなし) |
|
|
387
|
+
| `throughline runtime-errors diagnostics --json` | collection/store状態をpathやraw errorなしで診断 |
|
|
377
388
|
| `throughline handoff-preview --session <id>` | Codex 向け `throughline_handoff` JSON projection を表示 |
|
|
378
389
|
| `throughline handoff-context --session <id> --json` | SessionStart と同じ引き継ぎ文脈を versioned JSON で取得。記憶行の `session_id` と `sessions.merged_into` は変更せず、同一端末内の別ベンダーランチャーから使える |
|
|
379
390
|
| `throughline grok-continue --session <id>` | handoff-context を初手 user 文にした対話 Grok 席を立てる。cwd は源の `project_path`。ready でなければ spawn しない。`--rules` なし。macOS Terminal のみ |
|
|
@@ -385,6 +396,22 @@ Throughline state をまだ書いていない現在セッションも表示で
|
|
|
385
396
|
| `throughline status` | DB 統計表示 (sessions / skeletons / bodies / details) |
|
|
386
397
|
| `throughline --version` | インストール済みバージョンを表示 |
|
|
387
398
|
|
|
399
|
+
### 製品所有のruntime error収集
|
|
400
|
+
|
|
401
|
+
収集は既定OFFです。Throughline自身のCLIで有効化します。
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
throughline runtime-errors enable --json
|
|
405
|
+
throughline runtime-errors diagnostics --json
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
設定はmacOS/Linuxでは
|
|
409
|
+
`$XDG_CONFIG_HOME/throughline/runtime-errors.config.json`
|
|
410
|
+
(未設定時`~/.config/throughline/...`)、Windowsでは
|
|
411
|
+
`%LOCALAPPDATA%\throughline\runtime-errors.config.json`です。CLIはprivate権限で
|
|
412
|
+
`throughline.runtime_error_config.v1`を書きます。Throughlineはdotagents設定を読まず、
|
|
413
|
+
工場連携側は公開`runtime-errors ... --json`契約だけを利用します。
|
|
414
|
+
|
|
388
415
|
### ローカルlauncher向けread-only handoff context
|
|
389
416
|
|
|
390
417
|
通常handoffを実行せず、同一端末のlauncherからThroughline記憶だけを使う場合は次を呼ぶ:
|
|
@@ -402,18 +429,19 @@ latest session推測・`sessions.merged_into`変更・L1/L2/L3 rowの所属変
|
|
|
402
429
|
|
|
403
430
|
| コマンド | 役割 |
|
|
404
431
|
| --- | --- |
|
|
405
|
-
| `/tl` |
|
|
432
|
+
| `/tl` | 前任を確定指名する引き継ぎバトンを書き込む(新規chat・再起動・Claude Desktopの`/clear`前に使う)。Grokではbaton成功後に`grok-continue`も起動する |
|
|
406
433
|
| `/sc-detail <時刻>` | 過去ターンの L2 本文と L3 ツール I/O を取得 |
|
|
407
434
|
|
|
408
|
-
>
|
|
409
|
-
>
|
|
410
|
-
> `/tl
|
|
435
|
+
> 組み込み `/clear` は実測したクライアントのUserPromptSubmitには届きません。
|
|
436
|
+
> VS Codeは別経路の`source='clear'` auto pathで再開します。Claude Desktopは
|
|
437
|
+
> `/clear`前の`/tl`が必要です。`THROUGHLINE_DISABLE_AUTO_HANDOFF=1`はVS Codeの
|
|
438
|
+
> auto pathだけを止め、`/tl` batonは止めません。
|
|
411
439
|
|
|
412
440
|
---
|
|
413
441
|
|
|
414
442
|
## 動作要件
|
|
415
443
|
|
|
416
|
-
- **Node.js 22.
|
|
444
|
+
- **Node.js 22.13 以上** (組み込み `node:sqlite` モジュール使用、ネイティブビルド不要)
|
|
417
445
|
- **Claude Code** (`SessionStart`, `Stop`, `UserPromptSubmit` hooks 対応版)
|
|
418
446
|
- **Codex CLI ログイン**(既定の L1 要約 backend、`gpt-5.6-luna`)または
|
|
419
447
|
**Claude Max サブスクリプション**(`claude -p` 経由の Haiku fallback)— どちらも API キー不要
|
|
@@ -426,16 +454,16 @@ latest session推測・`sessions.merged_into`変更・L1/L2/L3 rowの所属変
|
|
|
426
454
|
## 設計ドキュメント
|
|
427
455
|
|
|
428
456
|
- [`docs/01_l1_l2_l3_redesign.md`](docs/01_l1_l2_l3_redesign.md) — L1/L2/L3 差分階層モデルの **設計仕様書** (schema v4 ベース + v5 L3 分類拡張)。記憶階層化ルールの正典
|
|
429
|
-
- [`docs/
|
|
457
|
+
- [`docs/02_clear_auto_handoff_plan.md`](docs/02_clear_auto_handoff_plan.md) — 現行の `/clear` / `/tl` handoff契約
|
|
430
458
|
- [`docs/08_codex_dual_support.md`](docs/08_codex_dual_support.md) — Claude 主軸を維持したまま Codex 対応を足すための architecture brief
|
|
431
459
|
- [`docs/09_rollback_context_trim_insight.md`](docs/09_rollback_context_trim_insight.md) — rollback / trim 設計 insight。復元 memory を current work として読ませる制約も記録
|
|
432
460
|
- [`docs/adr/0021-grok-host-capture.md`](docs/adr/0021-grok-host-capture.md) — Grok first-class host と `/tl` → `grok-continue` の現行契約
|
|
433
|
-
- [`docs/
|
|
434
|
-
- [`docs/07_codex_trim_implementation_plan.md`](docs/07_codex_trim_implementation_plan.md) — Claude/Codex 両対応と rollback trim の統合 TODO 計画
|
|
461
|
+
- [`docs/adr/0022-cursor-host-capture.md`](docs/adr/0022-cursor-host-capture.md) — Cursor first-class host の現行契約
|
|
435
462
|
- [`docs/04_public_release_plan.md`](docs/04_public_release_plan.md) — 公開配布化プラン、§ 0 フォールバック禁止ルール、バージョン別実装ステータス
|
|
436
|
-
- [`docs/
|
|
463
|
+
- [`docs/archive/12_desktop_clear_handoff_plan.md`](docs/archive/12_desktop_clear_handoff_plan.md) — Claude Desktopの対照実測・NO-GO判断・backfill受入の履歴
|
|
464
|
+
- [`docs/00_overview.md`](docs/00_overview.md) — current/history/evidenceの地図と文書寿命規則
|
|
437
465
|
- [`CHANGELOG.md`](CHANGELOG.md) — リリース履歴
|
|
438
|
-
- [`docs/archive/`](docs/archive/) —
|
|
466
|
+
- [`docs/archive/`](docs/archive/) — 完了済み計画と置換済み設計。履歴確認時だけ参照
|
|
439
467
|
|
|
440
468
|
---
|
|
441
469
|
|