harnessed 3.6.1 → 3.7.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
@@ -952,7 +952,7 @@ var init_resume = __esm({
952
952
 
953
953
  // package.json
954
954
  var package_default = {
955
- version: "3.6.1"};
955
+ version: "3.7.0"};
956
956
 
957
957
  // src/manifest/errors.ts
958
958
  function instancePathToKeyPath(instancePath) {
@@ -2103,63 +2103,37 @@ function checkWinBash() {
2103
2103
  }
2104
2104
  return { name: "bash flavor (win)", status: "pass", message: `${firstBash} (Git Bash / native)` };
2105
2105
  }
2106
- async function checkOriginUrl() {
2107
- const { checkOrigin: checkOrigin2 } = await Promise.resolve().then(() => (init_origin_check(), origin_check_exports));
2108
- const r = checkOrigin2(process.cwd(), { allowFork: true });
2109
- return { name: "origin URL", status: r.status, message: r.detail, fix: r.fix };
2110
- }
2111
- async function checkGstackPrefix() {
2112
- const { probeGstackPrefix: probeGstackPrefix2 } = await Promise.resolve().then(() => (init_probe_gstack(), probe_gstack_exports));
2113
- const r = probeGstackPrefix2();
2114
- return { name: "gstack prefix", status: r.status, message: r.detail, fix: r.fix };
2115
- }
2116
- async function checkDeprecations2() {
2117
- return (await Promise.resolve().then(() => (init_check_deprecations(), check_deprecations_exports))).checkDeprecations();
2118
- }
2119
- async function checkTokenBudget2() {
2120
- return (await Promise.resolve().then(() => (init_check_token_budget(), check_token_budget_exports))).checkTokenBudget();
2121
- }
2122
- async function checkAgentTeamsEnv() {
2123
- return (await Promise.resolve().then(() => (init_check_agent_teams_doctor(), check_agent_teams_doctor_exports))).checkAgentTeamsDoctor();
2124
- }
2125
- async function checkPlanningPlugin() {
2126
- return (await Promise.resolve().then(() => (init_check_planning_with_files(), check_planning_with_files_exports))).checkPlanningWithFiles();
2127
- }
2128
- async function checkMattpocockSkillsInstall() {
2129
- return (await Promise.resolve().then(() => (init_check_mattpocock_skills(), check_mattpocock_skills_exports))).checkMattpocockSkills();
2130
- }
2131
- async function checkMcpAvailabilityCheck() {
2132
- return (await Promise.resolve().then(() => (init_check_mcp_availability(), check_mcp_availability_exports))).checkMcpAvailability();
2133
- }
2106
+
2107
+ // src/cli/lib/doctor-registry.ts
2108
+ var CHECKS = [
2109
+ async () => checkNodeVersion(),
2110
+ checkMcpScope,
2111
+ async () => checkJq(),
2112
+ async () => checkWinBash(),
2113
+ async () => {
2114
+ const { checkOrigin: checkOrigin2 } = await Promise.resolve().then(() => (init_origin_check(), origin_check_exports));
2115
+ const r = checkOrigin2(process.cwd(), { allowFork: true });
2116
+ return { name: "origin URL", status: r.status, message: r.detail, fix: r.fix };
2117
+ },
2118
+ async () => {
2119
+ const { probeGstackPrefix: probeGstackPrefix2 } = await Promise.resolve().then(() => (init_probe_gstack(), probe_gstack_exports));
2120
+ const r = probeGstackPrefix2();
2121
+ return { name: "gstack prefix", status: r.status, message: r.detail, fix: r.fix };
2122
+ },
2123
+ async () => (await Promise.resolve().then(() => (init_check_deprecations(), check_deprecations_exports))).checkDeprecations(),
2124
+ async () => (await Promise.resolve().then(() => (init_check_token_budget(), check_token_budget_exports))).checkTokenBudget(),
2125
+ async () => (await Promise.resolve().then(() => (init_check_agent_teams_doctor(), check_agent_teams_doctor_exports))).checkAgentTeamsDoctor(),
2126
+ async () => (await Promise.resolve().then(() => (init_check_planning_with_files(), check_planning_with_files_exports))).checkPlanningWithFiles(),
2127
+ async () => (await Promise.resolve().then(() => (init_check_mattpocock_skills(), check_mattpocock_skills_exports))).checkMattpocockSkills(),
2128
+ async () => (await Promise.resolve().then(() => (init_check_mcp_availability(), check_mcp_availability_exports))).checkMcpAvailability()
2129
+ ];
2130
+
2131
+ // src/cli/doctor.ts
2134
2132
  function registerDoctor(program2) {
2135
2133
  program2.command("doctor").description(
2136
2134
  "Preflight checks (Node / MCP scope / jq / Win bash / origin URL / gstack prefix / deprecations / token budget / Agent Teams / planning-with-files / mattpocock-skills / MCP availability)"
2137
2135
  ).option("--json", "output JSON instead of human-readable").action(async (opts) => {
2138
- const [mcp, origin, gstack, dep, tok, at, ppwf, matt, mcpAvail] = await Promise.all([
2139
- checkMcpScope(),
2140
- checkOriginUrl(),
2141
- checkGstackPrefix(),
2142
- checkDeprecations2(),
2143
- checkTokenBudget2(),
2144
- checkAgentTeamsEnv(),
2145
- checkPlanningPlugin(),
2146
- checkMattpocockSkillsInstall(),
2147
- checkMcpAvailabilityCheck()
2148
- ]);
2149
- const results = [
2150
- checkNodeVersion(),
2151
- mcp,
2152
- checkJq(),
2153
- checkWinBash(),
2154
- origin,
2155
- gstack,
2156
- dep,
2157
- tok,
2158
- at,
2159
- ppwf,
2160
- matt,
2161
- mcpAvail
2162
- ];
2136
+ const results = await Promise.all(CHECKS.map((c) => c()));
2163
2137
  const hasFail = results.some((r) => r.status === "fail");
2164
2138
  const hasWarn = results.some((r) => r.status === "warn");
2165
2139
  if (opts.json) {