@prettier-ai/dsh-client-ui-skill 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 +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/client.js +1 -1
- package/package.json +13 -19
- package/lib/invariant.js +0 -25
- package/lib/types/invariant.d.ts +0 -16
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-skill/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 6f5bd109a66b061db3ab5069b15bb4f101039e73
|
|
6
|
+
README.zh.md: 61941ef1b5966d9155d724873b25e03d38d214e1
|
package/README.md
CHANGED
|
@@ -106,3 +106,5 @@ These limits define where the reference and the row fall back to generic behavio
|
|
|
106
106
|
None.
|
|
107
107
|
|
|
108
108
|
</details>
|
|
109
|
+
|
|
110
|
+
**Runtime invariant:** No companion is published. The slash source, locale dictionaries, and keyed toolview are registry-owned registrations whose disposal is proven by the HMR-safety spec. They emit no cordis events and own no cross-plugin mutable state.
|
package/README.zh.md
CHANGED
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-skill/src/client/SkillRow.module.css.mjs
|
|
11
|
-
const css = ".NHJAaW_card{flex-direction:column;display:flex}.NHJAaW_row{align-items:center;min-width:0;height:24px;display:flex;position:relative;overflow:hidden}.NHJAaW_row[data-expandable]{cursor:pointer}.NHJAaW_card[data-state=running] .NHJAaW_row:after{content:\"\";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite NHJAaW_dsh-skill-row-sweep;position:absolute;inset:0 auto 0 0}@keyframes NHJAaW_dsh-skill-row-sweep{0%{left:-300px}90%,to{left:100%}}.NHJAaW_leading{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:6px;display:inline-flex;position:relative}.NHJAaW_chevron{color:var(--dsw-alias-label-secondary)}.NHJAaW_iconIdle{opacity:1;transition:opacity .1s;display:inline-flex}.NHJAaW_chevronHover{opacity:0;margin:auto;transition:opacity .1s;position:absolute;inset:0}.NHJAaW_row:hover .NHJAaW_iconIdle{opacity:0}.NHJAaW_row:hover .NHJAaW_chevronHover{opacity:1}.NHJAaW_title{color:var(--dsw-alias-label-secondary);flex:none;font-size:14px;line-height:24px}.NHJAaW_separator{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.NHJAaW_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.NHJAaW_errorSummary{color:var(--dsw-alias-state-error-primary)}.NHJAaW_bodyWrap{flex-direction:column;display:flex}.NHJAaW_instructionsCard{border
|
|
11
|
+
const css = ".NHJAaW_card{flex-direction:column;display:flex}.NHJAaW_row{align-items:center;min-width:0;height:24px;display:flex;position:relative;overflow:hidden}.NHJAaW_row[data-expandable]{cursor:pointer}.NHJAaW_card[data-state=running] .NHJAaW_row:after{content:\"\";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%, transparent 100%);pointer-events:none;width:300px;animation:2.6s ease-out infinite NHJAaW_dsh-skill-row-sweep;position:absolute;inset:0 auto 0 0}@keyframes NHJAaW_dsh-skill-row-sweep{0%{left:-300px}90%,to{left:100%}}.NHJAaW_leading{width:16px;height:16px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:6px;display:inline-flex;position:relative}.NHJAaW_chevron{color:var(--dsw-alias-label-secondary)}.NHJAaW_iconIdle{opacity:1;transition:opacity .1s;display:inline-flex}.NHJAaW_chevronHover{opacity:0;margin:auto;transition:opacity .1s;position:absolute;inset:0}.NHJAaW_row:hover .NHJAaW_iconIdle{opacity:0}.NHJAaW_row:hover .NHJAaW_chevronHover{opacity:1}.NHJAaW_title{color:var(--dsw-alias-label-secondary);flex:none;font-size:14px;line-height:24px}.NHJAaW_separator{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.NHJAaW_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-tertiary);flex:auto;font-size:14px;line-height:24px;overflow:hidden}.NHJAaW_errorSummary{color:var(--dsw-alias-state-error-primary)}.NHJAaW_bodyWrap{flex-direction:column;display:flex}.NHJAaW_instructionsCard{border:.5px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-markdown-code-block);border-radius:12px;flex-direction:column;max-height:260px;margin:4px 0 4px 4px;display:flex;overflow:hidden}.NHJAaW_instructionsHeader{border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-markdown-code-block-banner);color:var(--dsw-alias-label-caption);text-transform:uppercase;letter-spacing:.04em;flex:none;padding:8px 12px;font-size:11px;font-weight:500;line-height:16px}.NHJAaW_instructions{white-space:pre-wrap;overflow-wrap:anywhere;min-height:0;font:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-secondary);margin:0;padding:10px 12px 12px;overflow:auto}.NHJAaW_instructions[data-error]{color:var(--dsw-alias-state-error-primary)}.NHJAaW_instructions::-webkit-scrollbar-thumb{background-clip:padding-box;border:2px solid #0000;border-radius:6px}.NHJAaW_instructions::-webkit-scrollbar-track{margin:6px 0}.NHJAaW_inspectButton{border:.5px solid var(--dsw-alias-border-l4);corner-shape:round;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.NHJAaW_card:hover .NHJAaW_inspectButton,.NHJAaW_inspectButton:focus-visible{opacity:1}.NHJAaW_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.NHJAaW_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.NHJAaW_card[data-state=running] .NHJAaW_row:after{animation:none;display:none}.NHJAaW_iconIdle,.NHJAaW_chevronHover,.NHJAaW_inspectButton{transition:none}}";
|
|
12
12
|
const tagId = "@prettier-ai/dsh-client-ui-skill/SkillRow.module.css";
|
|
13
13
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === 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-skill",
|
|
3
3
|
"description": "Web skill references and the dedicated skill tool row",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
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"
|
|
@@ -51,23 +47,21 @@
|
|
|
51
47
|
"@types/react": "~18.3.1",
|
|
52
48
|
"react": "^18.2.0",
|
|
53
49
|
"react-dom": "^18.2.0",
|
|
54
|
-
"@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.
|
|
55
|
-
"@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.
|
|
56
|
-
"@prettier-ai/dsh-client-
|
|
57
|
-
"@prettier-ai/dsh-client-
|
|
58
|
-
"@prettier-ai/dsh-client-
|
|
59
|
-
"@prettier-ai/dsh-client-
|
|
60
|
-
"@prettier-ai/dsh-client-ui-input-trigger": "^0.1.2-alpha.
|
|
61
|
-
"@prettier-ai/dsh-client-ui-
|
|
62
|
-
"@prettier-ai/dsh-
|
|
63
|
-
"@prettier-ai/dsh-client-ui-
|
|
64
|
-
"@prettier-ai/
|
|
65
|
-
"@prettier-ai/dsh-
|
|
66
|
-
"@prettier-ai/cordis": "^4.0.2"
|
|
50
|
+
"@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.4",
|
|
51
|
+
"@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
|
|
52
|
+
"@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
|
|
53
|
+
"@prettier-ai/dsh-client-locale": "^0.1.2-alpha.4",
|
|
54
|
+
"@prettier-ai/dsh-client-connection": "^0.1.2-alpha.4",
|
|
55
|
+
"@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
|
|
56
|
+
"@prettier-ai/dsh-client-ui-input-trigger": "^0.1.2-alpha.4",
|
|
57
|
+
"@prettier-ai/dsh-client-ui-tool": "^0.1.2-alpha.4",
|
|
58
|
+
"@prettier-ai/dsh-session": "^0.1.2-alpha.4",
|
|
59
|
+
"@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
|
|
60
|
+
"@prettier-ai/cordis": "^4.0.2",
|
|
61
|
+
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4"
|
|
67
62
|
},
|
|
68
63
|
"files": [
|
|
69
64
|
"lib/index.js",
|
|
70
|
-
"lib/invariant.js",
|
|
71
65
|
"lib/client.js",
|
|
72
66
|
"lib/types/**/*.d.ts"
|
|
73
67
|
],
|
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-skill`.
|
|
4
|
-
* @module @prettier-ai/dsh-client-ui-skill/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-skill";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "client-ui-skill-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: the slash source, locale dictionaries, and keyed
|
|
13
|
-
* toolview are registry-owned registrations whose disposal is proven by the
|
|
14
|
-
* HMR-safety spec. They emit no cordis events and own no cross-plugin mutable
|
|
15
|
-
* 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 };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@prettier-ai/dsh-client-ui-skill`.
|
|
3
|
-
* @module @prettier-ai/dsh-client-ui-skill/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@prettier-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "client-ui-skill-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
|