@morlay/ui-conversation-message-actions 0.0.19-alpha.7 → 0.0.19-alpha.9

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/README.md CHANGED
@@ -7,10 +7,10 @@
7
7
 
8
8
  ## 用法
9
9
 
10
- 装配只需在 profile 的 `dsh.profile.bundles` 里列出本包——本包自带 bundle patch
11
- ([`cordis.patch.yml`](./cordis.patch.yml))插入插件行并注册 `ctx.sessionEditor`。依赖 `ctx.sessionBranch` /
12
- `ctx.sessionPersistence`(需先装配 provider 实现,如 `@morlay/session-rdb`)与 `ctx.sessions`;`agents` 可选,缺失时
13
- 重放退化为「已 durable 的就地版本」。
10
+ 装配入口是聚合层 [`@morlay/better-session`](../../bundles/better-session/README.md):由它的 bundle patch 插入本包的行并注册
11
+ `ctx.sessionEditor`(本包自己没有 bundle patch,不作为独立 bundle 安装)。依赖 `ctx.sessionBranch` /
12
+ `ctx.sessionPersistence`(provider 由同一聚合层装配,如 `@morlay/session-rdb`)与 `ctx.sessions`;`agents` 可选,
13
+ 缺失时重放退化为「已 durable 的就地版本」。
14
14
 
15
15
  ```ts
16
16
  // host:装配后直接调服务
@@ -34,4 +34,4 @@ edit / retry / reroll 就地重写**同一会话**(session id 不变),只
34
34
  - 决策:[`.agents/adrs/`](./.agents/adrs)(接管官方 `ui-conversation` 行、client bundle 单文件与 shadow 渲染、引用解析、
35
35
  编辑入口门控…)
36
36
  - 接缝、测试落点与未覆盖:[本包规范 how-to-verify](./.agents/standards/how-to-verify.md)
37
- - 整体设计:[设计 20260917-系统设计](../../../.agents/designs/20260917-系统设计.md)
37
+ - 整体设计:[设计 20260917-会话编辑闭环装配](../../bundles/better-session/.agents/designs/20260917-会话编辑闭环装配.md)
package/dist/client.cjs CHANGED
@@ -470,7 +470,7 @@ window.__ModuleLoader__.load({
470
470
  },
471
471
  "&:hover": { color: "var(--dsw-alias-label-secondary)" },
472
472
  "&:focus-visible": {
473
- outline: "1.5px solid var(--dsw-alias-button-info-fill)",
473
+ outline: "1.5px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))",
474
474
  outlineOffset: "2px"
475
475
  }
476
476
  },
@@ -2855,16 +2855,15 @@ declare class WorkspaceRegistry extends Service {
2855
2855
  * Initialize the default Workspace only while both the registry and Session
2856
2856
  * history are empty. Repeated requests reuse its durable identity; deleting
2857
2857
  * that registration permanently disables automatic creation.
2858
- * @param resolveDirectory - resolve the absolute directory and initial title;
2859
- * called only for eligible creation, inside the registry mutation queue.
2860
- * Missing directories are created recursively before registration.
2858
+ * @param resolveDirectory - resolve the absolute directory; called only for
2859
+ * eligible creation, inside the registry mutation queue. Missing directories
2860
+ * are created recursively before registration, and the initial title is the
2861
+ * requested directory's own final segment — not the canonical one, so a
2862
+ * symlink at that path does not retitle the Workspace after its target.
2861
2863
  * After resolution, caller cancellation does not roll back creation or registration.
2862
2864
  * @returns the initialized Workspace, or undefined when automatic creation is ineligible.
2863
2865
  */
2864
- initializeDefault(resolveDirectory: () => Promise<{
2865
- path: string;
2866
- title: string;
2867
- }>): Promise<Workspace | undefined>;
2866
+ initializeDefault(resolveDirectory: () => Promise<string>): Promise<Workspace | undefined>;
2868
2867
  /**
2869
2868
  * Look up a workspace by id.
2870
2869
  * @param id - Workspace id.
@@ -2855,16 +2855,15 @@ declare class WorkspaceRegistry extends Service {
2855
2855
  * Initialize the default Workspace only while both the registry and Session
2856
2856
  * history are empty. Repeated requests reuse its durable identity; deleting
2857
2857
  * that registration permanently disables automatic creation.
2858
- * @param resolveDirectory - resolve the absolute directory and initial title;
2859
- * called only for eligible creation, inside the registry mutation queue.
2860
- * Missing directories are created recursively before registration.
2858
+ * @param resolveDirectory - resolve the absolute directory; called only for
2859
+ * eligible creation, inside the registry mutation queue. Missing directories
2860
+ * are created recursively before registration, and the initial title is the
2861
+ * requested directory's own final segment — not the canonical one, so a
2862
+ * symlink at that path does not retitle the Workspace after its target.
2861
2863
  * After resolution, caller cancellation does not roll back creation or registration.
2862
2864
  * @returns the initialized Workspace, or undefined when automatic creation is ineligible.
2863
2865
  */
2864
- initializeDefault(resolveDirectory: () => Promise<{
2865
- path: string;
2866
- title: string;
2867
- }>): Promise<Workspace | undefined>;
2866
+ initializeDefault(resolveDirectory: () => Promise<string>): Promise<Workspace | undefined>;
2868
2867
  /**
2869
2868
  * Look up a workspace by id.
2870
2869
  * @param id - Workspace id.