{"record":{"id":"bc61b6eb66338c96","repo":"HKUDS/nanobot","slug":"cli-app-name-is-not-installed","errorCode":null,"errorMessage":"CLI app '{name}' is not installed","messagePattern":"CLI app '(.+?)' is not installed","errorType":"exception","errorClass":"CliAppError","httpStatus":null,"severity":"error","filePath":"nanobot/apps/cli/service.py","lineNumber":1444,"sourceCode":"                else ext.lstrip(\".\") or \"file\"\n            )\n            lines.append(f\"- {rel} ({kind}, {self._format_artifact_size(path)})\")\n        return lines\n\n    def run(\n        self,\n        name: str,\n        args: list[str] | None = None,\n        *,\n        json_output: bool = False,\n        working_dir: str | None = None,\n        timeout: int | None = None,\n        restrict_to_workspace: bool = False,\n    ) -> str:\n        app = self.get_app(name)\n        installed = self._load_installed()\n        if str(app[\"name\"]) not in installed:\n            raise CliAppError(f\"CLI app '{name}' is not installed\")\n        cwd = self._resolve_cwd(working_dir, restrict_to_workspace=restrict_to_workspace)\n        entry = str(installed[str(app[\"name\"])].get(\"entry_point\") or app.get(\"entry_point\") or \"\")\n        resolved = shutil.which(entry)\n        if not entry or not resolved:\n            raise CliAppError(f\"{entry or name} is not available on PATH\")\n        clean_args = [str(arg) for arg in (args or [])]\n        if json_output and \"--json\" not in clean_args:\n            clean_args = [\"--json\", *clean_args]\n        effective_timeout = max(1, min(timeout or self.runtime.run_timeout, 600))\n        artifact_snapshot = self._artifact_snapshot(cwd)\n        try:\n            result = subprocess.run(\n                [resolved, *clean_args],\n                cwd=str(cwd),\n                capture_output=True,\n                text=True,\n                encoding=\"utf-8\",\n                errors=\"replace\",","sourceCodeStart":1426,"sourceCodeEnd":1462,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/apps/cli/service.py#L1426-L1462","documentation":"Error \"CLI app '{name}' is not installed\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/apps/cli/service.py:1444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}