@khalilgharbaoui/opencode-claude-code-plugin 0.46.0 → 0.47.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 CHANGED
@@ -435,6 +435,8 @@ interface ClaudeCodeConfig {
435
435
  resumeAfterRestart?: boolean;
436
436
  /** Carry a conversation's Claude session over when its model or effort changes. Default true. */
437
437
  resumeAcrossModelChanges?: boolean;
438
+ /** Carry a conversation's Claude transcript over on an account switch. Default true. */
439
+ crossAccountResume?: boolean;
438
440
  logging?: LoggingConfig;
439
441
  }
440
442
  interface LoggingConfig {
@@ -856,6 +858,30 @@ interface ClaudeCodeProviderSettings {
856
858
  * false` turns this off too.
857
859
  */
858
860
  resumeAcrossModelChanges?: boolean;
861
+ /**
862
+ * Continue the same Claude conversation when it moves to another account,
863
+ * instead of replaying the whole thread as text into a fresh session there.
864
+ * Default `true`; it does nothing at all on a single-account install.
865
+ *
866
+ * An account is a `CLAUDE_CONFIG_DIR`, and a conversation is one transcript
867
+ * file inside it, so the move is a file copy into the target account's own
868
+ * `projects/<encoded cwd>/` plus the `--resume` that already exists. Claude
869
+ * Code 2.1.288 resumes a copied transcript with its context intact, resolves
870
+ * a session by FILENAME, and appends to the copy without touching the
871
+ * original (h #g218).
872
+ *
873
+ * Every refusal falls back to the replay and says which in the log: no
874
+ * transcript to carry, something that is not a plain file at the target
875
+ * path, or a copy that failed. The source transcript is never moved,
876
+ * deleted or written to, and an existing file is never overwritten (the
877
+ * carry takes a fresh session id instead).
878
+ *
879
+ * What was measured is the file layout, with a second config dir holding a
880
+ * copy of the same credentials; whether a different Anthropic account's
881
+ * token answers a conversation produced under another one is not yet
882
+ * verified live. Set `false` to keep the replay.
883
+ */
884
+ crossAccountResume?: boolean;
859
885
  /**
860
886
  * Routing for Claude's built-in `WebSearch` tool.
861
887
  *