@prettier-ai/dsh-client-ui-subagent 0.1.2-alpha.2 → 0.1.2-alpha.4

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-subagent/README.md
5
- README.md: 3c7d185123d76270844d17dcb0e070e27f33ef7d
6
- README.zh.md: cf022bb0d121805f9b322e84fb77c6dac412fad0
5
+ README.md: f2e06368abdf148840b78390281488d8d009e3bf
6
+ README.zh.md: 2a4e4eac47193c7043add9dcb8d74895e30a01ff
package/README.md CHANGED
@@ -114,3 +114,5 @@ These limits define what the catalog can show and what `@` references mean; they
114
114
  None.
115
115
 
116
116
  </details>
117
+
118
+ **Runtime invariant:** No companion is published. A single slash-source registration whose disposal is proven by the HMR-safety spec — it emits no cordis events and owns no cross-plugin mutable state.
package/README.zh.md CHANGED
@@ -114,3 +114,5 @@ one-shot child 始终选用只读编辑器。可继续 child 仅在其确切 par
114
114
  无。
115
115
 
116
116
  </details>
117
+
118
+ **运行时不变式:** 不发布伴生入口。插件只注册一个 slash source,HMR 测试覆盖释放;它不发出 Cordis 事件,也不持有跨插件可变状态。
package/lib/client.js CHANGED
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
9
9
  let react_dom = require("react-dom");
10
10
  let _prettier_ai_dsh_client_ui_primitives = require("@prettier-ai/dsh-client-ui-primitives");
11
11
  //#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-subagent/src/client/SubagentHeaderLineage.module.css.mjs
