tailii-host 0.5.0 → 0.7.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/dist/approval/hook.js +11 -1
- package/dist/approval/hook.js.map +1 -1
- package/dist/backend/herdr.d.ts +60 -6
- package/dist/backend/herdr.js +180 -27
- package/dist/backend/herdr.js.map +1 -1
- package/dist/backend/sessionBackend.d.ts +22 -3
- package/dist/backend/sessionBackend.js +11 -2
- package/dist/backend/sessionBackend.js.map +1 -1
- package/dist/backend/tmux.d.ts +197 -3
- package/dist/backend/tmux.js +565 -16
- package/dist/backend/tmux.js.map +1 -1
- package/dist/chat/chatTailController.d.ts +4 -2
- package/dist/chat/chatTailController.js +19 -33
- package/dist/chat/chatTailController.js.map +1 -1
- package/dist/chat/imageService.d.ts +9 -1
- package/dist/chat/imageService.js +39 -0
- package/dist/chat/imageService.js.map +1 -1
- package/dist/chat/subagentTailer.d.ts +10 -0
- package/dist/chat/subagentTailer.js +234 -51
- package/dist/chat/subagentTailer.js.map +1 -1
- package/dist/chat/subagentTranscript.js +51 -5
- package/dist/chat/subagentTranscript.js.map +1 -1
- package/dist/chat/transcriptTailer.d.ts +53 -1
- package/dist/chat/transcriptTailer.js +313 -2
- package/dist/chat/transcriptTailer.js.map +1 -1
- package/dist/codex/codexAppServer.d.ts +54 -9
- package/dist/codex/codexAppServer.js +495 -76
- package/dist/codex/codexAppServer.js.map +1 -1
- package/dist/codex/codexNativeTurnController.d.ts +22 -1
- package/dist/codex/codexNativeTurnController.js +76 -11
- package/dist/codex/codexNativeTurnController.js.map +1 -1
- package/dist/codex/codexRolloutTailer.d.ts +3 -0
- package/dist/codex/codexRolloutTailer.js +85 -13
- package/dist/codex/codexRolloutTailer.js.map +1 -1
- package/dist/codex/codexSessionStore.js +54 -16
- package/dist/codex/codexSessionStore.js.map +1 -1
- package/dist/codex/codexSubagentTracker.d.ts +13 -0
- package/dist/codex/codexSubagentTracker.js +55 -1
- package/dist/codex/codexSubagentTracker.js.map +1 -1
- package/dist/codex/codexSystemNotice.d.ts +18 -0
- package/dist/codex/codexSystemNotice.js +212 -0
- package/dist/codex/codexSystemNotice.js.map +1 -0
- package/dist/commands/launch.js +50 -13
- package/dist/commands/launch.js.map +1 -1
- package/dist/engine/context.d.ts +32 -1
- package/dist/engine/context.js +39 -3
- package/dist/engine/context.js.map +1 -1
- package/dist/engine/engine.d.ts +5 -1
- package/dist/engine/engine.js +87 -4
- package/dist/engine/engine.js.map +1 -1
- package/dist/engine/handlers/accountUsage.d.ts +17 -0
- package/dist/engine/handlers/accountUsage.js +40 -6
- package/dist/engine/handlers/accountUsage.js.map +1 -1
- package/dist/engine/handlers/codex.js +37 -0
- package/dist/engine/handlers/codex.js.map +1 -1
- package/dist/engine/handlers/core.js +14 -1
- package/dist/engine/handlers/core.js.map +1 -1
- package/dist/engine/handlers/mode.js +105 -1
- package/dist/engine/handlers/mode.js.map +1 -1
- package/dist/engine/handlers/session.js +17 -33
- package/dist/engine/handlers/session.js.map +1 -1
- package/dist/engine/handlers/usage.js +4 -1
- package/dist/engine/handlers/usage.js.map +1 -1
- package/dist/engine/handlers/workspace.js +22 -1
- package/dist/engine/handlers/workspace.js.map +1 -1
- package/dist/hub/effortDialog.d.ts +15 -0
- package/dist/hub/effortDialog.js +60 -16
- package/dist/hub/effortDialog.js.map +1 -1
- package/dist/hub/engineRelaySocket.d.ts +7 -0
- package/dist/hub/engineRelaySocket.js +7 -1
- package/dist/hub/engineRelaySocket.js.map +1 -1
- package/dist/hub/hubDaemon.js +30 -5
- package/dist/hub/hubDaemon.js.map +1 -1
- package/dist/hub/hubProtocol.d.ts +10 -0
- package/dist/hub/hubProtocol.js +19 -2
- package/dist/hub/hubProtocol.js.map +1 -1
- package/dist/hub/panePreviewPump.d.ts +27 -0
- package/dist/hub/panePreviewPump.js +62 -1
- package/dist/hub/panePreviewPump.js.map +1 -1
- package/dist/hub/sessionHub.d.ts +125 -4
- package/dist/hub/sessionHub.js +413 -48
- package/dist/hub/sessionHub.js.map +1 -1
- package/dist/protocol/decode.js +84 -15
- package/dist/protocol/decode.js.map +1 -1
- package/dist/protocol/encode.js +2 -0
- package/dist/protocol/encode.js.map +1 -1
- package/dist/protocol/messages.d.ts +87 -1
- package/dist/services/accountIdentity.js +3 -1
- package/dist/services/accountIdentity.js.map +1 -1
- package/dist/services/fileService.d.ts +15 -0
- package/dist/services/fileService.js +176 -14
- package/dist/services/fileService.js.map +1 -1
- package/dist/services/officialApps.d.ts +21 -1
- package/dist/services/officialApps.js +201 -53
- package/dist/services/officialApps.js.map +1 -1
- package/dist/services/planUsageFetcher.d.ts +35 -3
- package/dist/services/planUsageFetcher.js +34 -6
- package/dist/services/planUsageFetcher.js.map +1 -1
- package/dist/services/previewServer.js +15 -6
- package/dist/services/previewServer.js.map +1 -1
- package/dist/sessions/claudeSessionStore.js +30 -0
- package/dist/sessions/claudeSessionStore.js.map +1 -1
- package/dist/sessions/heartbeat.d.ts +7 -1
- package/dist/sessions/heartbeat.js +3 -1
- package/dist/sessions/heartbeat.js.map +1 -1
- package/dist/sessions/sessionSearch.js +23 -5
- package/dist/sessions/sessionSearch.js.map +1 -1
- package/dist/sessions/transcriptPath.d.ts +3 -0
- package/dist/sessions/transcriptPath.js +15 -0
- package/dist/sessions/transcriptPath.js.map +1 -0
- package/dist/shared/clientBuild.d.ts +26 -0
- package/dist/shared/clientBuild.js +89 -0
- package/dist/shared/clientBuild.js.map +1 -0
- package/dist/shared/crossSession.d.ts +15 -0
- package/dist/shared/crossSession.js +75 -0
- package/dist/shared/crossSession.js.map +1 -0
- package/dist/shared/harnessReminder.d.ts +32 -0
- package/dist/shared/harnessReminder.js +124 -0
- package/dist/shared/harnessReminder.js.map +1 -0
- package/dist/shared/systemNotice.d.ts +30 -0
- package/dist/shared/systemNotice.js +209 -0
- package/dist/shared/systemNotice.js.map +1 -0
- package/package.json +3 -3
|
@@ -33,7 +33,8 @@ export interface CodexAppServerThreadOptions {
|
|
|
33
33
|
}
|
|
34
34
|
/** テスト差し替え可能なApp Server 1接続分。 */
|
|
35
35
|
export interface CodexAppServerConnection {
|
|
36
|
-
initialize
|
|
36
|
+
/** initialize 応答(`userAgent` 等)を返す。診断用で、void を返す実装でもよい。 */
|
|
37
|
+
initialize(): Promise<unknown>;
|
|
37
38
|
request(method: string, params: unknown, timeoutMs?: number): Promise<unknown>;
|
|
38
39
|
onNotification(handler: (notification: CodexAppServerNotification) => void): () => void;
|
|
39
40
|
onServerRequest(handler: (request: CodexAppServerRequest) => void): () => void;
|
|
@@ -50,13 +51,22 @@ export declare class CodexAppServerThread {
|
|
|
50
51
|
readonly initialItems: readonly Record<string, unknown>[];
|
|
51
52
|
readonly initialActiveTurnId: string | null;
|
|
52
53
|
/**
|
|
53
|
-
* この接続で thread/resume
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* この接続で thread/resume と履歴スナップショットの読み取り(または作成元 bootstrap)が
|
|
55
|
+
* 成功し、live 通知を受け取れるか。turn 履歴が未生成の新規 thread は false。呼び出し側は
|
|
56
|
+
* 履歴取得がタイムアウトした場合も false。表示は rollout tail へフォールバックし、
|
|
57
|
+
* この接続を live 本文の権威にしない(turn 操作と承認は接続を維持する)。
|
|
56
58
|
*/
|
|
57
59
|
readonly liveSubscriptionReady: boolean;
|
|
58
60
|
private readonly connection;
|
|
59
61
|
private readonly cwd;
|
|
62
|
+
/** liveSubscriptionReady=false の理由(履歴読み取りの失敗文言)。ログ診断用。 */
|
|
63
|
+
readonly liveSubscriptionError: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* 購読時点で thread に設定されているモデル(thread/resume または作成元 thread/start の
|
|
66
|
+
* 応答 `thread.model`)。null は応答に含まれない旧 App Server。Hub はこれを `pc:model`
|
|
67
|
+
* として配信し、会話を開いていない間に変更されたモデルも開き直しで反映する。
|
|
68
|
+
*/
|
|
69
|
+
readonly model: string | null;
|
|
60
70
|
/** 読み取り専用の readiness 確認だけは、共有 App Server の一時的な混雑を自動回復する。 */
|
|
61
71
|
private static readonly activeTurnReadMaxAttempts;
|
|
62
72
|
private static readonly activeTurnReadRetryTimeoutMs;
|
|
@@ -64,17 +74,31 @@ export declare class CodexAppServerThread {
|
|
|
64
74
|
private supportsSteerClientUserMessageId;
|
|
65
75
|
constructor(threadId: string, initialItems: readonly Record<string, unknown>[], initialActiveTurnId: string | null,
|
|
66
76
|
/**
|
|
67
|
-
* この接続で thread/resume
|
|
68
|
-
*
|
|
69
|
-
*
|
|
77
|
+
* この接続で thread/resume と履歴スナップショットの読み取り(または作成元 bootstrap)が
|
|
78
|
+
* 成功し、live 通知を受け取れるか。turn 履歴が未生成の新規 thread は false。呼び出し側は
|
|
79
|
+
* 履歴取得がタイムアウトした場合も false。表示は rollout tail へフォールバックし、
|
|
80
|
+
* この接続を live 本文の権威にしない(turn 操作と承認は接続を維持する)。
|
|
81
|
+
*/
|
|
82
|
+
liveSubscriptionReady: boolean, connection: CodexAppServerConnection, cwd: string | null,
|
|
83
|
+
/** liveSubscriptionReady=false の理由(履歴読み取りの失敗文言)。ログ診断用。 */
|
|
84
|
+
liveSubscriptionError?: string | null,
|
|
85
|
+
/**
|
|
86
|
+
* 購読時点で thread に設定されているモデル(thread/resume または作成元 thread/start の
|
|
87
|
+
* 応答 `thread.model`)。null は応答に含まれない旧 App Server。Hub はこれを `pc:model`
|
|
88
|
+
* として配信し、会話を開いていない間に変更されたモデルも開き直しで反映する。
|
|
70
89
|
*/
|
|
71
|
-
|
|
90
|
+
model?: string | null);
|
|
72
91
|
startTurn(text: string, clientUserMessageId?: string | null, effort?: string | null, sandbox?: "read-only" | "workspace-write" | "danger-full-access" | null, approvalPolicy?: CodexAppServerApprovalPolicy | null): Promise<string>;
|
|
73
92
|
readActiveTurnId(): Promise<string | null | undefined>;
|
|
74
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* 親履歴で欠落する sub-agent の終端状態を、子 thread 自身から読み直す。
|
|
95
|
+
* Thread の `model`(ロード中は現在の設定値、未ロードなら最後に永続化された値)も返し、
|
|
96
|
+
* 再オープン時に spawn item へ model が無い版でも実行モデルを復元できるようにする。
|
|
97
|
+
*/
|
|
75
98
|
readThreadStatus(threadId: string): Promise<{
|
|
76
99
|
status: unknown;
|
|
77
100
|
timestampMs?: number;
|
|
101
|
+
model?: string;
|
|
78
102
|
} | undefined>;
|
|
79
103
|
steerTurn(turnId: string, text: string, clientUserMessageId?: string | null): Promise<void>;
|
|
80
104
|
interruptTurn(turnId: string): Promise<void>;
|
|
@@ -90,6 +114,10 @@ export interface CodexAppServerManagerOptions {
|
|
|
90
114
|
pollIntervalMs?: number;
|
|
91
115
|
startupTimeoutMs?: number;
|
|
92
116
|
titleGenerationTimeoutMs?: number;
|
|
117
|
+
/** 診断ログ(daemon と CLI の版ずれ等)。 */
|
|
118
|
+
log?: (message: string) => void;
|
|
119
|
+
/** `codex --version` の代替(テスト用)。null は不明。 */
|
|
120
|
+
cliVersion?: () => Promise<string | null>;
|
|
93
121
|
}
|
|
94
122
|
/** thread/list の公開スキーマから一覧表示に必要なフィールドだけを保持する。 */
|
|
95
123
|
export interface CodexAppServerThreadInfo {
|
|
@@ -125,7 +153,21 @@ export declare class CodexAppServerManager {
|
|
|
125
153
|
private readonly startupLockPath;
|
|
126
154
|
/** 最初の turn 前(rollout 未作成)の thread を生存させる作成元購読。openThread が引き継ぐ。 */
|
|
127
155
|
private readonly bootstrapConnections;
|
|
156
|
+
/** thread/start 応答の model。bootstrap 接続を引き継ぐ openThread が購読時のモデルとして返す。 */
|
|
157
|
+
private readonly bootstrapThreadModels;
|
|
158
|
+
private readonly log;
|
|
159
|
+
private readonly readCliVersion;
|
|
160
|
+
private cliVersionPromise;
|
|
161
|
+
/** 版ずれは同じ組み合わせにつき 1 回だけログする。 */
|
|
162
|
+
private lastVersionMismatch;
|
|
128
163
|
constructor(options?: CodexAppServerManagerOptions);
|
|
164
|
+
/**
|
|
165
|
+
* initialize 応答の `userAgent`(`<client>/<server 版> (...)`)から daemon の版を読み、
|
|
166
|
+
* `codex --version` と食い違えばログに残す。共有 daemon は detached spawn で生き残るため、
|
|
167
|
+
* codex 更新後も旧バイナリが App Server を提供し続ける(2026-07-23 実障害)。他クライアントも
|
|
168
|
+
* 使う daemon を勝手には再起動せず、原因究明の手掛かりとして版ずれを可視化する。
|
|
169
|
+
*/
|
|
170
|
+
private noteServerVersion;
|
|
129
171
|
/** serverを再利用または排他的に起動し、利用可能になるまで待つ。 */
|
|
130
172
|
ensureRunning(): Promise<void>;
|
|
131
173
|
/** 稼働中の server にだけ接続する。停止中・不達時は起動せず null を返す。 */
|
|
@@ -156,8 +198,11 @@ export declare class CodexAppServerManager {
|
|
|
156
198
|
generateThreadTitle(options: CodexThreadTitleGenerationOptions): Promise<CodexThreadTitleGenerationResult>;
|
|
157
199
|
/** ログイン中アカウントで利用可能なCodexモデルをApp Server APIから取得する。 */
|
|
158
200
|
listModels(): Promise<CodexModelInfo[]>;
|
|
201
|
+
/** 指定threadの後続turnで使うモデルをApp Serverの設定APIへ反映する。 */
|
|
202
|
+
setThreadModel(threadId: string, model: string): Promise<void>;
|
|
159
203
|
/** 既存 thread を購読する長寿命接続を開く。turn と native approval はこの接続を流れる。 */
|
|
160
204
|
openThread(options: CodexAppServerThreadOptions): Promise<CodexAppServerThread>;
|
|
205
|
+
private openThreadAttempt;
|
|
161
206
|
private probe;
|
|
162
207
|
private remoteControlRequest;
|
|
163
208
|
private waitUntilReady;
|