harnessed 4.10.0 โ 4.11.0
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 +6 -5
- package/dist/cli.mjs +75 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/skill-packs/design-taste-frontend.yaml +46 -0
- package/manifests/skill-packs/gstack.yaml +1 -1
- package/manifests/skill-packs/ui-ux-pro-max.yaml +1 -1
- package/package.json +1 -1
- package/routing/README.md +1 -1
- package/routing/SCHEMA.md +7 -7
- package/routing/decision_rules.yaml +6 -6
- package/workflows/capabilities.yaml +11 -10
- package/workflows/judgments/web-design-routing.yaml +13 -13
- package/workflows/verify/design/SKILL.md +8 -8
- package/workflows/verify/design/SKILL.zh-Hans.md +8 -8
- package/workflows/verify/design/workflow.yaml +5 -5
- package/manifests/skill-packs/frontend-design.yaml +0 -63
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ flowchart LR
|
|
|
39
39
|
|
|
40
40
|
## ๐งฑ What is the three-layer stack?
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
harnessed's three-layer stack is a software-engineering implementation of the established **BDD โ SDD โ TDD** nesting: three nested feedback loops, each answering a different question. The **three layers are the loops** (the stable theory); harnessed **composes** the open-source ecosystem into each loop โ and the components **overlap**, which is exactly what a composition orchestrator arbitrates.
|
|
43
43
|
|
|
44
44
|
| Layer | Loop | Question it answers | Composed from (overlapping) |
|
|
45
45
|
|---|---|---|---|
|
|
@@ -70,6 +70,7 @@ Mapped to the runtime loop above: **Discuss = Behavior (BDD) ยท Plan = Spec (SDD
|
|
|
70
70
|
- **L0 Discipline Substrate** โ global cross-stage behavior baseline (karpathy principles + output-style + language + operational + priority + protocols), applied universally
|
|
71
71
|
- **Package manager mindset** โ install dependency graph auto-resolves, doctor health check, install-base one-shot full install
|
|
72
72
|
- **Unified entry point** โ users face `/discuss /plan /task /verify /ship` master slash commands without learning each upstream's terminology; sub commands explicitly invoke a single stage (e.g. `/discuss-strategic` runs only the strategic-layer clarification)
|
|
73
|
+
- **Forward continuation** โ `harnessed next` / `harnessed advance` carry you across tasks and phases: when one finishes, the next is **derived from `.planning/` disk state** (a phase is done when its `PLAN` has a matching `SUMMARY`) โ no queue to maintain, so a mid-stream new phase is picked up automatically, and resume re-derives from disk. A per-turn `NEXT-UNIT` breadcrumb points at what's next
|
|
73
74
|
|
|
74
75
|
---
|
|
75
76
|
|
|
@@ -169,7 +170,7 @@ In order of increasing user intervention:
|
|
|
169
170
|
/verify "phase-1" # 7 subs conditional verification
|
|
170
171
|
```
|
|
171
172
|
|
|
172
|
-
> Want to decide which stage to start from / review intermediate outputs โ
|
|
173
|
+
> Want to decide which stage to start from / review intermediate outputs โ 5 masters callable independently, and each master still auto-fans-out all of that stage's subs internally.
|
|
173
174
|
|
|
174
175
|
### ๐ฌ Surgical Mode (Expert mode / you know what you want)
|
|
175
176
|
|
|
@@ -259,7 +260,7 @@ graph TD
|
|
|
259
260
|
| `/verify-paranoid` | โฃ Verify | Sub | gstack `/review` (Paranoid Staff Engineer) | Mandatory for critical-module pre-PR |
|
|
260
261
|
| `/verify-qa` | โฃ Verify | Sub | gstack `/qa` + playwright-cli / `@playwright/test` / webapp-testing | End-to-end QA (has_ui_changes conditional) |
|
|
261
262
|
| `/verify-security` | โฃ Verify | Sub | gstack `/cso` | OWASP / auth / secrets (has_auth_or_secrets conditional) |
|
|
262
|
-
| `/verify-design` | โฃ Verify | Sub | gstack `/design-review` + ui-ux-pro-max + frontend
|
|
263
|
+
| `/verify-design` | โฃ Verify | Sub | gstack `/design-review` + ui-ux-pro-max + design-taste-frontend | Design system consistency (has_design_changes conditional) |
|
|
263
264
|
| `/verify-simplify` | โฃ Verify | Sub | `code-simplifier` | Final serial simplification |
|
|
264
265
|
| `/verify-multispec` | โฃ Verify | Sub | 4-specialist Agent Team Pattern C | Critical release / large refactor PR escalation (mutual SendMessage cross-examination) |
|
|
265
266
|
| `/ship` | โค Ship | Master | masterOrchestrator | Release stage after Verify โ preflight โ delegate PR/deploy to gstack `/ship` โ publish via CI (tag-ready boundary) |
|
|
@@ -438,7 +439,7 @@ planning-with-files /plan (cross-cutting tool) โ write artifacts to .planning/
|
|
|
438
439
|
| Scenario | Default โ Escalate |
|
|
439
440
|
|------|---------------------|
|
|
440
441
|
| Parallelism mechanism | subagent โ Agent Teams Pattern A/B/C (5 triggers) |
|
|
441
|
-
| UI design primary plan | ui-ux-pro-max โ frontend
|
|
442
|
+
| UI design primary plan | **two-stage**: ui-ux-pro-max (audience / interaction logic / design axis โ structure) โ design-taste-frontend (anti-slop visual polish overlay, cross-agent taste-skill) |
|
|
442
443
|
| E2E browser exploration | playwright-cli (one-line Bash, token-efficient) |
|
|
443
444
|
| E2E commit-able TS | @playwright/test default |
|
|
444
445
|
| E2E Python backend linkage | webapp-testing |
|
|
@@ -522,7 +523,7 @@ planning-with-files /plan (cross-cutting tool) โ write artifacts to .planning/
|
|
|
522
523
|
Yes, but **the user experience = one command**:
|
|
523
524
|
|
|
524
525
|
```bash
|
|
525
|
-
harnessed setup # Auto-installs gstack + GSD + superpowers + planning-with-files;
|
|
526
|
+
harnessed setup # Auto-installs gstack + GSD + superpowers + planning-with-files; 26 workflow skills land in ~/.claude/skills/ + Agent Teams env var auto-written to ~/.claude.json
|
|
526
527
|
```
|
|
527
528
|
|
|
528
529
|
Think `brew install <formula>` pulling the full dependency set โ you don't need to `brew install` each dependency separately.
|
package/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, mkdirSync, renameSync, writeFileSync, readFileSync, readdir
|
|
|
3
3
|
import { homedir } from 'os';
|
|
4
4
|
import { join, dirname, resolve, sep, relative } from 'path';
|
|
5
5
|
import { Type } from '@sinclair/typebox';
|
|
6
|
-
import { readFile, readdir, unlink, writeFile, stat, rm, cp, mkdir, rename,
|
|
6
|
+
import { readFile, readdir, unlink, writeFile, stat, rm, cp, mkdir, rename, access, appendFile } from 'fs/promises';
|
|
7
7
|
import { Value } from '@sinclair/typebox/value';
|
|
8
8
|
import lockfile from 'proper-lockfile';
|
|
9
9
|
import { parse, LineCounter, parseDocument, isSeq, isScalar } from 'yaml';
|
|
@@ -38,7 +38,7 @@ var init_package = __esm({
|
|
|
38
38
|
"package.json"() {
|
|
39
39
|
package_default = {
|
|
40
40
|
name: "harnessed",
|
|
41
|
-
version: "4.
|
|
41
|
+
version: "4.11.0",
|
|
42
42
|
description: "AI coding harness package manager + composition orchestrator",
|
|
43
43
|
type: "module",
|
|
44
44
|
license: "Apache-2.0",
|
|
@@ -5466,7 +5466,7 @@ var init_spawn = __esm({
|
|
|
5466
5466
|
"src/installers/lib/spawn.ts"() {
|
|
5467
5467
|
init_security();
|
|
5468
5468
|
DEFAULT_VERIFY_TIMEOUT_MS = 15e3;
|
|
5469
|
-
DEFAULT_INSTALL_TIMEOUT_MS =
|
|
5469
|
+
DEFAULT_INSTALL_TIMEOUT_MS = 3e5;
|
|
5470
5470
|
}
|
|
5471
5471
|
});
|
|
5472
5472
|
function extractSkillName(cmd, fallback) {
|
|
@@ -8971,6 +8971,7 @@ async function renderAllSkills(skillNames, skillsBase, workflowsDir, homedirOver
|
|
|
8971
8971
|
|
|
8972
8972
|
// src/cli/lib/setup-helpers.ts
|
|
8973
8973
|
init_installers();
|
|
8974
|
+
init_idempotent();
|
|
8974
8975
|
init_validate();
|
|
8975
8976
|
init_checkAgentTeams();
|
|
8976
8977
|
var FLAT_LEGACY_KEEP = /* @__PURE__ */ new Set(["research", "retro", "auto"]);
|
|
@@ -9112,6 +9113,59 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
|
|
|
9112
9113
|
componentTypes
|
|
9113
9114
|
};
|
|
9114
9115
|
}
|
|
9116
|
+
async function reclassifyForceUpdateFailures(firstPass, forcePass, probe) {
|
|
9117
|
+
const priorlyInstalled = new Set(firstPass.alreadyInstalled);
|
|
9118
|
+
const failed = [];
|
|
9119
|
+
const keptExisting = [];
|
|
9120
|
+
for (const entry of forcePass.failed) {
|
|
9121
|
+
const name = (entry.match(/^([^:]+):/)?.[1] ?? entry).trim();
|
|
9122
|
+
if (priorlyInstalled.has(name)) {
|
|
9123
|
+
let present = false;
|
|
9124
|
+
try {
|
|
9125
|
+
present = await probe(name);
|
|
9126
|
+
} catch {
|
|
9127
|
+
present = false;
|
|
9128
|
+
}
|
|
9129
|
+
if (present) {
|
|
9130
|
+
keptExisting.push(name);
|
|
9131
|
+
continue;
|
|
9132
|
+
}
|
|
9133
|
+
}
|
|
9134
|
+
failed.push(entry);
|
|
9135
|
+
}
|
|
9136
|
+
return { failed, keptExisting };
|
|
9137
|
+
}
|
|
9138
|
+
async function makeIdempotentProbe(manifestPaths) {
|
|
9139
|
+
const byName = /* @__PURE__ */ new Map();
|
|
9140
|
+
for (const path of manifestPaths) {
|
|
9141
|
+
try {
|
|
9142
|
+
const yamlSrc = await readFile(path, "utf8");
|
|
9143
|
+
const v = validateManifestFile(yamlSrc, path);
|
|
9144
|
+
if (v.ok) byName.set(v.manifest.metadata.name, v.manifest);
|
|
9145
|
+
} catch {
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
return async (name) => {
|
|
9149
|
+
const manifest = byName.get(name);
|
|
9150
|
+
if (!manifest) return false;
|
|
9151
|
+
const opts = {
|
|
9152
|
+
apply: false,
|
|
9153
|
+
dryRun: false,
|
|
9154
|
+
system: false,
|
|
9155
|
+
nonInteractive: true,
|
|
9156
|
+
fullDiff: false,
|
|
9157
|
+
color: "auto",
|
|
9158
|
+
updateInstalled: false,
|
|
9159
|
+
quiet: true
|
|
9160
|
+
};
|
|
9161
|
+
const ctx = { manifest, opts, level: "L2", cwd: process.cwd() };
|
|
9162
|
+
try {
|
|
9163
|
+
return await isAlreadyInstalled(ctx);
|
|
9164
|
+
} catch {
|
|
9165
|
+
return false;
|
|
9166
|
+
}
|
|
9167
|
+
};
|
|
9168
|
+
}
|
|
9115
9169
|
|
|
9116
9170
|
// src/cli/setup.ts
|
|
9117
9171
|
var KNOWN_PLATFORMS = ["claude", "codex"];
|
|
@@ -9165,6 +9219,12 @@ function printGrouped(b, prefix = "") {
|
|
|
9165
9219
|
for (const s of b.skipped)
|
|
9166
9220
|
push(groupOf(s.name), { status: "skipped", name: s.name, suffix: ` \u2014 ${s.reason}` });
|
|
9167
9221
|
for (const n of b.alreadyInstalled) push(groupOf(n), { status: "already-installed", name: n });
|
|
9222
|
+
for (const n of b.keptExisting ?? [])
|
|
9223
|
+
push(groupOf(n), {
|
|
9224
|
+
status: "kept-existing",
|
|
9225
|
+
name: n,
|
|
9226
|
+
suffix: " \u2014 refresh failed, prior version retained"
|
|
9227
|
+
});
|
|
9168
9228
|
for (const g of GROUP_ORDER) {
|
|
9169
9229
|
const entries = buckets[g];
|
|
9170
9230
|
if (!entries || entries.length === 0) continue;
|
|
@@ -9173,6 +9233,7 @@ function printGrouped(b, prefix = "") {
|
|
|
9173
9233
|
for (const e of entries) {
|
|
9174
9234
|
const line = ` ${e.status.padEnd(18)} ${e.name}${e.suffix ?? ""}`;
|
|
9175
9235
|
if (e.status === "failed") console.error(line);
|
|
9236
|
+
else if (e.status === "kept-existing") console.warn(line);
|
|
9176
9237
|
else console.log(line);
|
|
9177
9238
|
}
|
|
9178
9239
|
}
|
|
@@ -9303,12 +9364,22 @@ function registerSetup(program2) {
|
|
|
9303
9364
|
});
|
|
9304
9365
|
if (!isCancel5(ans) && ans === true) {
|
|
9305
9366
|
const b2 = await runStepBInstall(manifestPaths, { updateInstalled: true, quiet: true });
|
|
9367
|
+
const probe = await makeIdempotentProbe(manifestPaths);
|
|
9368
|
+
const reclass = await reclassifyForceUpdateFailures(b, b2, probe);
|
|
9369
|
+
b2.failed = reclass.failed;
|
|
9370
|
+
b2.keptExisting = reclass.keptExisting;
|
|
9306
9371
|
const stepB2Ms = (b2.elapsedMs / 1e3).toFixed(1);
|
|
9307
9372
|
console.log(
|
|
9308
9373
|
`
|
|
9309
|
-
Force-update pass complete: ${b2.installed.length} installed / ${b2.alreadyInstalled.length} still-already-installed (MCP) / ${b2.skipped.length} skipped / ${b2.failed.length} failed [parallel ${stepB2Ms}s]`
|
|
9374
|
+
Force-update pass complete: ${b2.installed.length} installed / ${b2.keptExisting.length} kept-existing / ${b2.alreadyInstalled.length} still-already-installed (MCP) / ${b2.skipped.length} skipped / ${b2.failed.length} failed [parallel ${stepB2Ms}s]`
|
|
9310
9375
|
);
|
|
9311
9376
|
printGrouped(b2, "[force-update] ");
|
|
9377
|
+
if (b2.keptExisting.length > 0) {
|
|
9378
|
+
console.warn(
|
|
9379
|
+
`
|
|
9380
|
+
${b2.keptExisting.length} plugin(s) kept their existing version \u2014 refresh failed but the prior install is still usable. Re-run \`harnessed setup\` later to retry the update.`
|
|
9381
|
+
);
|
|
9382
|
+
}
|
|
9312
9383
|
}
|
|
9313
9384
|
}
|
|
9314
9385
|
}
|