harnessed 4.10.1 → 4.11.1

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 CHANGED
@@ -260,7 +260,7 @@ graph TD
260
260
  | `/verify-paranoid` | ④ Verify | Sub | gstack `/review` (Paranoid Staff Engineer) | Mandatory for critical-module pre-PR |
261
261
  | `/verify-qa` | ④ Verify | Sub | gstack `/qa` + playwright-cli / `@playwright/test` / webapp-testing | End-to-end QA (has_ui_changes conditional) |
262
262
  | `/verify-security` | ④ Verify | Sub | gstack `/cso` | OWASP / auth / secrets (has_auth_or_secrets conditional) |
263
- | `/verify-design` | ④ Verify | Sub | gstack `/design-review` + ui-ux-pro-max + frontend-design | Design system consistency (has_design_changes conditional) |
263
+ | `/verify-design` | ④ Verify | Sub | gstack `/design-review` + ui-ux-pro-max + design-taste-frontend | Design system consistency (has_design_changes conditional) |
264
264
  | `/verify-simplify` | ④ Verify | Sub | `code-simplifier` | Final serial simplification |
265
265
  | `/verify-multispec` | ④ Verify | Sub | 4-specialist Agent Team Pattern C | Critical release / large refactor PR escalation (mutual SendMessage cross-examination) |
266
266
  | `/ship` | ⑤ Ship | Master | masterOrchestrator | Release stage after Verify — preflight → delegate PR/deploy to gstack `/ship` → publish via CI (tag-ready boundary) |
@@ -439,7 +439,7 @@ planning-with-files /plan (cross-cutting tool) → write artifacts to .planning/
439
439
  | Scenario | Default → Escalate |
440
440
  |------|---------------------|
441
441
  | Parallelism mechanism | subagent → Agent Teams Pattern A/B/C (5 triggers) |
442
- | UI design primary plan | ui-ux-pro-max → frontend-design (user explicitly asks for style) |
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) |
443
443
  | E2E browser exploration | playwright-cli (one-line Bash, token-efficient) |
444
444
  | E2E commit-able TS | @playwright/test default |
445
445
  | E2E Python backend linkage | webapp-testing |
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import lockfile from 'proper-lockfile';
9
9
  import { parse, LineCounter, parseDocument, isSeq, isScalar } from 'yaml';
10
10
  import { Ajv } from 'ajv';
11
11
  import * as ajvFormatsNs from 'ajv-formats';
12
- import { execFileSync, spawnSync, spawn, exec, execFile, execSync } from 'child_process';
12
+ import { execFileSync, spawnSync, spawn, exec, execSync, execFile } from 'child_process';
13
13
  import { fileURLToPath } from 'url';
14
14
  import { createHash } from 'crypto';
15
15
  import { Parser } from 'expr-eval';
@@ -38,7 +38,7 @@ var init_package = __esm({
38
38
  "package.json"() {
39
39
  package_default = {
40
40
  name: "harnessed",
41
- version: "4.10.1",
41
+ version: "4.11.1",
42
42
  description: "AI coding harness package manager + composition orchestrator",
43
43
  type: "module",
44
44
  license: "Apache-2.0",
@@ -337,18 +337,41 @@ var init_schemaVersion = __esm({
337
337
  ]);
338
338
  }
339
339
  });
340
+ function tmpName(path) {
341
+ return `${path}.${process.pid}.${++tmpSeq}.tmp`;
342
+ }
340
343
  async function writeFileAtomic(path, data) {
341
- const tmp = `${path}.tmp`;
344
+ const tmp = tmpName(path);
342
345
  await writeFile(tmp, data, "utf8");
343
- await rename(tmp, path);
346
+ for (let i = 0; ; i++) {
347
+ try {
348
+ await rename(tmp, path);
349
+ return;
350
+ } catch (e) {
351
+ if (i >= RENAME_RETRIES || !isTransient(e)) throw e;
352
+ await new Promise((r) => setTimeout(r, 10 * (i + 1)));
353
+ }
354
+ }
344
355
  }
345
356
  function writeFileSyncAtomic(path, data) {
346
- const tmp = `${path}.tmp`;
357
+ const tmp = tmpName(path);
347
358
  writeFileSync(tmp, data, "utf8");
348
- renameSync(tmp, path);
359
+ for (let i = 0; ; i++) {
360
+ try {
361
+ renameSync(tmp, path);
362
+ return;
363
+ } catch (e) {
364
+ if (i >= RENAME_RETRIES || !isTransient(e)) throw e;
365
+ }
366
+ }
349
367
  }
368
+ var tmpSeq, TRANSIENT_RENAME, RENAME_RETRIES, isTransient;
350
369
  var init_atomicWrite = __esm({
351
370
  "src/checkpoint/atomicWrite.ts"() {
371
+ tmpSeq = 0;
372
+ TRANSIENT_RENAME = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY", "ENOENT"]);
373
+ RENAME_RETRIES = 10;
374
+ isTransient = (e) => TRANSIENT_RENAME.has(e?.code ?? "");
352
375
  }
353
376
  });
354
377
  var CheckpointStatus, CheckpointV1;
@@ -9167,6 +9190,30 @@ async function makeIdempotentProbe(manifestPaths) {
9167
9190
  };
9168
9191
  }
9169
9192
 
9193
+ // src/cli/lib/version-banner.ts
9194
+ init_package();
9195
+ init_version_check();
9196
+ function versionBannerLines(installed, latest) {
9197
+ const lines = [`harnessed setup v${installed}`];
9198
+ if (latest === null) {
9199
+ lines.push(" could not check latest version");
9200
+ return lines;
9201
+ }
9202
+ const cmp = compareVersions(installed, latest);
9203
+ if (cmp === "behind") {
9204
+ lines.push(`\u26A0 update available: ${installed} \u2192 ${latest} \u2014 npm install -g harnessed@latest`);
9205
+ } else if (cmp === "current") {
9206
+ lines.push(`\u2713 latest (v${latest})`);
9207
+ } else if (cmp === "ahead") {
9208
+ lines.push(`\u2713 latest (v${installed})`);
9209
+ }
9210
+ return lines;
9211
+ }
9212
+ async function printSetupVersionBanner() {
9213
+ const latest = await fetchLatestVersion();
9214
+ for (const line of versionBannerLines(package_default.version, latest)) console.log(line);
9215
+ }
9216
+
9170
9217
  // src/cli/setup.ts
9171
9218
  var KNOWN_PLATFORMS = ["claude", "codex"];
9172
9219
  async function applyPlatformOption(platform) {
@@ -9248,6 +9295,7 @@ function registerSetup(program2) {
9248
9295
  "--update-installed",
9249
9296
  "force re-install already-installed plugins (excludes MCP servers); default: skip if installed"
9250
9297
  ).action(async (raw) => {
9298
+ await printSetupVersionBanner();
9251
9299
  const dryRun = raw.dryRun === true;
9252
9300
  if (raw.platform !== void 0) await applyPlatformOption(raw.platform);
9253
9301
  const pkgRoot = getPackageRoot();