12
- const css$1 = ".JwEVGW_root{align-items:center;gap:10px;min-width:0;display:inline-flex;position:relative}.JwEVGW_switcherRoot{min-width:0;margin-left:6px}.JwEVGW_trigger,.JwEVGW_switcherTrigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;padding:3px 2px;font-size:12px;line-height:18px;display:inline-flex}.JwEVGW_trigger{gap:4px}.JwEVGW_switcherTrigger{min-width:0;max-width:244px;color:var(--dsw-alias-label-primary);gap:4px;font-weight:500}.JwEVGW_ancestorSwitcherTrigger{color:var(--dsw-alias-label-tertiary);font-weight:400}.JwEVGW_switcherTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.JwEVGW_switcherTrigger svg{flex:none}.JwEVGW_separator{color:var(--dsw-alias-label-caption);font-size:14px;line-height:20px}.JwEVGW_activitySlot{flex:none;width:10px;height:10px;display:inline-flex}.JwEVGW_trigger:hover,.JwEVGW_trigger:focus-visible{color:var(--dsw-alias-label-secondary)}.JwEVGW_switcherTrigger:hover,.JwEVGW_switcherTrigger:focus-visible{color:var(--dsw-alias-label-primary)}.JwEVGW_ancestorSwitcherTrigger:hover,.JwEVGW_ancestorSwitcherTrigger:focus-visible{color:var(--dsw-alias-label-tertiary)}.JwEVGW_trigger svg,.JwEVGW_switcherTrigger svg{transition:transform .12s}.JwEVGW_triggerOpen{transform:rotate(180deg)}.JwEVGW_menu{z-index:100;box-sizing:border-box;background:var(--dsw-specific-menu);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);width:336px;max-width:min(400px,100vw - 32px);max-height:min(560px,100vh - 140px);box-shadow:var(--dsw-shadow-lv3);border-radius:12px;flex-direction:column;padding:4px;display:flex;position:fixed;overflow:auto}.JwEVGW_node{min-width:0;position:relative}.JwEVGW_menu>.JwEVGW_node{margin-left:-3px}.JwEVGW_row{box-sizing:border-box;width:100%;min-height:50px;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;outline:none;align-items:flex-start;gap:8px;padding:7px 8px 7px 11px;font-size:13px;line-height:18px;display:flex;position:relative}.JwEVGW_row:hover>.JwEVGW_clickarea,.JwEVGW_row:focus-visible>.JwEVGW_clickarea{background:var(--dsw-alias-interactive-bg-hover)}.JwEVGW_clickarea{box-sizing:border-box;border-radius:8px;flex:1;align-self:stretch;align-items:flex-start;gap:8px;min-width:0;margin:-7px -8px;padding:7px 8px;display:flex}.JwEVGW_row>[data-state],.JwEVGW_clickarea>[data-state]{margin-top:4px}.JwEVGW_disabled{color:var(--dsw-alias-label-dimmed);cursor:not-allowed}.JwEVGW_disabled:hover{background:0 0}.JwEVGW_loadingRow{cursor:default}.JwEVGW_disclosure,.JwEVGW_disclosureSpace{flex:none;width:14px;height:18px}.JwEVGW_disclosure{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;transition:transform .12s;display:inline-flex}.JwEVGW_disclosure:hover{color:var(--dsw-alias-label-primary)}.JwEVGW_disclosureOpen{transform:rotate(90deg)}.JwEVGW_content{flex-direction:column;flex:1;min-width:0;display:flex}.JwEVGW_label,.JwEVGW_summary{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.JwEVGW_label{color:inherit;font-weight:400}.JwEVGW_currentLabel{font-weight:600}.JwEVGW_summary,.JwEVGW_metrics{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.JwEVGW_metrics{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;flex:none;grid-template-rows:18px 16px;display:grid}.JwEVGW_metricToken{grid-row:1;line-height:18px}.JwEVGW_metricDuration{grid-row:2}.JwEVGW_children{margin-left:18px;padding-left:4px;position:relative}.JwEVGW_children:before,.JwEVGW_children>.JwEVGW_node:before{content:\"\";border-left:1px solid var(--dsw-alias-border-l2);position:absolute;left:0}.JwEVGW_children:before{height:26px;top:-26px}.JwEVGW_children[aria-busy=true]:before{content:none}.JwEVGW_children>.JwEVGW_node:before{top:0;bottom:0;left:-4px}.JwEVGW_children>.JwEVGW_node:last-child:before{height:17px;bottom:auto}.JwEVGW_children>.JwEVGW_node>.JwEVGW_row:before{content:\"\";border-top:1px solid var(--dsw-alias-border-l2);width:14px;position:absolute;top:16px;left:-4px}.JwEVGW_notice,.JwEVGW_error{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.JwEVGW_error{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:12px;display:flex}.JwEVGW_refresh{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;align-items:center;gap:4px;padding:4px 6px;display:inline-flex}.JwEVGW_refresh:hover{background:var(--dsw-alias-interactive-bg-hover)}";
12
+ const css$1 = ".JwEVGW_root{align-items:center;gap:10px;min-width:0;display:inline-flex;position:relative}.JwEVGW_switcherRoot{min-width:0;margin-left:6px}.JwEVGW_trigger,.JwEVGW_switcherTrigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;padding:3px 2px;font-size:12px;line-height:18px;display:inline-flex}.JwEVGW_trigger{gap:4px}.JwEVGW_switcherTrigger{min-width:0;max-width:244px;color:var(--dsw-alias-label-primary);gap:4px;font-weight:500}.JwEVGW_ancestorSwitcherTrigger{color:var(--dsw-alias-label-tertiary);font-weight:400}.JwEVGW_switcherTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.JwEVGW_switcherTrigger svg{flex:none}.JwEVGW_separator{color:var(--dsw-alias-label-caption);font-size:14px;line-height:20px}.JwEVGW_activitySlot{flex:none;width:10px;height:10px;display:inline-flex}.JwEVGW_trigger:hover,.JwEVGW_trigger:focus-visible{color:var(--dsw-alias-label-secondary)}.JwEVGW_switcherTrigger:hover,.JwEVGW_switcherTrigger:focus-visible{color:var(--dsw-alias-label-primary)}.JwEVGW_ancestorSwitcherTrigger:hover,.JwEVGW_ancestorSwitcherTrigger:focus-visible{color:var(--dsw-alias-label-tertiary)}.JwEVGW_trigger svg,.JwEVGW_switcherTrigger svg{transition:transform .12s}.JwEVGW_triggerOpen{transform:rotate(180deg)}.JwEVGW_menu{z-index:100;box-sizing:border-box;background:var(--dsw-specific-menu);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:336px;max-width:min(400px,100vw - 32px);max-height:min(560px,100vh - 140px);box-shadow:var(--dsw-elevation-prominent);border-radius:20px;flex-direction:column;padding:4px;display:flex;position:fixed;overflow:auto}.JwEVGW_node{min-width:0;position:relative}.JwEVGW_menu>.JwEVGW_node{margin-left:-3px}.JwEVGW_row{box-sizing:border-box;width:100%;min-height:50px;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;outline:none;align-items:flex-start;gap:8px;padding:7px 8px 7px 11px;font-size:13px;line-height:18px;display:flex;position:relative}.JwEVGW_row:hover>.JwEVGW_clickarea,.JwEVGW_row:focus-visible>.JwEVGW_clickarea{background:var(--dsw-alias-interactive-bg-hover)}.JwEVGW_clickarea{box-sizing:border-box;border-radius:8px;flex:1;align-self:stretch;align-items:flex-start;gap:8px;min-width:0;margin:-7px -8px;padding:7px 8px;display:flex}.JwEVGW_row>[data-state],.JwEVGW_clickarea>[data-state]{margin-top:4px}.JwEVGW_disabled{color:var(--dsw-alias-label-dimmed);cursor:not-allowed}.JwEVGW_disabled:hover{background:0 0}.JwEVGW_loadingRow{cursor:default}.JwEVGW_disclosure,.JwEVGW_disclosureSpace{flex:none;width:14px;height:18px}.JwEVGW_disclosure{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;transition:transform .12s;display:inline-flex}.JwEVGW_disclosure:hover{color:var(--dsw-alias-label-primary)}.JwEVGW_disclosureOpen{transform:rotate(90deg)}.JwEVGW_content{flex-direction:column;flex:1;min-width:0;display:flex}.JwEVGW_label,.JwEVGW_summary{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.JwEVGW_label{color:inherit;font-weight:400}.JwEVGW_currentLabel{font-weight:600}.JwEVGW_summary,.JwEVGW_metrics{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.JwEVGW_metrics{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;flex:none;grid-template-rows:18px 16px;display:grid}.JwEVGW_metricToken{grid-row:1;line-height:18px}.JwEVGW_metricDuration{grid-row:2}.JwEVGW_children{margin-left:18px;padding-left:4px;position:relative}.JwEVGW_children:before,.JwEVGW_children>.JwEVGW_node:before{content:\"\";border-left:.5px solid var(--dsw-alias-border-l2);position:absolute;left:0}.JwEVGW_children:before{height:26px;top:-26px}.JwEVGW_children[aria-busy=true]:before{content:none}.JwEVGW_children>.JwEVGW_node:before{top:0;bottom:0;left:-4px}.JwEVGW_children>.JwEVGW_node:last-child:before{height:17px;bottom:auto}.JwEVGW_children>.JwEVGW_node>.JwEVGW_row:before{content:\"\";border-top:.5px solid var(--dsw-alias-border-l2);width:14px;position:absolute;top:16px;left:-4px}.JwEVGW_notice,.JwEVGW_error{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.JwEVGW_error{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:12px;display:flex}.JwEVGW_refresh{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;align-items:center;gap:4px;padding:4px 6px;display:inline-flex}.JwEVGW_refresh:hover{background:var(--dsw-alias-interactive-bg-hover)}";
13
13
  const tagId$1 = "@prettier-ai/dsh-client-ui-subagent/SubagentHeaderLineage.module.css";
