harnessed 4.42.0 → 4.43.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/dist/cli.mjs CHANGED
@@ -38,7 +38,7 @@ var init_package = __esm({
38
38
  "package.json"() {
39
39
  package_default = {
40
40
  name: "harnessed",
41
- version: "4.42.0",
41
+ version: "4.43.0",
42
42
  description: "AI coding harness package manager + composition orchestrator",
43
43
  type: "module",
44
44
  license: "Apache-2.0",
@@ -1935,7 +1935,7 @@ var init_en = __esm({
1935
1935
  "setup.doctor_hint": "\nRun harnessed doctor to verify your environment.",
1936
1936
  "agent_teams.missing_header": "\n\u26A0\uFE0F Agent Teams not enabled \u2014 parallelism upgrade path unavailable",
1937
1937
  "agent_teams.missing_fix": " fix: claude config set env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 1",
1938
- "agent_teams.missing_explanation": " harnessed task parallelism uses Subagent or Agent Teams (CC 2.1.133+)",
1938
+ "agent_teams.missing_explanation": " harnessed task parallelism uses Subagent or Agent Teams (CC 2.1.178+)",
1939
1939
  "agent_teams.missing_nonblocking": " non-blocking \u2014 auto-degrades to subagent fan-out\n",
1940
1940
  "install.manifest_not_found": "error: manifest '{{name}}' not found",
1941
1941
  "install.manifest_not_found.fix": " fix: ensure manifests/tools/{{name}}.yaml, manifests/skill-packs/{{name}}.yaml, or manifests/optional/{{name}}.yaml exists",
@@ -4813,7 +4813,7 @@ async function checkAgentTeams() {
4813
4813
  detected,
4814
4814
  envValue,
4815
4815
  settingsValue,
4816
- remediation: 'Agent Teams not enabled. Add to ~/.claude/settings.json:\n "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }\nOR run: claude config set env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 1\nOR export env var:\n export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1\nThen restart Claude Code (CC >= 2.1.133 required).'
4816
+ remediation: 'Agent Teams not enabled. Add to ~/.claude/settings.json:\n "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }\nOR run: claude config set env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 1\nOR export env var:\n export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1\nThen restart Claude Code (CC >= 2.1.178 required).'
4817
4817
  };
4818
4818
  }
4819
4819
  var init_checkAgentTeams = __esm({
@@ -6480,11 +6480,7 @@ var init_judgment = __esm({
6480
6480
  );
6481
6481
  FallbackRule = Type.Object(
6482
6482
  {
6483
- description: Type.Optional(Type.String()),
6484
- fallback_action: Type.Optional(Type.String()),
6485
- message_template: Type.Optional(Type.String()),
6486
- override_signal: Type.Optional(Type.Array(Type.String())),
6487
- chain_isolation: Type.Optional(Type.Boolean())
6483
+ description: Type.Optional(Type.String())
6488
6484
  },
6489
6485
  { additionalProperties: false }
6490
6486
  );
@@ -12663,8 +12659,6 @@ var Enforcement = Type.Union([
12663
12659
  // process.exit non-zero, sister fallbackHandlers
12664
12660
  Type.Literal("warn"),
12665
12661
  // console.warn emit, continue
12666
- Type.Literal("auto-fix"),
12667
- // run auto_fix_cmd then continue (biome --write pattern)
12668
12662
  Type.Literal("info")
12669
12663
  // log only, no action
12670
12664
  ]);
@@ -12675,22 +12669,21 @@ var DisciplineRule = Type.Object(
12675
12669
  description: Type.String(),
12676
12670
  // human-readable
12677
12671
  enforcement: Enforcement,
12678
- trigger: Type.Union([Type.String(), Type.Array(Type.String())]),
12672
+ trigger: Type.Union([Type.String(), Type.Array(Type.String())])
12679
12673
  // expr OR always-on list
12680
- check_method: Type.String(),
12681
- // heuristic / regex / external-cmd / llm-judge / file-content-match
12682
- auto_fix_cmd: Type.Optional(Type.String())
12683
- // only enforcement=auto-fix
12674
+ // 4.43.0 — `check_method` / `auto_fix_cmd` and the `auto-fix` enforcement value
12675
+ // removed: nothing ever evaluated them (the only runner, the before-commit hook,
12676
+ // was unreachable and deleted in 4.42.0). A rule's description reaches the model
12677
+ // via `harnessed prompt`; mechanical checks live in `harnessed check-docs`.
12684
12678
  },
12685
12679
  { additionalProperties: false }
12686
12680
  );
12687
12681
  var PriorityHierarchy = Type.Array(Type.String(), { minItems: 1 });
12688
12682
  var ProtocolShape = Type.Object(
12689
12683
  {
12684
+ // required_fields / forbidden_phrases / file_ownership removed 4.43.0 (never
12685
+ // checked); their content now lives in the protocol's description text.
12690
12686
  description: Type.String(),
12691
- required_fields: Type.Optional(Type.Array(Type.String())),
12692
- forbidden_phrases: Type.Optional(Type.Array(Type.String())),
12693
- file_ownership: Type.Optional(Type.Record(Type.String(), Type.Array(Type.String()))),
12694
12687
  rules: Type.Optional(Type.Array(DisciplineRule))
12695
12688
  },
12696
12689
  { additionalProperties: false }
@@ -12701,7 +12694,6 @@ var Discipline = Type.Object(
12701
12694
  discipline: Type.String({ minLength: 1 }),
12702
12695
  // basename (karpathy / output-style / ...)
12703
12696
  enforcement_layer: EnforcementLayer,
12704
- auto_enforce: Type.Boolean(),
12705
12697
  rules: Type.Array(DisciplineRule),
12706
12698
  priority_hierarchy: Type.Optional(PriorityHierarchy),
12707
12699
  // priority.yaml only
@@ -15124,7 +15116,7 @@ async function warnIfAgentTeamsMissing() {
15124
15116
  console.warn("\n\u26A0\uFE0F Agent Teams \u672A\u542F\u7528 \u2014 parallelism-gate \u5347\u7EA7\u8DEF\u5F84\u4E0D\u53EF\u7528");
15125
15117
  console.warn(" \u4FEE\u590D: claude config set env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 1");
15126
15118
  console.warn(
15127
- " \u8BF4\u660E: harnessed v3.0 \u4E09\u5C42\u6808\u65B9\u6CD5\u8BBA parallelism-gate \u5347\u7EA7\u8DEF\u5F84\u9700 CC 2.1.133+ Agent Teams enable"
15119
+ " \u8BF4\u660E: harnessed v3.0 \u4E09\u5C42\u6808\u65B9\u6CD5\u8BBA parallelism-gate \u5347\u7EA7\u8DEF\u5F84\u9700 CC 2.1.178+ Agent Teams enable"
15128
15120
  );
15129
15121
  console.warn(
15130
15122
  " \u4E0D\u963B\u585E setup,\u540E\u7EED parallelism-gate workflow phase \u89E6\u53D1\u65F6\u81EA\u52A8\u964D\u7EA7 subagent fan-out\n"