odai-dsh-agent 0.2.22 → 0.2.23

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 (64) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +155 -157
  3. package/build/bin/odai-dsh-agent.mjs +18 -36
  4. package/build/bin/odai-dsh-agent.mjs.map +1 -1
  5. package/build/src/installer.d.mts +1 -6
  6. package/build/src/installer.d.mts.map +1 -1
  7. package/build/src/installer.mjs +3 -82
  8. package/build/src/installer.mjs.map +1 -1
  9. package/client/client.js +36 -58
  10. package/control-center.cordis.patch.yml +3 -3
  11. package/package.json +90 -90
  12. package/preset/odai/agent.cordis.yml +260 -260
  13. package/preset/odai/preset.yml +3 -3
  14. package/preset/odai/runtime/control-center-runtime.d.mts +1 -0
  15. package/preset/odai/runtime/control-center-runtime.d.mts.map +1 -1
  16. package/preset/odai/runtime/control-center-runtime.mjs +20 -0
  17. package/preset/odai/runtime/control-center-runtime.mjs.map +1 -1
  18. package/preset/odai/runtime/index.mjs +3 -4
  19. package/preset/odai/runtime/index.mjs.map +1 -1
  20. package/preset/odai/runtime/{session-compat.d.mts → legacy-session-repair.d.mts} +7 -7
  21. package/preset/odai/runtime/legacy-session-repair.d.mts.map +1 -0
  22. package/preset/odai/runtime/{session-compat.mjs → legacy-session-repair.mjs} +1 -1
  23. package/preset/odai/runtime/legacy-session-repair.mjs.map +1 -0
  24. package/preset/odai/runtime/role-overlays.mjs +8 -8
  25. package/preset/odai/runtime/routing-context.d.mts +1 -1
  26. package/preset/odai/runtime/routing-context.d.mts.map +1 -1
  27. package/preset/odai/runtime/runtime-support.d.mts +0 -1
  28. package/preset/odai/runtime/runtime-support.d.mts.map +1 -1
  29. package/preset/odai/runtime/runtime-support.mjs.map +1 -1
  30. package/preset/odai/runtime/runtime-types.d.mts +1 -3
  31. package/preset/odai/runtime/runtime-types.d.mts.map +1 -1
  32. package/preset/odai/runtime/runtime-types.mjs +1 -5
  33. package/preset/odai/runtime/runtime-types.mjs.map +1 -1
  34. package/preset/odai/runtime/session-evidence.d.mts.map +1 -1
  35. package/preset/odai/runtime/session-evidence.mjs +1 -3
  36. package/preset/odai/runtime/session-evidence.mjs.map +1 -1
  37. package/preset/odai/skills/odai/SKILL.md +68 -68
  38. package/preset/odai/skills/odai/agents/openai.yaml +4 -4
  39. package/preset/odai/skills/odai/assets/claude-agents/agent.md +11 -11
  40. package/preset/odai/skills/odai/assets/codex-agents/config.toml +11 -11
  41. package/preset/odai/skills/odai/assets/codex-agents/role.toml +5 -5
  42. package/preset/odai/skills/odai/assets/copilot-agents/agent.md +13 -13
  43. package/preset/odai/skills/odai/assets/hooks-policy.example.json +24 -24
  44. package/preset/odai/skills/odai/assets/routing-roles/controller.md +15 -15
  45. package/preset/odai/skills/odai/assets/routing-roles/frontend.md +7 -7
  46. package/preset/odai/skills/odai/assets/routing-roles/planner.md +28 -28
  47. package/preset/odai/skills/odai/assets/routing-roles/researcher.md +6 -6
  48. package/preset/odai/skills/odai/assets/routing-roles/reviewer.md +11 -11
  49. package/preset/odai/skills/odai/assets/task-state.md +14 -14
  50. package/preset/odai/skills/odai/manifest.json +52 -52
  51. package/preset/odai/skills/odai/references/craft.md +54 -54
  52. package/preset/odai/skills/odai/references/dao.md +31 -31
  53. package/preset/odai/skills/odai/references/leverage.md +50 -50
  54. package/preset/odai/skills/odai/references/planning.md +83 -83
  55. package/preset/odai/skills/odai/references/support.md +30 -30
  56. package/preset/odai/skills/odai/references/verification.md +24 -24
  57. package/preset/odai/skills/odai/scripts/build-hooks.mjs +273 -273
  58. package/preset/odai/skills/odai/scripts/build-routing.mjs +315 -315
  59. package/preset/odai/skills/odai/scripts/install-routing.mjs +393 -393
  60. package/preset/odai/skills/odai/scripts/odai-hook.mjs +457 -457
  61. package/preset/odai/skills/odai/scripts/run-role.mjs +285 -285
  62. package/preset/odai/skills/odai/scripts/verify-routing.mjs +103 -103
  63. package/preset/odai/runtime/session-compat.d.mts.map +0 -1
  64. package/preset/odai/runtime/session-compat.mjs.map +0 -1
@@ -1,17 +1,14 @@
1
- import type { SessionCompatOptions, SessionCompatResult } from "../../runtime/build/session-compat.mjs";
2
1
  export interface AgentInstallerOptions {
3
2
  presetId?: string;
4
3
  dshHome?: string;
5
4
  sourceRoot?: string;
6
5
  dshVersion?: string;
7
- confirmDshStopped?: boolean;
8
- processScanner?: SessionCompatOptions["processScanner"];
9
6
  }
10
7
  export declare const DEFAULT_PRESET_ID = "odai";
11
8
  export declare const MANIFEST_FILE = ".odai-agent.json";
12
9
  export declare const inject: string[];
13
10
  export declare function apply(ctx: unknown, rawConfig?: unknown): Promise<void>;
14
- export declare const SUPPORTED_DSH_RANGE = "0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.2";
11
+ export declare const SUPPORTED_DSH_RANGE = "0.1.2-rc.1";
15
12
  export declare const SUPPORTED_DSH_VERSIONS: readonly string[];
16
13
  export declare function supportsDshVersion(version: string): boolean;
17
14
  export declare const SUPPORTED_DSH_VERSION = "0.1.2-rc.1";
@@ -35,7 +32,6 @@ export declare function installAgentPreset(options?: AgentInstallerOptions): Pro
35
32
  dshVersion: string;
36
33
  trust: "user";
37
34
  security: "DSH user presets have the same privileges as shell access; install only reviewed preset code.";
38
- sessionCompatibility: SessionCompatResult;
39
35
  }>>;
40
36
  export declare function uninstallAgentPreset(options?: AgentInstallerOptions): Promise<Readonly<{
41
37
  operation: "absent";
@@ -45,6 +41,5 @@ export declare function uninstallAgentPreset(options?: AgentInstallerOptions): P
45
41
  operation: "uninstalled";
46
42
  target: string;
47
43
  presetId: string;
48
- sessionCompatibility: SessionCompatResult;
49
44
  }>>;
50
45
  //# sourceMappingURL=installer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installer.d.mts","sourceRoot":"","sources":["../../src/installer.mts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAQhD,MAAM,WAAW,qBAA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;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAgCD,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,aAAa,qBAAqB,CAAC;AAKhD,eAAO,MAAM,MAAM,UAAwB,CAAC;AAE5C,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,GAAE,OAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAOhF;AAsBD,eAAO,MAAM,mBAAmB,eAAY,CAAC;AAC7C,eAAO,MAAM,sBAAsB,mBAAsC,CAAC;AAI1E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE3D;AACD,eAAO,MAAM,qBAAqB,eAAqB,CAAC;AAexD,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,SAAwB,GAAG,MAAM,CAQ5G;AAED,wBAAgB,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAShG;AAED,wBAAsB,wBAAwB,CAAC,OAAO,GAAE,qBAA0B;YArGxE,QAAQ,GAAG,WAAW,GAAG,SAAS;YAClC,MAAM,EAAE;cACN,MAAM;iBACH,MAAM;;;;IAwGpB;AAED,wBAAsB,kBAAkB,CAAC,OAAO,GAAE,qBAA0B;;;;;;;;;IA+E3E;AAED,wBAAsB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B;;;;;;;;IAe7E"}
