@topolo/cli 0.8.1 → 0.8.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 CHANGED
@@ -83,6 +83,7 @@ key returned by `topolo context ls --json`:
83
83
 
84
84
  ```bash
85
85
  topolo setup --name topolo-acme --context org:org_acme --env production
86
+ topolo doctor --context org:org_acme --env production
86
87
  ```
87
88
 
88
89
  This creates separately named Claude Code and Codex registrations using the
package/dist/index.js CHANGED
@@ -4598,9 +4598,10 @@ async function verifyMcpProtocol(command, args) {
4598
4598
  }
4599
4599
  }
4600
4600
  function registerDoctorCommand(program2) {
4601
- program2.command("doctor").description("Verify the CLI credential and bundled MCP server end to end").option("--json", "Output JSON", true).option("--no-json", "Output human-readable text").action(async (opts) => {
4601
+ program2.command("doctor").description("Verify the CLI credential and bundled MCP server end to end").option("--context <context>", "Verify one exact personal or organization context").option("--json", "Output JSON", true).option("--no-json", "Output human-readable text").action(async (opts) => {
4602
4602
  const mode = resolveOutputMode(opts.json);
4603
4603
  try {
4604
+ if (opts.context !== void 0) applyDoctorContext(opts.context);
4604
4605
  const result = await runDoctor();
4605
4606
  if (!result.ok) throw new Error(formatDoctor(result));
4606
4607
  emit(result, mode, () => formatDoctor(result));
@@ -4609,6 +4610,16 @@ function registerDoctorCommand(program2) {
4609
4610
  }
4610
4611
  });
4611
4612
  }
4613
+ function normalizeDoctorContext(value) {
4614
+ const context = value.trim();
4615
+ if (!context || /[\r\n]/.test(context)) {
4616
+ throw new Error("Context must be a non-empty single-line identifier.");
4617
+ }
4618
+ return context;
4619
+ }
4620
+ function applyDoctorContext(value, environment = process.env) {
4621
+ environment.TOPOLO_CONTEXT = normalizeDoctorContext(value);
4622
+ }
4612
4623
  function formatDoctor(result) {
4613
4624
  return result.checks.map((check) => `${check.ok ? "PASS" : "FAIL"} ${check.name}: ${check.detail}`).join("\n");
4614
4625
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@topolo/cli",
3
- "version": "0.8.1",
4
- "topoloPublishedVersion": "0.8.1",
3
+ "version": "0.8.2",
4
+ "topoloPublishedVersion": "0.8.2",
5
5
  "description": "Public command-line interface for Topolo customer organizations, developers, and agents.",
6
6
  "type": "module",
7
7
  "bin": {
@@ -65,6 +65,7 @@ uses the exact bundled MCP instead of a global binary:
65
65
 
66
66
  ```bash
67
67
  topolo setup --name topolo-acme --context org:org_acme --env production
68
+ topolo doctor --context org:org_acme --env production
68
69
  ```
69
70
 
70
71
  The context selector accepts an