ai_co_discuss 0.2.65 → 0.2.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.2.65",
3
+ "version": "0.2.66",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -460,7 +460,11 @@ export function adopt_member_profile(home, path, name, session_id, client = 'cla
460
460
  const adapter = client === 'codex' ? codex_session_adapter(session_id) : client === 'antigravity' ? 'antigravity_cli' : 'claude';
461
461
  const input = { cwd: config.cwd, adopt: true, participants: { [name]: { adapter, session_id } } };
462
462
  const profile = borrowed_session(name, participant_profile(name, launch_settings(home).participants, input, false), config.cwd);
463
- const next = { ...config, participants: { ...config.participants, [name]: profile } };
463
+ // A free room delivers with each member's own credential; a manual member's is kept in its access file.
464
+ const access_path = join(dirname(path), `manual-${name}.access.json`);
465
+ const manual_token = config.mode === 'free' && existsSync(access_path) ? JSON.parse(readFileSync(access_path, 'utf8')).token : '';
466
+ const next = { ...config, participants: { ...config.participants, [name]: profile },
467
+ ...(manual_token ? { members: { ...config.members, [name]: { token: manual_token, pending: '' } } } : {}) };
464
468
  validate_config(next, dirname(path));
465
469
  atomic_json(path, next);
466
470
  return adapter;