14
14
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
15
15
  const tag = document.createElement("style");
@@ -697,7 +697,7 @@ window.__ModuleLoader__.load({
697
697
  }
698
698
  //#endregion
699
699
  //#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-subagent/src/client/SubagentReadOnlyComposer.module.css.mjs
700
- const css = ".dWMx3G_frame{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);min-height:54px;color:var(--dsw-alias-label-tertiary);border-radius:14px;justify-content:center;align-items:center;gap:8px;margin:0 24px 20px;padding:10px 16px;font-size:13px;line-height:20px;display:flex}.dWMx3G_frame strong{color:var(--dsw-alias-label-primary);font-weight:510}";
700
+ const css = ".dWMx3G_frame{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-1);min-height:54px;color:var(--dsw-alias-label-tertiary);border-radius:14px;justify-content:center;align-items:center;gap:8px;margin:0 24px 20px;padding:10px 16px;font-size:13px;line-height:20px;display:flex}.dWMx3G_frame strong{color:var(--dsw-alias-label-primary);font-weight:510}";
701
701
  const tagId = "@prettier-ai/dsh-client-ui-subagent/SubagentReadOnlyComposer.module.css";
702
702
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
703
703
  const tag = document.createElement("style");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier-ai/dsh-client-ui-subagent",
3
3
  "description": "Subagent conversation catalog, continuation routing UI, and '@' reference source",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,10 +18,6 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./client": {
26
22
  "types": "./lib/types/client/index.d.ts",
27
23
  "default": "./lib/client.js"
@@ -50,25 +46,23 @@
50
46
  "@types/react-dom": "~18.3.0",
51
47
  "react": "^18.2.0",
52
48
  "react-dom": "^18.2.0",
53
- "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.2",
54
- "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.2",
55
- "@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.2",
56
- "@prettier-ai/dsh-client-ui-input-trigger": "^0.1.2-alpha.2",
57
- "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.2",
58
- "@prettier-ai/dsh-invariants": "^0.1.2-alpha.2",
59
- "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.2",
60
- "@prettier-ai/dsh-subagent": "^0.1.2-alpha.2",
61
- "@prettier-ai/dsh-token-meter": "^0.1.2-alpha.2",
49
+ "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
50
+ "@prettier-ai/dsh-client-ui-input-trigger": "^0.1.2-alpha.4",
51
+ "@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.4",
52
+ "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
53
+ "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
54
+ "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
55
+ "@prettier-ai/dsh-token-meter": "^0.1.2-alpha.4",
62
56
  "@prettier-ai/cordis": "^4.0.2",
63
- "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.2",
64
- "@prettier-ai/dsh-client-connection": "^0.1.2-alpha.2",
65
- "@prettier-ai/dsh-session": "^0.1.2-alpha.2",
66
- "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.2",
67
- "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2"
57
+ "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
58
+ "@prettier-ai/dsh-subagent": "^0.1.2-alpha.4",
59
+ "@prettier-ai/dsh-session": "^0.1.2-alpha.4",
60
+ "@prettier-ai/dsh-client-connection": "^0.1.2-alpha.4",
61
+ "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
62
+ "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4"
68
63
  },
69
64
  "files": [
70
65
  "lib/index.js",
71
- "lib/invariant.js",
72
66
  "lib/client.js",
73
67
  "lib/types/**/*.d.ts"
74
68
  ],
package/lib/invariant.js DELETED
@@ -1,24 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-subagent`.
4
- * @module @prettier-ai/dsh-client-ui-subagent/invariant
5
- */
6
- const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-subagent";
7
- /** Cordis companion plugin name. */
8
- const name = "client-ui-subagent-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: a single slash-source registration whose disposal is
13
- * proven by the HMR-safety spec — it emits no cordis events and owns no
14
- * cross-plugin mutable state.
15
- */
16
- const install = () => {};
17
- /**
18
- * Register this package's invariant companion.
19
- * @param ctx - Cordis context carrying the invariant service.
20
- * @returns the installed registration's disposer after setup succeeds.
21
- */
22
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
23
- //#endregion
24
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-subagent`.
3
- * @module @prettier-ai/dsh-client-ui-subagent/invariant
4
- */
5
- import type { Context } from '@prettier-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-ui-subagent-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map