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 +1 -1
- package/runner/discussion_launch.mjs +5 -1
- package/web/modern.css +1 -1
- package/web/modern.js +2 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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;
|