@srobroek/pi-design 0.14.0 → 0.14.2
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/CHANGELOG.md +12 -0
- package/_kit/prereqs.ts +15 -10
- package/agents/a11y-auditor.md +1 -2
- package/agents/council-user.md +1 -2
- package/agents/council-ux.md +1 -2
- package/agents/design-critic.md +1 -2
- package/agents/ui-implementer.md +0 -1
- package/agents/ui-ux-specialist.md +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## design [0.14.2](https://github.com/srobroek/harness-plugins/compare/design--v0.14.1...design--v0.14.2) (2026-12-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **agents:** stop pinning tool allowlists on shipped children ([#290](https://github.com/srobroek/harness-plugins/issues/290)) ([750e46a](https://github.com/srobroek/harness-plugins/commit/750e46af91b6e3a5588d602de119711231c5e0c9))
|
|
6
|
+
|
|
7
|
+
## design [0.14.1](https://github.com/srobroek/harness-plugins/compare/design--v0.14.0...design--v0.14.1) (2026-12-03)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **kit:** bump @srobroek/harness-kit to 1.11.1 (prereq probe timeout) ([206f2c4](https://github.com/srobroek/harness-plugins/commit/206f2c4c6c0dee08d9f06977db78f778b2fd1bf6))
|
|
12
|
+
|
|
1
13
|
## design [0.14.0](https://github.com/srobroek/harness-plugins/compare/design--v0.13.0...design--v0.14.0) (2026-12-02)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/_kit/prereqs.ts
CHANGED
|
@@ -74,6 +74,9 @@ export interface Finding {
|
|
|
74
74
|
prerequisite: Prerequisite
|
|
75
75
|
problem: "missing" | "version"
|
|
76
76
|
found?: string
|
|
77
|
+
/** Set when `<bin> --version` did not answer within `timeoutMs`, as opposed to answering with something unreadable. */
|
|
78
|
+
timedOut?: boolean
|
|
79
|
+
timeoutMs?: number
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
export type Env = Record<string, string | undefined>
|
|
@@ -102,7 +105,8 @@ interface Api {
|
|
|
102
105
|
type Version = readonly [number, number, number]
|
|
103
106
|
type Comparator = { op: "<" | "<=" | ">" | ">="; version: Version }
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
/** Python and node CLIs take 1 to 2 s to start cold on a loaded machine, and many extensions start at once. */
|
|
109
|
+
export const VERSION_TIMEOUT_MS = 10_000
|
|
106
110
|
const OPERATOR = /^(<=|>=|<|>|=|\^|~)?v?(.+)$/
|
|
107
111
|
const NUMBER = /^\d+$/
|
|
108
112
|
const WILDCARD = /^[xX*]$/
|
|
@@ -215,20 +219,21 @@ export function which(bin: string, dirs: readonly string[]): string | undefined
|
|
|
215
219
|
return undefined
|
|
216
220
|
}
|
|
217
221
|
|
|
218
|
-
function readVersion(file: string): string
|
|
219
|
-
const run = spawnSync(file, ["--version"], { encoding: "utf8", timeout:
|
|
220
|
-
if (run.error) return
|
|
221
|
-
|
|
222
|
+
function readVersion(file: string, timeoutMs: number): { found?: string; timedOut?: true } {
|
|
223
|
+
const run = spawnSync(file, ["--version"], { encoding: "utf8", timeout: timeoutMs, killSignal: "SIGKILL", stdio: ["ignore", "pipe", "pipe"] })
|
|
224
|
+
if (run.error) return (run.error as NodeJS.ErrnoException).code === "ETIMEDOUT" ? { timedOut: true } : {}
|
|
225
|
+
const found = versionIn(`${run.stdout ?? ""}\n${run.stderr ?? ""}`)
|
|
226
|
+
return found === undefined ? {} : { found }
|
|
222
227
|
}
|
|
223
228
|
|
|
224
229
|
/** The unmet prerequisites of a manifest, in its order. Runs the lookups and version commands on every call. */
|
|
225
|
-
export function check(manifest: Manifest, root: string, env: Env): Finding[] {
|
|
230
|
+
export function check(manifest: Manifest, root: string, env: Env, timeoutMs = VERSION_TIMEOUT_MS): Finding[] {
|
|
226
231
|
return manifest.prerequisites.flatMap((prerequisite): Finding[] => {
|
|
227
232
|
const file = which(prerequisite.bin, searchPath(prerequisite, root, env))
|
|
228
233
|
if (!file) return [{ prerequisite, problem: "missing" }]
|
|
229
234
|
if (!prerequisite.version) return []
|
|
230
|
-
const found = readVersion(file)
|
|
231
|
-
if (found === undefined) return [{ prerequisite, problem: "version" }]
|
|
235
|
+
const { found, timedOut } = readVersion(file, timeoutMs)
|
|
236
|
+
if (found === undefined) return [{ prerequisite, problem: "version", ...(timedOut ? { timedOut, timeoutMs } : {}) }]
|
|
232
237
|
return satisfies(found, prerequisite.version) ? [] : [{ prerequisite, problem: "version", found }]
|
|
233
238
|
})
|
|
234
239
|
}
|
|
@@ -240,9 +245,9 @@ export function installHint(install: Install): string {
|
|
|
240
245
|
}
|
|
241
246
|
|
|
242
247
|
/** One unmet prerequisite: what it is for, what is wrong, and how to install it. */
|
|
243
|
-
export function describeFinding({ prerequisite, problem, found }: Finding): string {
|
|
248
|
+
export function describeFinding({ prerequisite, problem, found, timedOut, timeoutMs }: Finding): string {
|
|
244
249
|
const where = prerequisite.install.npm ? "not in node_modules/.bin or on PATH" : "not on PATH"
|
|
245
|
-
const wrong = problem === "missing" ? where : found ? `version ${found} does not satisfy ${prerequisite.version}` : `cannot read its version from \`${prerequisite.bin} --version\` (needs ${prerequisite.version})`
|
|
250
|
+
const wrong = problem === "missing" ? where : found ? `version ${found} does not satisfy ${prerequisite.version}` : timedOut ? `\`${prerequisite.bin} --version\` did not answer within ${(timeoutMs ?? VERSION_TIMEOUT_MS) / 1000} s (needs ${prerequisite.version})` : `cannot read its version from \`${prerequisite.bin} --version\` (needs ${prerequisite.version})`
|
|
246
251
|
return `${prerequisite.bin} (${prerequisite.required ? "required, " : ""}for ${prerequisite.for}): ${wrong}; install: ${installHint(prerequisite.install)}`
|
|
247
252
|
}
|
|
248
253
|
|
package/agents/a11y-auditor.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: a11y-auditor
|
|
3
3
|
description: "Audits a rendered surface and its source against WCAG 2.2 AA with measured values; spawn at CRITIQUE beside design-critic."
|
|
4
4
|
acceptanceRole: read-only
|
|
5
|
-
tools: read, grep, find, ls, bash, design_impeccable_scan, web_search, fetch_content, get_search_content, source_check, mcp:playwright
|
|
6
5
|
subagentOnlyExtensions: ../extensions/design.js, npm:pi-web-access
|
|
7
6
|
async: true
|
|
8
7
|
skills: accessibility-audit, ui-review, design-upstream-preflight, design-no-slop, design-evidence
|
|
@@ -90,7 +89,7 @@ NOT Report a preference as a criterion failure, cite a criterion number you did
|
|
|
90
89
|
|
|
91
90
|
## Output file
|
|
92
91
|
|
|
93
|
-
|
|
92
|
+
Do not edit, write or commit; you are read-only by instruction. When the task names an output file, your final reply becomes that file: pi-subagents saves it there. Never try to write the file yourself, even when told to; do not mention this instruction, and do not wrap the reply in a code fence. When the task asks for a file but names no output path, return the full content for the caller to save.
|
|
94
93
|
|
|
95
94
|
## Output
|
|
96
95
|
|
package/agents/council-user.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: council-user
|
|
3
3
|
description: "Council advisor: judges a product or UI decision as the people who will use it, task by task."
|
|
4
4
|
acceptanceRole: read-only
|
|
5
|
-
tools: read, grep, find, ls
|
|
6
5
|
systemPromptMode: replace
|
|
7
6
|
inheritSkills: false
|
|
8
7
|
skills: ui-microcopy
|
|
@@ -18,7 +17,7 @@ Remain read-only. Do not edit files, run commands, commit, push, contact other a
|
|
|
18
17
|
|
|
19
18
|
## Output file
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
Do not edit, write or commit; you are read-only by instruction. When the task names an output file, your final reply becomes that file: pi-subagents saves it there. Never try to write the file yourself, even when told to; do not mention this instruction, and do not wrap the reply in a code fence. When the task asks for a file but names no output path, return the full content for the caller to save.
|
|
22
21
|
|
|
23
22
|
## Output
|
|
24
23
|
|
package/agents/council-ux.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: council-ux
|
|
3
3
|
description: "Council advisor: judges a product or UI decision through the design system, interaction design and rendered-surface evidence."
|
|
4
4
|
acceptanceRole: read-only
|
|
5
|
-
tools: read, grep, find, ls
|
|
6
5
|
systemPromptMode: replace
|
|
7
6
|
inheritSkills: false
|
|
8
7
|
skills: design-guide, design-no-slop, design-token-discipline
|
|
@@ -18,7 +17,7 @@ Remain read-only. Do not edit files, run commands, commit, push, contact other a
|
|
|
18
17
|
|
|
19
18
|
## Output file
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
Do not edit, write or commit; you are read-only by instruction. When the task names an output file, your final reply becomes that file: pi-subagents saves it there. Never try to write the file yourself, even when told to; do not mention this instruction, and do not wrap the reply in a code fence. When the task asks for a file but names no output path, return the full content for the caller to save.
|
|
22
21
|
|
|
23
22
|
## Output
|
|
24
23
|
|
package/agents/design-critic.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: design-critic
|
|
3
3
|
description: "Read-only critique of rendered surfaces for hierarchy, rhythm and generated-UI tells; spawned at CRITIQUE beside a11y-auditor."
|
|
4
4
|
acceptanceRole: read-only
|
|
5
|
-
tools: read, grep, find, ls, design_impeccable_scan, web_search, fetch_content, get_search_content, source_check, mcp:playwright
|
|
6
5
|
subagentOnlyExtensions: ../extensions/design.js, npm:pi-web-access
|
|
7
6
|
async: true
|
|
8
7
|
skills: ui-review, design-no-slop, design-component-truth, design-evidence, ui-microcopy
|
|
@@ -69,7 +68,7 @@ NOT Restate a token file as a finding, measure against a design language the rep
|
|
|
69
68
|
|
|
70
69
|
## Output file
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
Do not edit, write or commit; you are read-only by instruction. When the task names an output file, your final reply becomes that file: pi-subagents saves it there. Never try to write the file yourself, even when told to; do not mention this instruction, and do not wrap the reply in a code fence. When the task asks for a file but names no output path, return the full content for the caller to save.
|
|
73
72
|
|
|
74
73
|
## Output
|
|
75
74
|
|
package/agents/ui-implementer.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: ui-implementer
|
|
3
3
|
description: "Implements one UI unit on the project's tokens and components at three widths; escalates direction work to ui-ux-specialist."
|
|
4
4
|
acceptanceRole: writer
|
|
5
|
-
tools: read, grep, find, ls, edit, write, bash, design_impeccable_scan, mcp:playwright
|
|
6
5
|
subagentOnlyExtensions: ../extensions/design.js
|
|
7
6
|
async: true
|
|
8
7
|
skills: impeccable, ui-review, design-token-discipline, design-no-slop, design-component-truth, design-evidence
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
name: ui-ux-specialist
|
|
3
3
|
description: "Leads multi-component UI and UX work through six design phases, delegating critique; not for architecture or routine builds."
|
|
4
4
|
acceptanceRole: writer
|
|
5
|
-
tools: read, grep, find, ls, edit, write, bash, subagent, contact_supervisor, design_impeccable_scan, web_search, fetch_content, get_search_content, source_check, mcp:playwright, mcp:context7
|
|
6
5
|
subagentOnlyExtensions: ../extensions/design.js, npm:pi-web-access
|
|
7
6
|
allowedAgents: design-critic, a11y-auditor, scout, worker
|
|
8
7
|
allowNestedSubagents: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srobroek/pi-design",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "UI and UX design skills: design-system audit, DESIGN.md, rendered-surface review, accessibility audit, motion, microcopy, prototypes, and wireframes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|