humanish 0.57.0 → 0.59.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/run.js CHANGED
@@ -25,6 +25,7 @@ import { bindExistingRunArtifactPaths, RUNS_RELATIVE_ROOT, isSafeRunIdSegment, p
25
25
  import { probeKeySources } from "./key-resolution.js";
26
26
  import { beginRunStatus, withRunStatusScope } from "./run-status.js";
27
27
  import { nodeSupportsTui, terminalSurfaceMessage, tuiBundleUrl } from "./tui-contract.js";
28
+ import { detectLocalAgents, localAgentDoctorMessage } from "./local-agent-cli.js";
28
29
  import { assertPreparedSelectedOutputDirectory, assertSafeOutputPathSegment, bindExistingManagedHumanishOutputDirectory, prepareContainedOutputDirectory, prepareContainedOutputDirectoryRoot, prepareContainedOutputFile, prepareSelectedOutputDirectory, readContainedRegularFile, writeContainedOutputFile, writePreparedRunLatestPointer } from "./selected-output-paths.js";
29
30
  export const RUN_BUNDLE_SCHEMA = "humanish.run-bundle.v1";
30
31
  export const SHARED_WORLD_SCHEMA = "humanish.shared-world.v1";
@@ -3056,6 +3057,14 @@ export async function doctor(cwdInput) {
3056
3057
  })
3057
3058
  };
3058
3059
  })(),
3060
+ // The operator's own signed-in coding agent, reported as a CAPABILITY and never a gate: a
3061
+ // machine with none is not broken, it just needs a provider key. This row exists because
3062
+ // "go make an API key" is where most people trying humanish stop, and a developer very often
3063
+ // already has one of these signed in.
3064
+ ...await (async () => {
3065
+ const found = await detectLocalAgents();
3066
+ return [{ name: "local agents", ok: true, message: localAgentDoctorMessage(found) }];
3067
+ })(),
3059
3068
  // Provider-key discovery (#436): which source supplies each live-run key, through the same
3060
3069
  // chain a live command resolves (env/--env-file, project overlay, vendor stores, the
3061
3070
  // humanish user store). Values never appear; sources and fill commands do.