@@ -39,15 +39,14 @@ const packageMetadata = {
39
39
  version: parsedPackageMetadata.version,
40
40
  peerDependencies,
41
41
  };
42
- const EXPECTED_DSH_RANGE = "0.1.1-rc.2 || >=0.1.2-alpha.5 <0.1.2";
42
+ const EXPECTED_DSH_RANGE = "0.1.2-rc.1";
43
43
  const SOURCE_DSH_VERSION = "0.1.2-rc.1";
44
- const LEGACY_DSH_VERSION = "0.1.1-rc.2";
45
44
  const peerRange = packageMetadata.peerDependencies["@deepseek-ai/dsh"];
46
45
  if (!peerRange || peerRange !== EXPECTED_DSH_RANGE || validRange(peerRange) === null) {
47
46
  throw new Error(`odai-dsh-agent peer dependency must equal ${EXPECTED_DSH_RANGE}`);
48
47
  }
49
48
  export const SUPPORTED_DSH_RANGE = peerRange;
50
- export const SUPPORTED_DSH_VERSIONS = Object.freeze([LEGACY_DSH_VERSION, SOURCE_DSH_VERSION]);
49
+ export const SUPPORTED_DSH_VERSIONS = Object.freeze([SOURCE_DSH_VERSION]);
51
50
  if (SUPPORTED_DSH_VERSIONS.some((version) => !satisfies(version, SUPPORTED_DSH_RANGE))) {
52
51
  throw new Error(`Odai Agent tested DSH versions must satisfy ${SUPPORTED_DSH_RANGE}`);
53
52
  }
