ai_co_discuss 0.2.19 → 0.2.20

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.19",
3
+ "version": "0.2.20",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
package/web/app.js CHANGED
@@ -2147,16 +2147,13 @@ function update_creation_mode() {
2147
2147
  if (key === state.creation_mode) return;
2148
2148
  const previous = { host: element("new-room-host").value, experts: read_expert_inputs("new-expert-modes") };
2149
2149
  state.creation_drafts[state.creation_mode] = previous;
2150
- const configured = Object.entries(state.launch.profiles).filter(([name, profile]) =>
2151
- LAUNCH_CLIENTS[name]?.some(client => client.value === profile.adapter)
2152
- && (profile.adapter === "api" ? profile.api_key_ref && profile.model && profile.base_url
2153
- : profile.adapter === "antigravity" ? profile.ipc_directory : profile.executable)).map(([name]) => name);
2154
- const experts = Object.keys(previous.experts).length ? previous.experts : Object.fromEntries(configured.map(name => [name, "cli"]));
2150
+ // The roster starts empty and carries over only members the user added; configured software is never added for them.
2151
+ const experts = previous.experts;
2155
2152
  // Discussions run automatically; manual and web members stay available only in free rooms.
2156
2153
  const eligible = kind === "free" ? experts : Object.fromEntries(Object.keys(experts)
2157
2154
  .filter(name => experts[name] === "cli" && LAUNCH_CLIENTS[platform_of(name)]).map(name => [name, "cli"]));
2158
2155
  const local_names = Object.keys(eligible).filter(name => eligible[name] !== "online");
2159
- const draft = state.creation_drafts[key] || { experts: eligible, host: kind === "free" ? "用户" : local_names.includes(previous.host) ? previous.host : local_names[0] || "" };
2156
+ const draft = state.creation_drafts[key] || { experts: eligible, host: local_names.includes(previous.host) ? previous.host : local_names[0] || "" };
2160
2157
  render_expert_inputs("new-expert-modes", draft.experts);
2161
2158
  render_host_options("new-room-host", Object.keys(draft.experts), draft.host);
2162
2159
  state.creation_mode = key;