harnessed 4.31.0 → 4.31.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/README.md +2 -0
- package/dist/cli.mjs +29 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/workflows/auto/SKILL.md +2 -0
- package/workflows/auto/SKILL.zh-Hans.md +2 -0
package/README.md
CHANGED
|
@@ -93,6 +93,8 @@ Native agents give you primitives; harnessed wires them into a methodology. Wher
|
|
|
93
93
|
|
|
94
94
|
> Native agents win on zero-setup, zero-overhead for trivial one-off edits. harnessed earns its keep the moment work spans multiple steps, sessions, or subagents — where freestyle drift and lost-in-chat state start costing you.
|
|
95
95
|
|
|
96
|
+
**Don't take our word for it — we ran the experiment.** A published A/B evidence pack ([docs/evidence/2026-07-b1/](./docs/evidence/2026-07-b1/)) compares `/auto` against bare Claude Code on 4 machine-graded tasks, full transcripts included. Honest headline: on small, fully-specified tasks both arms score 100% and bare is 4-5× cheaper — use bare (or auto-lite) there. The orchestration value claim lives in fuzzy-spec / multi-session territory, which that experiment deliberately does not cover; bring us a real task from that territory and we'll run the same protocol on it.
|
|
97
|
+
|
|
96
98
|
---
|
|
97
99
|
|
|
98
100
|
## 📦 Quick Install
|
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.31.
|
|
41
|
+
version: "4.31.2",
|
|
42
42
|
description: "AI coding harness package manager + composition orchestrator",
|
|
43
43
|
type: "module",
|
|
44
44
|
license: "Apache-2.0",
|
|
@@ -6884,6 +6884,16 @@ var init_doctor_registry = __esm({
|
|
|
6884
6884
|
}
|
|
6885
6885
|
});
|
|
6886
6886
|
|
|
6887
|
+
// src/cli/lib/detectHeadless.ts
|
|
6888
|
+
function detectHeadless(env, _isTTY) {
|
|
6889
|
+
if (env.HARNESSED_HEADLESS === "1") return { headless: true, signal: "explicit-env" };
|
|
6890
|
+
return { headless: false, signal: "none" };
|
|
6891
|
+
}
|
|
6892
|
+
var init_detectHeadless = __esm({
|
|
6893
|
+
"src/cli/lib/detectHeadless.ts"() {
|
|
6894
|
+
}
|
|
6895
|
+
});
|
|
6896
|
+
|
|
6887
6897
|
// src/cli/gates.ts
|
|
6888
6898
|
var gates_exports = {};
|
|
6889
6899
|
__export(gates_exports, {
|
|
@@ -7004,11 +7014,19 @@ async function runGatesPlan(master, raw, deps = defaultRunDeps) {
|
|
|
7004
7014
|
(m) => deps.warn(m)
|
|
7005
7015
|
);
|
|
7006
7016
|
let parallelism = { escalate_to_teams: false, reason: null };
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
parallelism =
|
|
7010
|
-
|
|
7011
|
-
|
|
7017
|
+
const hl = detectHeadless(process.env, Boolean(process.stdout.isTTY));
|
|
7018
|
+
if (hl.headless) {
|
|
7019
|
+
parallelism = {
|
|
7020
|
+
escalate_to_teams: false,
|
|
7021
|
+
reason: "headless mode \u2014 Agent Teams are session-scoped, incompatible with -p (issue #7)"
|
|
7022
|
+
};
|
|
7023
|
+
} else {
|
|
7024
|
+
try {
|
|
7025
|
+
const escalate = await resolveJudgmentGate(PARALLELISM_GATE, ctx, packageRoot);
|
|
7026
|
+
parallelism = escalate ? { escalate_to_teams: true, reason: "agent-teams-upgrade gate fired" } : { escalate_to_teams: false, reason: null };
|
|
7027
|
+
} catch {
|
|
7028
|
+
parallelism = { escalate_to_teams: false, reason: null };
|
|
7029
|
+
}
|
|
7012
7030
|
}
|
|
7013
7031
|
const result = { master, fire, skip, parallelism };
|
|
7014
7032
|
deps.log(JSON.stringify(result, null, 2));
|
|
@@ -7045,6 +7063,7 @@ var init_gates = __esm({
|
|
|
7045
7063
|
init_judgmentResolver();
|
|
7046
7064
|
init_skipSubs();
|
|
7047
7065
|
init_assetsRoot();
|
|
7066
|
+
init_detectHeadless();
|
|
7048
7067
|
init_gateContext();
|
|
7049
7068
|
init_runDeps();
|
|
7050
7069
|
VALID_MASTERS = /* @__PURE__ */ new Set(["auto", "discuss", "plan", "task", "verify", "ship"]);
|
|
@@ -11157,6 +11176,8 @@ async function runScenarioDir(dir, opts) {
|
|
|
11157
11176
|
const prevCwd = process.cwd();
|
|
11158
11177
|
const prevRoot = process.env.HARNESSED_ROOT_OVERRIDE;
|
|
11159
11178
|
const prevAssets = process.env.HARNESSED_ASSETS_OVERRIDE;
|
|
11179
|
+
const prevCeiling = process.env.GIT_CEILING_DIRECTORIES;
|
|
11180
|
+
process.env.GIT_CEILING_DIRECTORIES = tmpdir();
|
|
11160
11181
|
process.env.HARNESSED_ROOT_OVERRIDE = stateRoot;
|
|
11161
11182
|
if (scenario.assets_dir) {
|
|
11162
11183
|
process.env.HARNESSED_ASSETS_OVERRIDE = isAbsolute(scenario.assets_dir) ? scenario.assets_dir : resolve(dir, scenario.assets_dir);
|
|
@@ -11192,6 +11213,8 @@ async function runScenarioDir(dir, opts) {
|
|
|
11192
11213
|
else process.env.HARNESSED_ROOT_OVERRIDE = prevRoot;
|
|
11193
11214
|
if (prevAssets === void 0) delete process.env.HARNESSED_ASSETS_OVERRIDE;
|
|
11194
11215
|
else process.env.HARNESSED_ASSETS_OVERRIDE = prevAssets;
|
|
11216
|
+
if (prevCeiling === void 0) delete process.env.GIT_CEILING_DIRECTORIES;
|
|
11217
|
+
else process.env.GIT_CEILING_DIRECTORIES = prevCeiling;
|
|
11195
11218
|
_clearJudgmentCache2();
|
|
11196
11219
|
}
|
|
11197
11220
|
const cleanup = () => {
|