@prettier-ai/dsh-client-ui-goal 0.1.2-alpha.3 → 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-goal/README.md
5
- README.md: 05c44fee27f0500c6a5d53496fde3d447edbf424
6
- README.zh.md: f280356eb37b364f49851ca24d73370eb62e6795
5
+ README.md: 1a2c65759f5983fbece83f538ee9ee09902dd020
6
+ README.zh.md: feebeaff0b5e7e9258f15637d0a78a897e0f24c1
package/README.md CHANGED
@@ -88,3 +88,5 @@ These limits define the current goal surface. They are current package constrain
88
88
  None.
89
89
 
90
90
  </details>
91
+
92
+ **Runtime invariant:** No companion is published. A single GoalBar dock registration whose disposal is proven by the HMR-safety spec — the plugin owns no store (state arrives on the goal projection), emits no cordis events, and holds no cross-plugin mutable state.
package/README.zh.md CHANGED
@@ -88,3 +88,5 @@ kind: "package-reference"
88
88
  无。
89
89
 
90
90
  </details>
91
+
92
+ **运行时不变式:** 不发布伴生入口。插件只注册一个 GoalBar dock,HMR 测试覆盖释放;状态来自 goal projection,本包不持有 store 或跨插件可变状态。
package/lib/client.js CHANGED
@@ -8,7 +8,7 @@ window.__ModuleLoader__.load({
8
8
  let react = require("react");
9
9
  let _prettier_ai_dsh_client_ui_primitives = require("@prettier-ai/dsh-client-ui-primitives");
10
10
  //#region \0dsh-css:/home/runner/work/dsh-publisher/dsh-publisher/upstream/packages/client/ui-goal/src/client/GoalBar.module.css.mjs
11
- const css$1 = ".pLGJta_dock{box-sizing:border-box;width:calc(100% - var(--dsh-composer-side-clearance) - var(--dsh-composer-side-clearance) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset));margin:0 auto}.pLGJta_bar{box-sizing:border-box;width:100%;max-width:calc(var(--dsh-composer-card-max-width) - 4 * var(--dsh-composer-dock-inset));border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-specific-tip);border-radius:12px;align-items:center;gap:10px;height:36px;margin:0 auto;padding:4px 5px 4px 12px;display:flex}.pLGJta_goalGlyph{color:var(--dsw-alias-label-tertiary);flex:none;display:inline-flex}.pLGJta_label{color:var(--dsw-alias-label-primary);flex:none;font-size:13px;font-weight:500;line-height:24px}.pLGJta_objective{min-width:0;color:var(--dsw-alias-label-primary-dimmed);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;line-height:20px;overflow:hidden}.pLGJta_error{min-width:0;color:var(--dsw-alias-state-error-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px;line-height:20px;overflow:hidden}.pLGJta_objectiveInput{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:0;height:26px;color:var(--dsw-alias-label-primary);border-radius:6px;outline:none;flex:1;padding:0 8px;font-size:13px;line-height:20px}.pLGJta_objectiveInput:focus{border-color:var(--dsw-alias-state-business-primary)}.pLGJta_objectiveInput::placeholder{color:var(--dsw-alias-label-caption)}.pLGJta_actions{flex:none;align-items:center;gap:10px;display:flex}.pLGJta_iconBtn{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.pLGJta_iconBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.pLGJta_iconBtn:disabled{opacity:.4;cursor:default}";
11
+ const css$1 = ".pLGJta_dock{box-sizing:border-box;width:calc(100% - var(--dsh-composer-side-clearance) - var(--dsh-composer-side-clearance) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset) - var(--dsh-composer-dock-inset));margin:0 auto}.pLGJta_bar{box-sizing:border-box;width:100%;max-width:calc(var(--dsh-composer-card-max-width) - 4 * var(--dsh-composer-dock-inset));border:.5px solid var(--dsw-alias-border-l1);background:var(--dsw-specific-tip);border-radius:12px;align-items:center;gap:10px;height:36px;margin:0 auto;padding:4px 5px 4px 12px;display:flex}.pLGJta_goalGlyph{color:var(--dsw-alias-label-tertiary);flex:none;display:inline-flex}.pLGJta_label{color:var(--dsw-alias-label-primary);flex:none;font-size:13px;font-weight:500;line-height:24px}.pLGJta_objective{min-width:0;color:var(--dsw-alias-label-primary-dimmed);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;line-height:20px;overflow:hidden}.pLGJta_error{min-width:0;color:var(--dsw-alias-state-error-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px;line-height:20px;overflow:hidden}.pLGJta_objectiveInput{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-base);min-width:0;height:26px;color:var(--dsw-alias-label-primary);border-radius:6px;outline:none;flex:1;padding:0 8px;font-size:13px;line-height:20px}.pLGJta_objectiveInput:focus{border-color:var(--dsw-alias-state-business-primary)}.pLGJta_objectiveInput::placeholder{color:var(--dsw-alias-label-caption)}.pLGJta_actions{flex:none;align-items:center;gap:10px;display:flex}.pLGJta_iconBtn{corner-shape:round;width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.pLGJta_iconBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.pLGJta_iconBtn:disabled{opacity:.4;cursor:default}";
12
12
  const tagId$1 = "@prettier-ai/dsh-client-ui-goal/GoalBar.module.css";
13
13
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
14
14
  const tag = document.createElement("style");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier-ai/dsh-client-ui-goal",
3
3
  "description": "Session goal surface: GoalBar docked above the composer, read from the goal session projection",
4
- "version": "0.1.2-alpha.3",
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"
@@ -52,26 +48,24 @@
52
48
  "@types/react": "~18.3.1",
53
49
  "react": "^18.2.0",
54
50
  "react-dom": "^18.2.0",
55
- "@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.3",
56
- "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.3",
57
- "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.3",
58
- "@prettier-ai/dsh-client-ui-chat": "^0.1.2-alpha.3",
59
- "@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.3",
60
- "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.3",
61
- "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.3",
62
- "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.3",
63
- "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.3",
64
- "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.3",
65
- "@prettier-ai/dsh-goal": "^0.1.2-alpha.3",
66
- "@prettier-ai/dsh-invariants": "^0.1.2-alpha.3",
51
+ "@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.4",
52
+ "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
53
+ "@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
54
+ "@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
55
+ "@prettier-ai/dsh-client-ui-chat": "^0.1.2-alpha.4",
56
+ "@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.4",
57
+ "@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
58
+ "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
59
+ "@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
60
+ "@prettier-ai/dsh-commands": "^0.1.2-alpha.4",
61
+ "@prettier-ai/dsh-goal": "^0.1.2-alpha.4",
62
+ "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
67
63
  "@prettier-ai/cordis": "^4.0.2",
68
- "@prettier-ai/dsh-commands": "^0.1.2-alpha.3",
69
- "@prettier-ai/dsh-session": "^0.1.2-alpha.3",
70
- "@prettier-ai/dsh-typert-protocol": "^0.1.2-alpha.3"
64
+ "@prettier-ai/dsh-session": "^0.1.2-alpha.4",
65
+ "@prettier-ai/dsh-typert-protocol": "^0.1.2-alpha.4"
71
66
  },
72
67
  "files": [
73
68
  "lib/index.js",
74
- "lib/invariant.js",
75
69
  "lib/client.js",
76
70
  "lib/types/**/*.d.ts"
77
71
  ],
package/lib/invariant.js DELETED
@@ -1,25 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-goal`.
4
- * @module @prettier-ai/dsh-client-ui-goal/invariant
5
- */
6
- const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-goal";
7
- /** Cordis companion plugin name. */
8
- const name = "client-ui-goal-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: a single GoalBar dock registration whose disposal is
13
- * proven by the HMR-safety spec — the plugin owns no store (state arrives on
14
- * the goal projection), emits no cordis events, and holds no cross-plugin
15
- * mutable state.
16
- */
17
- const install = () => {};
18
- /**
19
- * Register this package's invariant companion.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- //#endregion
25
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@prettier-ai/dsh-client-ui-goal`.
3
- * @module @prettier-ai/dsh-client-ui-goal/invariant
4
- */
5
- import type { Context } from '@prettier-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-ui-goal-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