@khalilgharbaoui/opencode-claude-code-plugin 0.46.1 → 0.48.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 +42 -0
- package/dist/index.js +342 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/claude-code-plugin/SKILL.md +32 -11
package/dist/index.d.ts
CHANGED
|
@@ -382,6 +382,13 @@ interface ClaudeCodeConfig {
|
|
|
382
382
|
* `providerConfig`, not by the user.
|
|
383
383
|
*/
|
|
384
384
|
baseCliPath?: string;
|
|
385
|
+
/**
|
|
386
|
+
* This spawn applies the account itself rather than through a wrapper
|
|
387
|
+
* script: it exports `CLAUDE_CONFIG_DIR` and takes the `@<account>` marker
|
|
388
|
+
* off `--model`. Set by `ensureAccountRuntime` on Windows only, where the
|
|
389
|
+
* wrapper is a shape worth avoiding (h #g221). Not a user option.
|
|
390
|
+
*/
|
|
391
|
+
accountInProcess?: boolean;
|
|
385
392
|
accountFailover?: AccountFailoverMode;
|
|
386
393
|
providerID?: string;
|
|
387
394
|
skipPermissions?: boolean;
|
|
@@ -435,6 +442,8 @@ interface ClaudeCodeConfig {
|
|
|
435
442
|
resumeAfterRestart?: boolean;
|
|
436
443
|
/** Carry a conversation's Claude session over when its model or effort changes. Default true. */
|
|
437
444
|
resumeAcrossModelChanges?: boolean;
|
|
445
|
+
/** Carry a conversation's Claude transcript over on an account switch. Default true. */
|
|
446
|
+
crossAccountResume?: boolean;
|
|
438
447
|
logging?: LoggingConfig;
|
|
439
448
|
}
|
|
440
449
|
interface LoggingConfig {
|
|
@@ -508,6 +517,11 @@ interface ClaudeCodeProviderSettings {
|
|
|
508
517
|
failoverAccounts?: string[];
|
|
509
518
|
/** The CLI path before the per-account wrapper substitution. */
|
|
510
519
|
baseCliPath?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Written by the config hook on Windows, where there is no wrapper script
|
|
522
|
+
* and the spawn applies the account itself. Not a user option.
|
|
523
|
+
*/
|
|
524
|
+
accountInProcess?: boolean;
|
|
511
525
|
/**
|
|
512
526
|
* When this account is out of usage, show the operator a form listing the
|
|
513
527
|
* other configured accounts and continue the task on the pick, inside the
|
|
@@ -856,6 +870,30 @@ interface ClaudeCodeProviderSettings {
|
|
|
856
870
|
* false` turns this off too.
|
|
857
871
|
*/
|
|
858
872
|
resumeAcrossModelChanges?: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* Continue the same Claude conversation when it moves to another account,
|
|
875
|
+
* instead of replaying the whole thread as text into a fresh session there.
|
|
876
|
+
* Default `true`; it does nothing at all on a single-account install.
|
|
877
|
+
*
|
|
878
|
+
* An account is a `CLAUDE_CONFIG_DIR`, and a conversation is one transcript
|
|
879
|
+
* file inside it, so the move is a file copy into the target account's own
|
|
880
|
+
* `projects/<encoded cwd>/` plus the `--resume` that already exists. Claude
|
|
881
|
+
* Code 2.1.288 resumes a copied transcript with its context intact, resolves
|
|
882
|
+
* a session by FILENAME, and appends to the copy without touching the
|
|
883
|
+
* original (h #g218).
|
|
884
|
+
*
|
|
885
|
+
* Every refusal falls back to the replay and says which in the log: no
|
|
886
|
+
* transcript to carry, something that is not a plain file at the target
|
|
887
|
+
* path, or a copy that failed. The source transcript is never moved,
|
|
888
|
+
* deleted or written to, and an existing file is never overwritten (the
|
|
889
|
+
* carry takes a fresh session id instead).
|
|
890
|
+
*
|
|
891
|
+
* What was measured is the file layout, with a second config dir holding a
|
|
892
|
+
* copy of the same credentials; whether a different Anthropic account's
|
|
893
|
+
* token answers a conversation produced under another one is not yet
|
|
894
|
+
* verified live. Set `false` to keep the replay.
|
|
895
|
+
*/
|
|
896
|
+
crossAccountResume?: boolean;
|
|
859
897
|
/**
|
|
860
898
|
* Routing for Claude's built-in `WebSearch` tool.
|
|
861
899
|
*
|
|
@@ -1025,6 +1063,10 @@ interface ClaudeStreamMessage {
|
|
|
1025
1063
|
display_name?: string;
|
|
1026
1064
|
agent_id?: string;
|
|
1027
1065
|
description?: string;
|
|
1066
|
+
/** `elicitation` only: the MCP server that asked for operator input. */
|
|
1067
|
+
mcp_server_name?: string;
|
|
1068
|
+
/** `elicitation` only: `form` or `url`. */
|
|
1069
|
+
mode?: string;
|
|
1028
1070
|
};
|
|
1029
1071
|
/**
|
|
1030
1072
|
* On an `assistant` message the CLI synthesised to report a failure: the
|