oc-auth-switcher 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -885,7 +885,13 @@ var AuthSwitcherPlugin = async ({ client }) => {
885
885
  const selection = selectAccount(accounts, state);
886
886
  let account = selection.account;
887
887
  if (selection.switched) {
888
- console.log(`[oc-auth-switcher] ${selection.reason}`);
888
+ await client.app.log({
889
+ body: {
890
+ service: "oc-auth-switcher",
891
+ level: "info",
892
+ message: selection.reason ?? "switched account"
893
+ }
894
+ }).catch(() => {});
889
895
  }
890
896
  state.currentAccount = account.name;
891
897
  const attemptedAccounts = new Set;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-auth-switcher",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "OpenCode auth plugin for multi-account Anthropic Claude Max rotation with automatic failover.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",