import type { DeliveryEffect } from "./delivery-effect.js"; export interface ProductProfile { /** 製品ID。stateのschema名やhookの見分けに使う(例: "aiterm")。 */ id: string; /** 利用者へのエラー文に出す製品名(例: "Aiterm")。 */ display_name: string; /** 利用者に実行を案内するsetupの入口(例: "aiterm-setup")。 */ setup_command: string; /** CodexのSteerを有効にするsetupの入口(例: "aiterm-setup --codex-steer enable")。 */ codex_steer_command: string; /** 親に登録されたMCP server名(例: "aiterm")。Claudeのmatcherと、Cursorのtool名の正規化に使う。 */ mcp_server: string; /** 親への配送を伴うMCP tool。Claudeのhookはこのtoolだけに付き、Cursorはこのtoolの結果から配送IDを読む。 */ dispatch_tools: readonly string[]; /** Claude・Cursorの受信記録を置く、per-userの実行時state。 */ state_root: () => string; /** Codexのhook設定と所有記録を置く、per-userの永続設定。 */ config_root: () => string; /** 製品が同梱するhook入口のファイル名。所有するhookの見分けに使い、製品同士で重ならない名前にする。 */ hooks: { codex: string; claude: string; cursor: string; }; /** Codex App Serverへ名乗るclient名。 */ codex_client_name: string; /** Codex hook設定のschema名。 */ codex_hook_schema: string; /** 設定ファイルを書き換える前に残す控えの接尾辞(例: ".aiterm-backup")。 */ backup_suffix: string; /** * 同じ会話へ何通も送る製品(長く続く受信)の設定。無ければ依頼ごとの単発配送だけを使う。 * claude_expiry_notice: Claudeの待機がhookの期限(24時間)に近づいた時に、親を起こして待機を張り直すための短い文。 * 省略すると、期限では親を起こさずに待機を終える(次のturn終了で張り直す)。 */ channels?: { claude_expiry_notice?: string; }; /** Product-owned execution admission. A serialized required marker without * its process-local resolver refuses input; it never falls back to legacy. */ delivery_admission?: { required: true; run?(effect: DeliveryEffect, action: () => Promise): Promise; }; } export declare function codexHookDirectory(profile: ProductProfile): string; export declare function claudeHookRoot(profile: ProductProfile): string; export declare function cursorHookRoot(profile: ProductProfile): string; export declare function channelRoot(profile: ProductProfile): string;