@khalilgharbaoui/opencode-claude-code-plugin 0.40.0 → 0.42.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/index.d.ts +9 -1
- package/dist/index.js +483 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/claude-code-plugin/SKILL.md +68 -14
package/dist/index.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ type OpenCodePlugin = (input: unknown, options?: Record<string, unknown>) => Pro
|
|
|
338
338
|
type LogLevel = "debug" | "info" | "notice" | "warn" | "error";
|
|
339
339
|
type LogMode = "silent" | "debug";
|
|
340
340
|
|
|
341
|
+
type ClaudeCodeTransport = "auto" | "headless" | "interactive";
|
|
341
342
|
interface ClaudeCodeConfig {
|
|
342
343
|
provider: string;
|
|
343
344
|
cliPath: string;
|
|
@@ -349,6 +350,8 @@ interface ClaudeCodeConfig {
|
|
|
349
350
|
* so nothing process-wide may decide it.
|
|
350
351
|
*/
|
|
351
352
|
hostApi?: "v1" | "v2";
|
|
353
|
+
/** Explicit transport selection; auto switches only on proven missing headless flags. */
|
|
354
|
+
transport?: ClaudeCodeTransport;
|
|
352
355
|
/** Drive interactive claude (subscription) instead of headless --print. */
|
|
353
356
|
interactive?: boolean;
|
|
354
357
|
/** Deprecated/no-op with interactive: Claude Code's TUI requires manual confirmation for bypassPermissions. */
|
|
@@ -466,6 +469,8 @@ interface ClaudeCodeProviderSettings {
|
|
|
466
469
|
cliPath?: string;
|
|
467
470
|
/** Internal: set by the opencode 2 entrypoint. See `ClaudeCodeConfig.hostApi`. */
|
|
468
471
|
hostApi?: "v1" | "v2";
|
|
472
|
+
/** Wins over the legacy interactive option and its environment fallback. */
|
|
473
|
+
transport?: ClaudeCodeTransport;
|
|
469
474
|
/** Drive interactive claude (subscription) instead of headless --print. */
|
|
470
475
|
interactive?: boolean;
|
|
471
476
|
/** Deprecated/no-op with interactive: Claude Code's TUI requires manual confirmation for bypassPermissions. */
|
|
@@ -1415,7 +1420,10 @@ declare function registerSideQuestionCommand(config: OpenCodeConfig): boolean;
|
|
|
1415
1420
|
*/
|
|
1416
1421
|
declare function registerDoctorCommand(config: OpenCodeConfig): boolean;
|
|
1417
1422
|
declare function _resetPlanModeWarningForTests(): void;
|
|
1418
|
-
declare function warnIfPlanModeCannotExit(permissionMode: string | undefined
|
|
1423
|
+
declare function warnIfPlanModeCannotExit(permissionMode: string | undefined, transport?: {
|
|
1424
|
+
transport?: string;
|
|
1425
|
+
interactive?: boolean;
|
|
1426
|
+
}): void;
|
|
1419
1427
|
/**
|
|
1420
1428
|
* Resolve `permissionPreset` for this provider, reporting what it replaced.
|
|
1421
1429
|
*
|