claude-code as channel model, container trust/permissions fixes, terminal cwd fix

- add claude-code as virtual model in channel messaging (telegram/discord/whatsapp)
- new send-claude-code.ts: docker exec claude -p with session resumption
- route claude-code model in sendAndAwait before Pi pipeline
- append claude-code to listPiModels output
- fix container .claude mount (rw for sub-mounts), hooks format (matcher-based)
- pre-seed hasTrustDialogAccepted and bypassPermissions in container settings
- git init in entrypoint to skip workspace trust prompt
- fix ~/~ double-tilde in CommandTerminalWrapper cwd resolution
- remove --continue from claude-code panel command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 20:00:45 +00:00
co-authored by Claude Opus 4.6
parent 192ae63c0e
commit 0068244356
20 changed files with 1168 additions and 73 deletions
+8
View File
@@ -29,6 +29,8 @@ export type Job = {
createdAt: number;
startedAt?: number;
completedAt?: number;
retryAt?: number;
retries?: number;
meta?: Record<string, unknown>;
notify?: boolean;
};
@@ -45,9 +47,15 @@ export type JobHandlerStep = {
run: (ctx: StepContext) => Promise<void>;
};
export type RetryConfig = {
delayMs: number;
maxRetries: number;
};
export type JobHandler = {
type: string;
steps: JobHandlerStep[];
retry?: RetryConfig;
};
export type EnqueueParams = {