harnessed 5.0.1 → 5.0.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/dist/cli.mjs CHANGED
@@ -37,7 +37,7 @@ var init_package = __esm({
37
37
  "package.json"() {
38
38
  package_default = {
39
39
  name: "harnessed",
40
- version: "5.0.1",
40
+ version: "5.0.2",
41
41
  description: "AI coding harness package manager + composition orchestrator",
42
42
  type: "module",
43
43
  license: "Apache-2.0",
@@ -20022,6 +20022,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
20022
20022
  };
20023
20023
  const start = Date.now();
20024
20024
  const componentTypes = {};
20025
+ const failureKeywords = {};
20025
20026
  const total = manifestPaths.length;
20026
20027
  let done = 0;
20027
20028
  const emit = (entry) => {
@@ -20068,6 +20069,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
20068
20069
  if (r.ok && "alreadyInstalled" in r && r.alreadyInstalled)
20069
20070
  return emit({ status: "already-installed", name });
20070
20071
  if (r.ok) return emit({ status: "installed", name });
20072
+ if (r.error.keyword) failureKeywords[name] = r.error.keyword;
20071
20073
  return emit({ status: "failed", name, reason: r.error.message });
20072
20074
  } catch (e) {
20073
20075
  return emit({ status: "failed", name, reason: String(e) });
@@ -20102,6 +20104,7 @@ async function runStepBInstall(manifestPaths, runOpts = {}) {
20102
20104
  alreadyInstalled,
20103
20105
  skipped,
20104
20106
  failed,
20107
+ failureKeywords,
20105
20108
  elapsedMs: Date.now() - start,
20106
20109
  componentTypes
20107
20110
  };
@@ -20114,6 +20117,10 @@ async function reclassifyForceUpdateFailures(firstPass, forcePass, probe) {
20114
20117
  const m = entry.match(/^([^:]+):\s*(.*)$/s);
20115
20118
  const name = (m?.[1] ?? entry).trim();
20116
20119
  if (priorlyInstalled.has(name)) {
20120
+ if (forcePass.failureKeywords?.[name] === "update-unsupported") {
20121
+ keptExisting.push({ name, reason: m?.[2]?.trim() ?? "" });
20122
+ continue;
20123
+ }
20117
20124
  let present = false;
20118
20125
  try {
20119
20126
  present = await probe(name);