@@ -59,7 +58,6 @@ const requiredFiles = Object.freeze([
59
58
  "agent.cordis.yml",
60
59
  "preset.yml",
61
60
  "runtime/index.mjs",
62
- "runtime/session-compat.mjs",
63
61
  "runtime/session-evidence.mjs",
64
62
  "runtime/skill-bundle.mjs",
65
63
  "runtime/skill-evolution.mjs",
@@ -69,11 +67,6 @@ const requiredFiles = Object.freeze([
69
67
  "skills/odai/SKILL.md",
70
68
  "skills/odai/manifest.json",
71
69
  ]);
72
- function replaceRequired(value, oldString, newString, label) {
73
- if (!value.includes(oldString))
74
- throw new Error(`agent source composition is missing ${label}`);
75
- return value.replace(oldString, newString);
76
- }
77
70
  export function renderAgentCompositionForDsh(composition, dshVersion = SUPPORTED_DSH_VERSION) {
78
71
  if (typeof composition !== "string" || composition.trim() === "") {
79
72
  throw new TypeError("agent composition must be a non-empty string");
@@ -81,41 +74,7 @@ export function renderAgentCompositionForDsh(composition, dshVersion = SUPPORTED
81
74
  if (!supportsDshVersion(dshVersion)) {
82
75
  throw new Error(`unsupported DSH version ${dshVersion || "<empty>"}; expected ${SUPPORTED_DSH_RANGE}`);
83
76
  }
84
- let rendered = composition.replace(/\r\n/gu, "\n");
85
- if (dshVersion !== LEGACY_DSH_VERSION)
86
- return rendered;
87
- rendered = replaceRequired(rendered, [
88
- "# The goal service and session driver stay on the host plane, where the Gateway",
89
- "# can resolve them. The human command and model-facing tool register into this",
90
- "# preset's scoped layers.",
91
- "- id: command-goal",
92
- " name: '@deepseek-ai/dsh-command-goal'",
93
- ].join("\n") + "\n\n", [
94
- "# Only the model-facing tool. The goal SERVICE, its session driver, and the",
95
- "# `/goal` command stay on the host plane: the Gateway serves the goal domain as",
96
- "# Remote endpoints whose receiver comes from a generated descriptor, so it",
97
- "# resolves `goals` on the host and an entry-local realm here would hide it. The",
98
- "# registry is keyed by session anyway, so one host instance serves every",
99
- "# session. What a preset chooses is whether its agent can call the goal tool.",
100
- ].join("\n") + "\n", "rc.1 goal command block");
101
- rendered = replaceRequired(rendered, "- id: delegation\n", [
102
- "#",
103
- "# `tool-subagent-report` is host-plane for the same reason as the registry,",
104
- "# not because a preset may not want it: it registers a CONTINUABLE SETUP on",
105
- "# that singleton rather than a tool this agent calls, and the setup list is",
106
- "# not scope-aware — one copy per mounted preset means every child gets",
107
- "# `report` registered once per live session, which throws on the second.",
108
- "- id: delegation",
109
- ].join("\n") + "\n", "rc.1 send_message host guidance");
110
- rendered = replaceRequired(rendered, " modelSelectionSettings: true\n", "", "rc.1 spawn model selection setting");
111
- rendered = replaceRequired(rendered, [
112
- " # Fork omits model selection so provider/model stay equal to the parent and",
113
- " # the inherited history remains eligible for KV Cache reuse. This preset",
114
- " # keeps fork continuable; parent and child inherit the same messaging tool,",
115
- " # while the parent id and return guidance follow the inherited history.",
116
- ].join("\n") + "\n", "", "rc.1 fork messaging guidance");
117
- rendered = replaceRequired(rendered, " fetch: true\n", " fetch: false\n", "rc.1 web fetch setting");
118
- return rendered;
77
+ return composition.replace(/\r\n/gu, "\n");
119
78
  }
120
79
  export function resolveDshHome(configured, env = process.env) {
121
80
  const value = configured ?? env.DSH_HOME ?? resolve(homedir(), ".dsh");
@@ -154,7 +113,6 @@ export async function installAgentPreset(options = {}) {
154
113
  throw new Error(`refusing to replace modified preset at ${target}: ${current.issues.join("; ")}`);
155
114
  }
156
115
  await assertSource(sourceRoot);
157
- const sessionCompatibility = await repairSessionCompatibility(dshHome, [sourceRoot], options.confirmDshStopped === true, options.processScanner);
158
116
  await mkdir(targetRoot, { recursive: true, mode: 0o700 });
159
117
  const staging = resolve(targetRoot, `.${presetId}.tmp-${process.pid}-${randomUUID()}`);
160
118
  const backup = resolve(targetRoot, `.${presetId}.backup-${process.pid}-${randomUUID()}`);
@@ -200,7 +158,6 @@ export async function installAgentPreset(options = {}) {
200
158
  dshVersion,
201
159
  trust: "user",
202
160
  security: "DSH user presets have the same privileges as shell access; install only reviewed preset code.",
203
- sessionCompatibility,
204
161
  });
205
162
  }
206
163
  catch (error) {
@@ -225,16 +182,11 @@ export async function uninstallAgentPreset(options = {}) {
225
182
  throw new Error(`refusing to remove modified preset at ${inspected.target}: ${inspected.issues.join("; ")}`);
226
183
  }
227
184
  await assertPresetIsNotDefault(inspected.dshHome, inspected.presetId);
228
- const sessionCompatibility = await repairSessionCompatibility(inspected.dshHome, [defaultSourceRoot, inspected.target], options.confirmDshStopped === true, options.processScanner);
229
- if (sessionCompatibility.failures.length > 0) {
230
- throw new Error(`refusing to uninstall before legacy Odai session evidence is made ignorable: ${sessionCompatibility.failures.map((failure) => `${failure.path}: ${failure.error}`).join("; ")}`);
231
- }
232
185
  await rm(inspected.target, { recursive: true, force: true });
233
186
  return Object.freeze({
234
187
  operation: "uninstalled",
235
188
  target: inspected.target,
236
189
  presetId: inspected.presetId,
237
- sessionCompatibility,
238
190
  });
239
191
  }
240
192
  async function assertPresetIsNotDefault(dshHome, presetId) {
@@ -322,37 +274,6 @@ function validateManifest(manifest, presetId) {
322
274
  }
323
275
  return issues;
324
276
  }
325
- async function repairSessionCompatibility(dshHome, sourceRoots, confirmDshStopped, processScanner) {
326
- for (const sourceRoot of sourceRoots) {
327
- const modulePath = resolve(sourceRoot, "runtime/session-compat.mjs");
328
- if (await pathState(modulePath) !== "file")
329
- continue;
330
- const compatibility = await import(pathToFileURL(modulePath).href);
331
- if (typeof compatibility.inspectLegacySessionLogs !== "function"
332
- || typeof compatibility.repairLegacySessionLogs !== "function") {
333
- throw new Error(`agent package session compatibility module is invalid: ${modulePath}`);
334
- }
335
- const inspected = compatibility.inspectLegacySessionLogs({ dshHome });
336
- if (inspected.failures.length > 0) {
337
- throw new Error(`cannot inspect legacy Odai session evidence safely: ${inspected.failures.map((failure) => `${failure.path}: ${failure.error}`).join("; ")}`);
338
- }
339
- if (inspected.matchedEvents === 0)
340
- return inspected;
341
- if (!confirmDshStopped) {
342
- throw new Error(`found ${inspected.matchedEvents} legacy Odai session event(s); stop every DSH process and rerun with --yes before changing the Agent preset`);
343
- }
344
- const repaired = compatibility.repairLegacySessionLogs({
345
- dshHome,
346
- confirmDshStopped: true,
347
- processScanner,
348
- });
349
- if (repaired.failures.length > 0) {
350
- throw new Error(`cannot repair legacy Odai session evidence safely: ${repaired.failures.map((failure) => `${failure.path}: ${failure.error}`).join("; ")}`);
351
- }
352
- return repaired;
353
- }
354
- throw new Error("agent package is incomplete: missing runtime/session-compat.mjs");
355
- }
356
277
  async function assertSource(sourceRoot) {
357
278
  for (const path of requiredFiles) {
358
279
  const state = await pathState(resolve(sourceRoot, path));
@@ -1 +1 @@
1
- {"version":3,"file":"installer.mjs","sourceRoot":"","sources":["../../src/installer.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,KAAK,EACL,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,EAAE,EACF,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAA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AAG,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC;;gBACvE,MAAM,IAAI,KAAK,CAAC,mDAAmD,YAAY,EAAE,CAAC,CAAC;QAC1F,CAAC;IACH,CAAC;AACH,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,IAAY;IAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,KAAK,UAAU,SAAS,CAAC,IAAY;IACnC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,KAAK,CAAC,cAAc,EAAE;YAAE,OAAO,SAAS,CAAC;QAC7C,IAAI,KAAK,CAAC,WAAW,EAAE;YAAE,OAAO,WAAW,CAAC;QAC5C,IAAI,KAAK,CAAC,MAAM,EAAE;YAAE,OAAO,MAAM,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QACpD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,KAAc;IACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9E,MAAM,IAAI,SAAS,CAAC,4EAA4E,CAAC,CAAC;IACpG,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
package/client/client.js CHANGED
@@ -255,7 +255,7 @@ window.__ModuleLoader__.load({
255
255
  function controlCenterError(cause) {
256
256
  const message = cause instanceof Error ? cause.message : String(cause);
257
257
  return /HTTP 405|transport failure.*odai-control-center/iu.test(message)
258
- ? "当前 DSH 进程尚未加载 Control Center host。安装后需重启一次 Web profile。"
258
+ ? "Control Center 已随 Odai 安装,无需另行安装。当前 Web profile 尚未加载 host,请停止并重新启动 dsh web 后刷新页面。"
259
259
  : message;
260
260
  }
261
261
  function GraphIcon() {
@@ -413,19 +413,12 @@ window.__ModuleLoader__.load({
413
413
  onApply: apply,
414
414
  }))) : loading ? h("div", { className: "odaiCC__empty" }, "正在加载路由配置…") : null);
415
415
  }
416
- function legacyTraceView(snapshot) {
417
- return snapshot?.views?.get?.("odaiControlCenter") ?? EMPTY_TRACE_VIEW;
418
- }
419
416
  function conversationTraceSource(conversation, sessionId) {
420
417
  return conversation && sessionId ? conversation.binding(sessionId).target("odaiControlCenter") : EMPTY_TRACE_SOURCE;
421
418
  }
422
- function ControlCenter({ useSession, sessionId: ownerSessionId, traceSource, connection, onClose }) {
423
- const selectedSessionId = useSession((snapshot) => snapshot.sessionId);
424
- const sessionId = ownerSessionId ?? selectedSessionId;
425
- const source = useMemo(() => traceSource?.(sessionId) ?? EMPTY_TRACE_SOURCE, [traceSource, sessionId]);
426
- const modernTraceView = useSyncExternalStore(source.subscribe, source.getSnapshot, source.getSnapshot);
427
- const legacyView = useSession(legacyTraceView);
428
- const traceView = traceSource ? modernTraceView ?? EMPTY_TRACE_VIEW : legacyView;
419
+ function ControlCenter({ sessionId, traceSource, connection, onClose }) {
420
+ const source = useMemo(() => traceSource(sessionId), [traceSource, sessionId]);
421
+ const traceView = useSyncExternalStore(source.subscribe, source.getSnapshot, source.getSnapshot) ?? EMPTY_TRACE_VIEW;
429
422
  const [storedEvidence, setStoredEvidence] = useState([]);
430
423
  const [evidenceError, setEvidenceError] = useState("");
431
424
  const traceEvents = storedEvidence.length ? storedEvidence : traceView.events ?? [];
@@ -533,18 +526,18 @@ window.__ModuleLoader__.load({
533
526
  const tag = document.createElement("style");
534
527
  tag.dataset.plugin = PACKAGE_ID;
535
528
  tag.dataset.pluginCss = styleId;
536
- tag.textContent = `
537
- .odaiCC__launcher,.odaiCC{--odai-cc-bg:#f5f7fa;--odai-cc-panel:#fff;--odai-cc-surface:#f8fafc;--odai-cc-surface-2:#edf1f5;--odai-cc-text:#151922;--odai-cc-text-2:#4c5665;--odai-cc-text-3:#778190;--odai-cc-border:#d8dee7;--odai-cc-border-strong:#bdc6d2;--odai-cc-hover:#edf3ff;--odai-cc-accent:#2f6feb}
538
- .odaiCC__launcher{box-sizing:border-box;height:28px;border:1px solid var(--odai-cc-border);border-radius:6px;background:transparent;color:var(--odai-cc-text-2);display:inline-flex;align-items:center;gap:6px;padding:0 8px;cursor:pointer;font:600 11px/1 inherit;letter-spacing:0}.odaiCC__launcher:hover{background:var(--odai-cc-hover);color:var(--odai-cc-text)}
539
- .odaiCC__graphIcon{position:relative;width:17px;height:15px;display:inline-block;flex:none}.odaiCC__graphNode{position:absolute;width:5px;height:5px;border:1.5px solid currentColor;border-radius:50%;box-sizing:border-box}.odaiCC__graphNode--a{left:0;top:5px}.odaiCC__graphNode--b{right:0;top:0}.odaiCC__graphNode--c{right:0;bottom:0}.odaiCC__graphLine{position:absolute;left:5px;top:7px;width:7px;height:1px;background:currentColor}.odaiCC__graphLine:before,.odaiCC__graphLine:after{content:"";position:absolute;right:0;width:5px;height:1px;background:currentColor;transform-origin:right center}.odaiCC__graphLine:before{transform:rotate(-38deg)}.odaiCC__graphLine:after{transform:rotate(38deg)}
540
- .odaiCC{position:fixed;inset:0;z-index:120;color:var(--odai-cc-text);font-family:inherit;letter-spacing:0}.odaiCC *{box-sizing:border-box}.odaiCC__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.28)}.odaiCC__drawer{position:absolute;inset:14px;max-width:1180px;margin-left:auto;border:1px solid var(--odai-cc-border-strong);border-radius:8px;background:var(--odai-cc-panel);box-shadow:0 24px 80px rgba(0,0,0,.42);display:flex;flex-direction:column;overflow:hidden}.odaiCC__header{min-height:62px;border-bottom:1px solid var(--odai-cc-border);display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(44px,1fr);align-items:center;gap:16px;padding:10px 14px}.odaiCC__brand{display:flex;align-items:center;gap:10px;min-width:0}.odaiCC__brand>.odaiCC__graphIcon{width:22px;height:19px;color:var(--odai-cc-accent)}.odaiCC__brand h2{font-size:16px;line-height:22px;margin:0}.odaiCC__brand span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__tabs{display:flex;border:1px solid var(--odai-cc-border);border-radius:6px;padding:2px;background:var(--odai-cc-surface)}.odaiCC__tabs button{height:30px;min-width:72px;border:0;border-radius:4px;background:transparent;color:var(--odai-cc-text-3);cursor:pointer;font:600 12px/1 inherit}.odaiCC__tabs button.is-active{background:var(--odai-cc-panel);color:var(--odai-cc-text);box-shadow:0 1px 4px rgba(0,0,0,.2)}.odaiCC__close{justify-self:end;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--odai-cc-text-2);font-size:22px;line-height:1;cursor:pointer}.odaiCC__close:hover{background:var(--odai-cc-hover)}.odaiCC__body{min-height:0;flex:1;overflow:auto}.odaiCC__live{padding:14px}.odaiCC__kicker{display:block;color:var(--odai-cc-text-3);font:700 9px/14px inherit;letter-spacing:.08em}.odaiCC__sectionHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.odaiCC__sectionHead h3{font-size:12px;line-height:18px;margin:0}.odaiCC__eventCount{color:var(--odai-cc-text-3);font-size:10px}.odaiCC__flow{border:1px solid var(--odai-cc-border);border-radius:8px;background:var(--odai-cc-surface);padding:12px}.odaiCC__flowGrid{display:grid;grid-template-columns:minmax(160px,220px) minmax(360px,1fr);gap:22px;align-items:center;min-height:265px}.odaiCC__controllerNode{border:1px solid rgba(119,167,255,.45);border-radius:8px;background:rgba(119,167,255,.08);padding:18px}.odaiCC__controllerNode strong,.odaiCC__roleNode strong{display:block;font-size:12px;line-height:18px}.odaiCC__controllerNode small,.odaiCC__roleNode small{display:block;color:var(--odai-cc-text-3);font-size:10px;line-height:15px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.odaiCC__nodeEyebrow{color:#2f6feb;font-size:9px;font-weight:700}.odaiCC__roleStack{display:flex;flex-direction:column;gap:8px}.odaiCC__flowRole{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;border:0;background:transparent;color:inherit;padding:0;text-align:left}.odaiCC__flowRole:not(:disabled){cursor:pointer}.odaiCC__flowRole:disabled{opacity:1}.odaiCC__edge{position:relative;height:1px;background:var(--odai-cc-border-strong);margin-right:12px}.odaiCC__edge i{position:absolute;right:-1px;top:-3px;width:7px;height:7px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}.odaiCC__edge em{position:absolute;left:5px;top:-17px;color:var(--odai-cc-text-3);font:500 9px/12px inherit;font-style:normal}.odaiCC__edge[data-state=proposal],.odaiCC__edge[data-state=decision]{background:repeating-linear-gradient(90deg,#65c6b8 0 5px,transparent 5px 9px);color:#65c6b8}.odaiCC__edge[data-state=same-turn]{background:#b99cff;color:#b99cff}.odaiCC__edge[data-state=child]{background:var(--odai-cc-accent);color:var(--odai-cc-accent)}.odaiCC__edge[data-state=handback]{background:#f1bb61;color:#f1bb61}.odaiCC__edge[data-state=blocked],.odaiCC__edge[data-state=interrupted]{background:#ef7e78;color:#ef7e78}.odaiCC__roleNode{border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);padding:8px 10px;min-width:0}.odaiCC__flowRole:not(:disabled):hover .odaiCC__roleNode{border-color:var(--odai-cc-accent)}.odaiCC__role{display:inline-flex;align-items:center;gap:5px;color:var(--odai-cc-text-2);font-size:9px;line-height:14px}.odaiCC__role i{width:6px;height:6px;border-radius:50%;background:#8f969e}.odaiCC__role--controller i{background:var(--odai-cc-accent)}.odaiCC__role--researcher i{background:#65c6b8}.odaiCC__role--planner i{background:#b99cff}.odaiCC__role--reviewer i{background:#f1bb61}.odaiCC__role--frontend i{background:#ef8fbd}.odaiCC__evidenceGrid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:12px;margin-top:12px}.odaiCC__timeline,.odaiCC__inspector{min-width:0;border:1px solid var(--odai-cc-border);border-radius:8px;background:var(--odai-cc-surface);padding:10px}.odaiCC__turn{border-top:1px solid var(--odai-cc-border);padding:8px 0}.odaiCC__turn:first-child{border-top:0;padding-top:0}.odaiCC__turn summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:10px}.odaiCC__turn summary::-webkit-details-marker{display:none}.odaiCC__turn summary span{color:var(--odai-cc-text-3)}.odaiCC__events{display:flex;flex-direction:column;gap:6px;margin-top:8px}.odaiCC__event{width:100%;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);color:inherit;padding:8px;text-align:left;cursor:pointer}.odaiCC__event:hover,.odaiCC__event.is-selected{border-color:var(--odai-cc-accent);background:var(--odai-cc-hover)}.odaiCC__eventTop{display:flex;align-items:center;gap:6px;color:var(--odai-cc-text-3);font-size:9px}.odaiCC__eventTop time{margin-left:auto}.odaiCC__eventTop code{font-size:9px}.odaiCC__event>strong{display:block;margin-top:5px;font-size:11px;line-height:16px}.odaiCC__eventDetail{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--odai-cc-text-2);font-size:10px;line-height:15px;margin-top:2px}.odaiCC__eventBottom{display:flex;gap:8px;align-items:center;color:var(--odai-cc-text-3);font-size:9px;margin-top:6px}.odaiCC__state{display:inline-flex;border-radius:999px;background:var(--odai-cc-surface-2);color:var(--odai-cc-text-2);padding:1px 6px;font-size:9px;line-height:13px}.odaiCC__state--proposal{background:rgba(101,198,184,.15);color:#18756b}.odaiCC__state--same-turn{background:rgba(185,156,255,.15);color:#6f42c1}.odaiCC__state--child{background:rgba(119,167,255,.15);color:#245ec7}.odaiCC__state--handback{background:rgba(241,187,97,.15);color:#946000}.odaiCC__state--blocked,.odaiCC__state--interrupted{background:rgba(239,126,120,.15);color:#b42318}.odaiCC__facts{margin:0;display:flex;flex-direction:column;gap:7px}.odaiCC__facts>div{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px;font-size:10px}.odaiCC__facts dt{color:var(--odai-cc-text-3)}.odaiCC__facts dd{margin:0;overflow-wrap:anywhere}.odaiCC__facts code{font-size:9px}.odaiCC__raw{max-height:360px;overflow:auto;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);color:var(--odai-cc-text-2);font:9px/14px ui-monospace,SFMono-Regular,Menlo,monospace;padding:8px;margin:10px 0 0}.odaiCC__empty{border:1px dashed var(--odai-cc-border-strong);border-radius:7px;color:var(--odai-cc-text-3);font-size:10px;line-height:16px;padding:18px;text-align:center}
541
- .odaiCC__routing{max-width:1000px;margin:0 auto;padding:16px 18px}.odaiCC__routingHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.odaiCC__routingHead h3{font-size:16px;line-height:22px;margin:0}.odaiCC__quietButton,.odaiCC__primaryButton,.odaiCC__dangerButton{height:30px;border-radius:6px;padding:0 11px;font:600 12px/1 inherit;cursor:pointer}.odaiCC__quietButton{border:1px solid var(--odai-cc-border);background:transparent;color:var(--odai-cc-text-2)}.odaiCC__primaryButton{border:1px solid var(--odai-cc-accent);background:var(--odai-cc-accent);color:#fff}.odaiCC__dangerButton{border:1px solid rgba(239,126,120,.45);background:transparent;color:#b42318}.odaiCC button:disabled:not(.odaiCC__flowRole){opacity:.45;cursor:default}.odaiCC__flowRole:disabled{opacity:1;cursor:default}.odaiCC__alert{border:1px solid var(--odai-cc-border);border-radius:7px;padding:8px 10px;font-size:12px;line-height:18px;margin-bottom:10px}.odaiCC__alert.is-error{border-color:rgba(239,126,120,.4);background:rgba(239,126,120,.08);color:#b42318}.odaiCC__alert.is-success{border-color:rgba(101,198,184,.4);background:rgba(101,198,184,.08);color:#18756b}.odaiCC__controllerLock,.odaiCC__routeRow{border-top:1px solid var(--odai-cc-border);padding:9px 0}.odaiCC__controllerLock{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;align-items:center}.odaiCC__controllerLock strong{display:block;font-size:13px;line-height:18px}.odaiCC__controllerLock span:not(.odaiCC__role):not(.odaiCC__lock){display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__lock{border:1px solid var(--odai-cc-border);border-radius:999px;color:var(--odai-cc-text-3);font-size:10px;padding:3px 7px}.odaiCC__routeRow{display:grid;grid-template-columns:minmax(300px,1fr) minmax(410px,1.15fr);gap:8px 20px;align-items:center}.odaiCC__routeSummary{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:10px;align-items:center}.odaiCC__routeValue strong{display:block;font-size:13px;line-height:18px;overflow-wrap:anywhere}.odaiCC__routeValue span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__dispatch{display:grid;grid-template-columns:70px auto minmax(0,1fr);gap:10px;align-items:center}.odaiCC__dispatch>span,.odaiCC__dispatch small{color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__segments{display:flex;border:1px solid var(--odai-cc-border);border-radius:6px;overflow:hidden}.odaiCC__segments button{height:28px;border:0;border-right:1px solid var(--odai-cc-border);background:transparent;color:var(--odai-cc-text-3);padding:0 9px;font:500 11px/1 inherit;cursor:pointer}.odaiCC__segments button:last-child{border-right:0}.odaiCC__segments button.is-active{background:var(--odai-cc-hover);color:var(--odai-cc-text)}.odaiCC__routeForm{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:10px;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-surface)}.odaiCC__routeForm label span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px;margin-bottom:4px}.odaiCC__routeForm input{width:100%;min-width:0;height:32px;border:1px solid var(--odai-cc-border);border-radius:5px;background:var(--odai-cc-panel);color:var(--odai-cc-text);padding:0 8px;font:12px/1 inherit;outline:none}.odaiCC__routeForm input:focus{border-color:var(--odai-cc-accent)}.odaiCC__formActions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
542
- .odaiCC__body{overflow:hidden}.odaiCC__live{height:100%;min-height:0;display:flex;flex-direction:column;gap:14px;overflow:hidden;padding:14px}.odaiCC__live>.odaiCC__alert{flex:none;margin-bottom:0}.odaiCC__flow{flex:none;max-height:38vh;overflow:auto;scrollbar-gutter:stable}.odaiCC__evidenceGrid{flex:1;min-height:0;overflow:hidden;margin-top:0}.odaiCC__timeline{display:flex;flex-direction:column;min-height:0;overflow:hidden}.odaiCC__timeline>.odaiCC__sectionHead{flex:none}.odaiCC__turns{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.odaiCC__inspector{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.odaiCC__inspector>.odaiCC__sectionHead{position:sticky;top:0;z-index:1;background:var(--odai-cc-panel);padding-bottom:8px}.odaiCC__sectionHead h3{font-size:13px;line-height:20px}.odaiCC__kicker{font:700 11px/16px inherit;letter-spacing:0}.odaiCC__role,.odaiCC__state,.odaiCC__nodeEyebrow{font-size:11px}.odaiCC__controllerNode strong,.odaiCC__roleNode strong{font-size:13px;line-height:18px}.odaiCC__controllerNode small,.odaiCC__roleNode small,.odaiCC__edge em{font-size:11px;line-height:16px}.odaiCC__eventCount{font-size:11px;line-height:16px}.odaiCC__turn summary{font-size:12px;line-height:18px}.odaiCC__eventTop code,.odaiCC__eventTop time{font-size:11px;line-height:16px}.odaiCC__event>strong{font-size:13px;line-height:18px}.odaiCC__eventDetail,.odaiCC__eventBottom{font-size:11px;line-height:16px}.odaiCC__eventTop .odaiCC__state,.odaiCC__eventBottom .odaiCC__role,.odaiCC__facts .odaiCC__state,.odaiCC__facts .odaiCC__role{font-size:10px}.odaiCC__facts dt{font-size:11px;line-height:18px}.odaiCC__facts dd{font-size:12px;line-height:18px}.odaiCC__facts code{font-size:11px;line-height:18px}.odaiCC__raw{font:12px/18px ui-monospace,SFMono-Regular,Consolas,monospace}.odaiCC__loadEarlier{width:100%;height:30px;border:0;border-bottom:1px solid var(--odai-cc-border);background:var(--odai-cc-surface);color:var(--odai-cc-text-2);font:600 10px/1 inherit;cursor:pointer}.odaiCC__loadEarlier:hover{background:var(--odai-cc-hover);color:var(--odai-cc-text)}.odaiCC__routing{height:100%;overflow-y:auto}
543
- @media(max-width:900px){.odaiCC__routeRow{display:block}.odaiCC__dispatch{margin-top:7px}}
544
- @media(max-width:760px){.odaiCC__launcher span:last-child{display:none}.odaiCC__drawer{inset:6px}.odaiCC__header{grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:8px}.odaiCC__brand span{display:none}.odaiCC__tabs button{min-width:56px}.odaiCC__live{padding:8px}.odaiCC__flowGrid{grid-template-columns:1fr;gap:10px;min-height:0}.odaiCC__controllerNode{padding:10px}.odaiCC__flowRole{grid-template-columns:65px minmax(0,1fr)}.odaiCC__evidenceGrid{grid-template-columns:1fr}.odaiCC__inspector{max-height:none}.odaiCC__routing{padding:10px}.odaiCC__controllerLock,.odaiCC__routeSummary{grid-template-columns:92px minmax(0,1fr) auto}.odaiCC__dispatch{grid-template-columns:92px 1fr}.odaiCC__dispatch small{grid-column:2}.odaiCC__routeForm{grid-template-columns:1fr 1fr;margin-left:0}.odaiCC__raw{max-height:240px}}
545
- @media(max-width:760px){.odaiCC__body{overflow:hidden}.odaiCC__live{gap:8px}.odaiCC__flow{max-height:30vh}.odaiCC__evidenceGrid{grid-template-rows:minmax(180px,1fr) minmax(120px,35vh);overflow:hidden}.odaiCC__timeline,.odaiCC__inspector{min-height:0;max-height:none}}
546
- @media(prefers-color-scheme:dark){.odaiCC__launcher,.odaiCC{--odai-cc-bg:#14171b;--odai-cc-panel:#191d22;--odai-cc-surface:#1f242a;--odai-cc-surface-2:#282e35;--odai-cc-text:#f2f4f7;--odai-cc-text-2:#c5cbd3;--odai-cc-text-3:#929ba7;--odai-cc-border:#333a43;--odai-cc-border-strong:#46505c;--odai-cc-hover:#26354b;--odai-cc-accent:#77a7ff}.odaiCC__nodeEyebrow{color:#91b7ff}.odaiCC__state--proposal,.odaiCC__alert.is-success{color:#90d9cf}.odaiCC__state--same-turn{color:#cbb8ff}.odaiCC__state--child{color:#a6c3ff}.odaiCC__state--handback{color:#f4ca84}.odaiCC__state--blocked,.odaiCC__state--interrupted,.odaiCC__dangerButton,.odaiCC__alert.is-error{color:#f3a39e}}
547
- @media(prefers-reduced-motion:no-preference){.odaiCC__drawer{animation:odaiCCIn .15s ease-out}}@keyframes odaiCCIn{from{opacity:.72;transform:translateX(8px)}to{opacity:1;transform:none}}
529
+ tag.textContent = `
530
+ .odaiCC__launcher,.odaiCC{--odai-cc-bg:#f5f7fa;--odai-cc-panel:#fff;--odai-cc-surface:#f8fafc;--odai-cc-surface-2:#edf1f5;--odai-cc-text:#151922;--odai-cc-text-2:#4c5665;--odai-cc-text-3:#778190;--odai-cc-border:#d8dee7;--odai-cc-border-strong:#bdc6d2;--odai-cc-hover:#edf3ff;--odai-cc-accent:#2f6feb}
531
+ .odaiCC__launcher{box-sizing:border-box;height:28px;border:1px solid var(--odai-cc-border);border-radius:6px;background:transparent;color:var(--odai-cc-text-2);display:inline-flex;align-items:center;gap:6px;padding:0 8px;cursor:pointer;font:600 11px/1 inherit;letter-spacing:0}.odaiCC__launcher:hover{background:var(--odai-cc-hover);color:var(--odai-cc-text)}
532
+ .odaiCC__graphIcon{position:relative;width:17px;height:15px;display:inline-block;flex:none}.odaiCC__graphNode{position:absolute;width:5px;height:5px;border:1.5px solid currentColor;border-radius:50%;box-sizing:border-box}.odaiCC__graphNode--a{left:0;top:5px}.odaiCC__graphNode--b{right:0;top:0}.odaiCC__graphNode--c{right:0;bottom:0}.odaiCC__graphLine{position:absolute;left:5px;top:7px;width:7px;height:1px;background:currentColor}.odaiCC__graphLine:before,.odaiCC__graphLine:after{content:"";position:absolute;right:0;width:5px;height:1px;background:currentColor;transform-origin:right center}.odaiCC__graphLine:before{transform:rotate(-38deg)}.odaiCC__graphLine:after{transform:rotate(38deg)}
533
+ .odaiCC{position:fixed;inset:0;z-index:120;color:var(--odai-cc-text);font-family:inherit;letter-spacing:0}.odaiCC *{box-sizing:border-box}.odaiCC__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.28)}.odaiCC__drawer{position:absolute;inset:14px;max-width:1180px;margin-left:auto;border:1px solid var(--odai-cc-border-strong);border-radius:8px;background:var(--odai-cc-panel);box-shadow:0 24px 80px rgba(0,0,0,.42);display:flex;flex-direction:column;overflow:hidden}.odaiCC__header{min-height:62px;border-bottom:1px solid var(--odai-cc-border);display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(44px,1fr);align-items:center;gap:16px;padding:10px 14px}.odaiCC__brand{display:flex;align-items:center;gap:10px;min-width:0}.odaiCC__brand>.odaiCC__graphIcon{width:22px;height:19px;color:var(--odai-cc-accent)}.odaiCC__brand h2{font-size:16px;line-height:22px;margin:0}.odaiCC__brand span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__tabs{display:flex;border:1px solid var(--odai-cc-border);border-radius:6px;padding:2px;background:var(--odai-cc-surface)}.odaiCC__tabs button{height:30px;min-width:72px;border:0;border-radius:4px;background:transparent;color:var(--odai-cc-text-3);cursor:pointer;font:600 12px/1 inherit}.odaiCC__tabs button.is-active{background:var(--odai-cc-panel);color:var(--odai-cc-text);box-shadow:0 1px 4px rgba(0,0,0,.2)}.odaiCC__close{justify-self:end;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--odai-cc-text-2);font-size:22px;line-height:1;cursor:pointer}.odaiCC__close:hover{background:var(--odai-cc-hover)}.odaiCC__body{min-height:0;flex:1;overflow:auto}.odaiCC__live{padding:14px}.odaiCC__kicker{display:block;color:var(--odai-cc-text-3);font:700 9px/14px inherit;letter-spacing:.08em}.odaiCC__sectionHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.odaiCC__sectionHead h3{font-size:12px;line-height:18px;margin:0}.odaiCC__eventCount{color:var(--odai-cc-text-3);font-size:10px}.odaiCC__flow{border:1px solid var(--odai-cc-border);border-radius:8px;background:var(--odai-cc-surface);padding:12px}.odaiCC__flowGrid{display:grid;grid-template-columns:minmax(160px,220px) minmax(360px,1fr);gap:22px;align-items:center;min-height:265px}.odaiCC__controllerNode{border:1px solid rgba(119,167,255,.45);border-radius:8px;background:rgba(119,167,255,.08);padding:18px}.odaiCC__controllerNode strong,.odaiCC__roleNode strong{display:block;font-size:12px;line-height:18px}.odaiCC__controllerNode small,.odaiCC__roleNode small{display:block;color:var(--odai-cc-text-3);font-size:10px;line-height:15px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.odaiCC__nodeEyebrow{color:#2f6feb;font-size:9px;font-weight:700}.odaiCC__roleStack{display:flex;flex-direction:column;gap:8px}.odaiCC__flowRole{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;border:0;background:transparent;color:inherit;padding:0;text-align:left}.odaiCC__flowRole:not(:disabled){cursor:pointer}.odaiCC__flowRole:disabled{opacity:1}.odaiCC__edge{position:relative;height:1px;background:var(--odai-cc-border-strong);margin-right:12px}.odaiCC__edge i{position:absolute;right:-1px;top:-3px;width:7px;height:7px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}.odaiCC__edge em{position:absolute;left:5px;top:-17px;color:var(--odai-cc-text-3);font:500 9px/12px inherit;font-style:normal}.odaiCC__edge[data-state=proposal],.odaiCC__edge[data-state=decision]{background:repeating-linear-gradient(90deg,#65c6b8 0 5px,transparent 5px 9px);color:#65c6b8}.odaiCC__edge[data-state=same-turn]{background:#b99cff;color:#b99cff}.odaiCC__edge[data-state=child]{background:var(--odai-cc-accent);color:var(--odai-cc-accent)}.odaiCC__edge[data-state=handback]{background:#f1bb61;color:#f1bb61}.odaiCC__edge[data-state=blocked],.odaiCC__edge[data-state=interrupted]{background:#ef7e78;color:#ef7e78}.odaiCC__roleNode{border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);padding:8px 10px;min-width:0}.odaiCC__flowRole:not(:disabled):hover .odaiCC__roleNode{border-color:var(--odai-cc-accent)}.odaiCC__role{display:inline-flex;align-items:center;gap:5px;color:var(--odai-cc-text-2);font-size:9px;line-height:14px}.odaiCC__role i{width:6px;height:6px;border-radius:50%;background:#8f969e}.odaiCC__role--controller i{background:var(--odai-cc-accent)}.odaiCC__role--researcher i{background:#65c6b8}.odaiCC__role--planner i{background:#b99cff}.odaiCC__role--reviewer i{background:#f1bb61}.odaiCC__role--frontend i{background:#ef8fbd}.odaiCC__evidenceGrid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:12px;margin-top:12px}.odaiCC__timeline,.odaiCC__inspector{min-width:0;border:1px solid var(--odai-cc-border);border-radius:8px;background:var(--odai-cc-surface);padding:10px}.odaiCC__turn{border-top:1px solid var(--odai-cc-border);padding:8px 0}.odaiCC__turn:first-child{border-top:0;padding-top:0}.odaiCC__turn summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:10px}.odaiCC__turn summary::-webkit-details-marker{display:none}.odaiCC__turn summary span{color:var(--odai-cc-text-3)}.odaiCC__events{display:flex;flex-direction:column;gap:6px;margin-top:8px}.odaiCC__event{width:100%;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);color:inherit;padding:8px;text-align:left;cursor:pointer}.odaiCC__event:hover,.odaiCC__event.is-selected{border-color:var(--odai-cc-accent);background:var(--odai-cc-hover)}.odaiCC__eventTop{display:flex;align-items:center;gap:6px;color:var(--odai-cc-text-3);font-size:9px}.odaiCC__eventTop time{margin-left:auto}.odaiCC__eventTop code{font-size:9px}.odaiCC__event>strong{display:block;margin-top:5px;font-size:11px;line-height:16px}.odaiCC__eventDetail{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--odai-cc-text-2);font-size:10px;line-height:15px;margin-top:2px}.odaiCC__eventBottom{display:flex;gap:8px;align-items:center;color:var(--odai-cc-text-3);font-size:9px;margin-top:6px}.odaiCC__state{display:inline-flex;border-radius:999px;background:var(--odai-cc-surface-2);color:var(--odai-cc-text-2);padding:1px 6px;font-size:9px;line-height:13px}.odaiCC__state--proposal{background:rgba(101,198,184,.15);color:#18756b}.odaiCC__state--same-turn{background:rgba(185,156,255,.15);color:#6f42c1}.odaiCC__state--child{background:rgba(119,167,255,.15);color:#245ec7}.odaiCC__state--handback{background:rgba(241,187,97,.15);color:#946000}.odaiCC__state--blocked,.odaiCC__state--interrupted{background:rgba(239,126,120,.15);color:#b42318}.odaiCC__facts{margin:0;display:flex;flex-direction:column;gap:7px}.odaiCC__facts>div{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px;font-size:10px}.odaiCC__facts dt{color:var(--odai-cc-text-3)}.odaiCC__facts dd{margin:0;overflow-wrap:anywhere}.odaiCC__facts code{font-size:9px}.odaiCC__raw{max-height:360px;overflow:auto;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-panel);color:var(--odai-cc-text-2);font:9px/14px ui-monospace,SFMono-Regular,Menlo,monospace;padding:8px;margin:10px 0 0}.odaiCC__empty{border:1px dashed var(--odai-cc-border-strong);border-radius:7px;color:var(--odai-cc-text-3);font-size:10px;line-height:16px;padding:18px;text-align:center}
534
+ .odaiCC__routing{max-width:1000px;margin:0 auto;padding:16px 18px}.odaiCC__routingHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.odaiCC__routingHead h3{font-size:16px;line-height:22px;margin:0}.odaiCC__quietButton,.odaiCC__primaryButton,.odaiCC__dangerButton{height:30px;border-radius:6px;padding:0 11px;font:600 12px/1 inherit;cursor:pointer}.odaiCC__quietButton{border:1px solid var(--odai-cc-border);background:transparent;color:var(--odai-cc-text-2)}.odaiCC__primaryButton{border:1px solid var(--odai-cc-accent);background:var(--odai-cc-accent);color:#fff}.odaiCC__dangerButton{border:1px solid rgba(239,126,120,.45);background:transparent;color:#b42318}.odaiCC button:disabled:not(.odaiCC__flowRole){opacity:.45;cursor:default}.odaiCC__flowRole:disabled{opacity:1;cursor:default}.odaiCC__alert{border:1px solid var(--odai-cc-border);border-radius:7px;padding:8px 10px;font-size:12px;line-height:18px;margin-bottom:10px}.odaiCC__alert.is-error{border-color:rgba(239,126,120,.4);background:rgba(239,126,120,.08);color:#b42318}.odaiCC__alert.is-success{border-color:rgba(101,198,184,.4);background:rgba(101,198,184,.08);color:#18756b}.odaiCC__controllerLock,.odaiCC__routeRow{border-top:1px solid var(--odai-cc-border);padding:9px 0}.odaiCC__controllerLock{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;align-items:center}.odaiCC__controllerLock strong{display:block;font-size:13px;line-height:18px}.odaiCC__controllerLock span:not(.odaiCC__role):not(.odaiCC__lock){display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__lock{border:1px solid var(--odai-cc-border);border-radius:999px;color:var(--odai-cc-text-3);font-size:10px;padding:3px 7px}.odaiCC__routeRow{display:grid;grid-template-columns:minmax(300px,1fr) minmax(410px,1.15fr);gap:8px 20px;align-items:center}.odaiCC__routeSummary{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:10px;align-items:center}.odaiCC__routeValue strong{display:block;font-size:13px;line-height:18px;overflow-wrap:anywhere}.odaiCC__routeValue span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__dispatch{display:grid;grid-template-columns:70px auto minmax(0,1fr);gap:10px;align-items:center}.odaiCC__dispatch>span,.odaiCC__dispatch small{color:var(--odai-cc-text-3);font-size:11px;line-height:16px}.odaiCC__segments{display:flex;border:1px solid var(--odai-cc-border);border-radius:6px;overflow:hidden}.odaiCC__segments button{height:28px;border:0;border-right:1px solid var(--odai-cc-border);background:transparent;color:var(--odai-cc-text-3);padding:0 9px;font:500 11px/1 inherit;cursor:pointer}.odaiCC__segments button:last-child{border-right:0}.odaiCC__segments button.is-active{background:var(--odai-cc-hover);color:var(--odai-cc-text)}.odaiCC__routeForm{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:10px;border:1px solid var(--odai-cc-border);border-radius:7px;background:var(--odai-cc-surface)}.odaiCC__routeForm label span{display:block;color:var(--odai-cc-text-3);font-size:11px;line-height:16px;margin-bottom:4px}.odaiCC__routeForm input{width:100%;min-width:0;height:32px;border:1px solid var(--odai-cc-border);border-radius:5px;background:var(--odai-cc-panel);color:var(--odai-cc-text);padding:0 8px;font:12px/1 inherit;outline:none}.odaiCC__routeForm input:focus{border-color:var(--odai-cc-accent)}.odaiCC__formActions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
535
+ .odaiCC__body{overflow:hidden}.odaiCC__live{height:100%;min-height:0;display:flex;flex-direction:column;gap:14px;overflow:hidden;padding:14px}.odaiCC__live>.odaiCC__alert{flex:none;margin-bottom:0}.odaiCC__flow{flex:none;max-height:38vh;overflow:auto;scrollbar-gutter:stable}.odaiCC__evidenceGrid{flex:1;min-height:0;overflow:hidden;margin-top:0}.odaiCC__timeline{display:flex;flex-direction:column;min-height:0;overflow:hidden}.odaiCC__timeline>.odaiCC__sectionHead{flex:none}.odaiCC__turns{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.odaiCC__inspector{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.odaiCC__inspector>.odaiCC__sectionHead{position:sticky;top:0;z-index:1;background:var(--odai-cc-panel);padding-bottom:8px}.odaiCC__sectionHead h3{font-size:13px;line-height:20px}.odaiCC__kicker{font:700 11px/16px inherit;letter-spacing:0}.odaiCC__role,.odaiCC__state,.odaiCC__nodeEyebrow{font-size:11px}.odaiCC__controllerNode strong,.odaiCC__roleNode strong{font-size:13px;line-height:18px}.odaiCC__controllerNode small,.odaiCC__roleNode small,.odaiCC__edge em{font-size:11px;line-height:16px}.odaiCC__eventCount{font-size:11px;line-height:16px}.odaiCC__turn summary{font-size:12px;line-height:18px}.odaiCC__eventTop code,.odaiCC__eventTop time{font-size:11px;line-height:16px}.odaiCC__event>strong{font-size:13px;line-height:18px}.odaiCC__eventDetail,.odaiCC__eventBottom{font-size:11px;line-height:16px}.odaiCC__eventTop .odaiCC__state,.odaiCC__eventBottom .odaiCC__role,.odaiCC__facts .odaiCC__state,.odaiCC__facts .odaiCC__role{font-size:10px}.odaiCC__facts dt{font-size:11px;line-height:18px}.odaiCC__facts dd{font-size:12px;line-height:18px}.odaiCC__facts code{font-size:11px;line-height:18px}.odaiCC__raw{font:12px/18px ui-monospace,SFMono-Regular,Consolas,monospace}.odaiCC__loadEarlier{width:100%;height:30px;border:0;border-bottom:1px solid var(--odai-cc-border);background:var(--odai-cc-surface);color:var(--odai-cc-text-2);font:600 10px/1 inherit;cursor:pointer}.odaiCC__loadEarlier:hover{background:var(--odai-cc-hover);color:var(--odai-cc-text)}.odaiCC__routing{height:100%;overflow-y:auto}
536
+ @media(max-width:900px){.odaiCC__routeRow{display:block}.odaiCC__dispatch{margin-top:7px}}
537
+ @media(max-width:760px){.odaiCC__launcher span:last-child{display:none}.odaiCC__drawer{inset:6px}.odaiCC__header{grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:8px}.odaiCC__brand span{display:none}.odaiCC__tabs button{min-width:56px}.odaiCC__live{padding:8px}.odaiCC__flowGrid{grid-template-columns:1fr;gap:10px;min-height:0}.odaiCC__controllerNode{padding:10px}.odaiCC__flowRole{grid-template-columns:65px minmax(0,1fr)}.odaiCC__evidenceGrid{grid-template-columns:1fr}.odaiCC__inspector{max-height:none}.odaiCC__routing{padding:10px}.odaiCC__controllerLock,.odaiCC__routeSummary{grid-template-columns:92px minmax(0,1fr) auto}.odaiCC__dispatch{grid-template-columns:92px 1fr}.odaiCC__dispatch small{grid-column:2}.odaiCC__routeForm{grid-template-columns:1fr 1fr;margin-left:0}.odaiCC__raw{max-height:240px}}
538
+ @media(max-width:760px){.odaiCC__body{overflow:hidden}.odaiCC__live{gap:8px}.odaiCC__flow{max-height:30vh}.odaiCC__evidenceGrid{grid-template-rows:minmax(180px,1fr) minmax(120px,35vh);overflow:hidden}.odaiCC__timeline,.odaiCC__inspector{min-height:0;max-height:none}}
539
+ @media(prefers-color-scheme:dark){.odaiCC__launcher,.odaiCC{--odai-cc-bg:#14171b;--odai-cc-panel:#191d22;--odai-cc-surface:#1f242a;--odai-cc-surface-2:#282e35;--odai-cc-text:#f2f4f7;--odai-cc-text-2:#c5cbd3;--odai-cc-text-3:#929ba7;--odai-cc-border:#333a43;--odai-cc-border-strong:#46505c;--odai-cc-hover:#26354b;--odai-cc-accent:#77a7ff}.odaiCC__nodeEyebrow{color:#91b7ff}.odaiCC__state--proposal,.odaiCC__alert.is-success{color:#90d9cf}.odaiCC__state--same-turn{color:#cbb8ff}.odaiCC__state--child{color:#a6c3ff}.odaiCC__state--handback{color:#f4ca84}.odaiCC__state--blocked,.odaiCC__state--interrupted,.odaiCC__dangerButton,.odaiCC__alert.is-error{color:#f3a39e}}
540
+ @media(prefers-reduced-motion:no-preference){.odaiCC__drawer{animation:odaiCCIn .15s ease-out}}@keyframes odaiCCIn{from{opacity:.72;transform:translateX(8px)}to{opacity:1;transform:none}}
548
541
  `;
549
542
  document.head.appendChild(tag);
550
543
  }
@@ -554,7 +547,9 @@ window.__ModuleLoader__.load({
554
547
  const preferred = ids.includes("odai-dsh-plugin") ? "odai-dsh-plugin" : "odai-dsh-agent";
555
548
  return PACKAGE_ID === preferred;
556
549
  }
557
- function mountSurface(ctx, conversationEvents, conversationViews, conversation) {
550
+ function mountSurface(ctx, conversation) {
551
+ const eventRegistry = conversation.events;
552
+ const viewRegistry = conversation.views;
558
553
  const disposers = [];
559
554
  let disposed = false;
560
555
  const disposeAll = () => {
@@ -565,7 +560,7 @@ window.__ModuleLoader__.load({
565
560
  disposers.pop()?.();
566
561
  };
567
562
  try {
568
- disposers.push(conversationViews.register({
563
+ disposers.push(viewRegistry.register({
569
564
  target: "odaiControlCenter",
570
565
  create() {
571
566
  let events = [];
@@ -588,7 +583,7 @@ window.__ModuleLoader__.load({
588
583
  };
589
584
  },
590
585
  }));
591
- disposers.push(conversationEvents.register({
586
+ disposers.push(eventRegistry.register({
592
587
  kind: "odai-control-center:event",
593
588
  target: "odaiControlCenter",
594
589
  match(event) {
@@ -613,7 +608,7 @@ window.__ModuleLoader__.load({
613
608
  };
614
609
  },
615
610
  }));
616
- const traceSource = conversation ? (sessionId) => conversationTraceSource(conversation, sessionId) : undefined;
611
+ const traceSource = (sessionId) => conversationTraceSource(conversation, sessionId);
617
612
  const Entry = (props) => h(Launcher, { ...props, connection: ctx.connection, traceSource });
618
613
  disposers.push(ctx.slots.inject("conversation.session.header.utilities", () => ctx.slots.register({
619
614
  name: "conversation.session.header.utilities",
@@ -633,38 +628,21 @@ window.__ModuleLoader__.load({
633
628
  return;
634
629
  injectStyles();
635
630
  // ctx.get wraps services per read; internal/service carries the stable provider identity.
636
- const serviceIdentities = new Map();
631
+ let serviceIdentity;
637
632
  let active;
638
633
  let disposeActive;
639
634
  const readCandidate = () => {
640
- const modern = ctx.get("uiConversation");
641
- if (modern?.events && modern?.views) {
642
- return {
643
- generation: "uiConversation",
644
- events: modern.events,
645
- views: modern.views,
646
- conversation: modern,
647
- serviceIdentity: serviceIdentities.get("uiConversation") ?? modern.events,
648
- };
649
- }
650
- const events = ctx.get("conversationEvents");
651
- const views = ctx.get("conversationViews");
652
- return events && views ? {
653
- generation: "legacy",
654
- events,
655
- views,
656
- eventsIdentity: serviceIdentities.get("conversationEvents"),
657
- viewsIdentity: serviceIdentities.get("conversationViews"),
635
+ const conversation = ctx.get("uiConversation");
636
+ return conversation?.events && conversation?.views && typeof conversation.binding === "function" ? {
637
+ conversation,
638
+ events: conversation.events,
639
+ views: conversation.views,
640
+ serviceIdentity: serviceIdentity ?? conversation.events,
658
641
  } : undefined;
659
642
  };
660
- const sameCandidate = (left, right) => {
661
- if (left?.generation !== right?.generation)
662
- return false;
663
- if (left?.generation === "uiConversation") {
664
- return left.serviceIdentity === right?.serviceIdentity && left.events === right?.events && left.views === right?.views;
665
- }
666
- return left?.eventsIdentity === right?.eventsIdentity && left?.viewsIdentity === right?.viewsIdentity;
667
- };
643
+ const sameCandidate = (left, right) => left?.serviceIdentity === right?.serviceIdentity
644
+ && left?.events === right?.events
645
+ && left?.views === right?.views;
668
646
  const reconcile = () => {
669
647
  const next = readCandidate();
670
648
  if (sameCandidate(next, active))
@@ -674,14 +652,14 @@ window.__ModuleLoader__.load({
674
652
  active = undefined;
675
653
  if (!next)
676
654
  return;
677
- disposeActive = mountSurface(ctx, next.events, next.views, next.conversation);
655
+ disposeActive = mountSurface(ctx, next.conversation);
678
656
  active = next;
679
657
  };
680
658
  reconcile();
681
659
  ctx.on("internal/service", (name, value) => {
682
- if (!["uiConversation", "conversationEvents", "conversationViews"].includes(name))
660
+ if (name !== "uiConversation")
683
661
  return;
684
- serviceIdentities.set(name, value);
662
+ serviceIdentity = value;
685
663
  reconcile();
686
664
  });
687
665
  ctx.effect(() => () => {
@@ -692,7 +670,7 @@ window.__ModuleLoader__.load({
692
670
  }
693
671
  exports.apply = apply;
694
672
  exports.inject = ["slots", "sessions", "connection"];
695
- exports.__testing = { conversationTraceSource, defaultTraceItem, legacyTraceView, projectTrace, stateOf, roleOf, shouldOwnSurface, traceFingerprint, windowTurnItems };
673
+ exports.__testing = { controlCenterError, conversationTraceSource, defaultTraceItem, projectTrace, stateOf, roleOf, shouldOwnSurface, traceFingerprint, windowTurnItems };
696
674
  return module.exports;
697
675
  },
698
676
  });
@@ -1,3 +1,3 @@
1
- - insert:
2
- - id: odai-control-center
3
- name: odai-dsh-agent
1
+ - insert:
2
+ - id: odai-control-center
3
+ name: odai-dsh-agent