Initial commit: Paperclip adapter for Claude Code on Kubernetes

Adapter plugin that runs Claude Code agents as Kubernetes Jobs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 23:16:31 -04:00
commit 9dbb5f337e
49 changed files with 4420 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { UsageSummary } from "@paperclipai/adapter-utils";
export declare function parseClaudeStreamJson(stdout: string): {
sessionId: string | null;
model: string;
costUsd: number | null;
usage: UsageSummary | null;
summary: string;
resultJson: Record<string, unknown> | null;
};
export declare function extractClaudeLoginUrl(text: string): string | null;
export declare function detectClaudeLoginRequired(input: {
parsed: Record<string, unknown> | null;
stdout: string;
stderr: string;
}): {
requiresLogin: boolean;
loginUrl: string | null;
};
export declare function describeClaudeFailure(parsed: Record<string, unknown>): string | null;
export declare function isClaudeMaxTurnsResult(parsed: Record<string, unknown> | null | undefined): boolean;
export declare function isClaudeUnknownSessionError(parsed: Record<string, unknown>): boolean;
//# sourceMappingURL=parse.d.ts.map