{"record":{"id":"aa484cfeaa5d2da7","repo":"router-for-me/CLIProxyAPI","slug":"home-plugins-w","errorCode":null,"errorMessage":"home plugins: %w","messagePattern":"home plugins: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/homeplugins/sync.go","lineNumber":145,"sourceCode":"\tif cfg == nil || !cfg.Home.Enabled || !cfg.Plugins.Enabled {\n\t\treturn newSyncReport(platform), nil\n\t}\n\tplatform = NormalizePlatform(platform)\n\treport := newSyncReport(platform)\n\tif platform.GOOS == \"\" {\n\t\terrPlatform := fmt.Errorf(\"home plugins: goos is required\")\n\t\tfinishReport(&report, errPlatform)\n\t\treturn report, errPlatform\n\t}\n\tif platform.GOARCH == \"\" {\n\t\terrPlatform := fmt.Errorf(\"home plugins: goarch is required\")\n\t\tfinishReport(&report, errPlatform)\n\t\treturn report, errPlatform\n\t}\n\treport.Platform = platform\n\troot, errResolvePluginsDir := config.ResolvePluginsDir(cfg.Plugins.Dir)\n\tif errResolvePluginsDir != nil {\n\t\terrPluginsDir := fmt.Errorf(\"home plugins: %w\", errResolvePluginsDir)\n\t\tfinishReport(&report, errPluginsDir)\n\t\treturn report, errPluginsDir\n\t}\n\tclient := newPluginStoreClient(cfg)\n\tvar syncErrors []error\n\tids := make([]string, 0, len(cfg.Plugins.Configs))\n\tfor id := range cfg.Plugins.Configs {\n\t\tids = append(ids, id)\n\t}\n\tsort.Strings(ids)\n\tfor _, id := range ids {\n\t\titem := cfg.Plugins.Configs[id]\n\t\tif !pluginConfigEnabled(item) {\n\t\t\tcontinue\n\t\t}\n\t\tmanifest, okManifest, errManifest := storeManifestFromPluginConfig(id, item)\n\t\tif errManifest != nil {\n\t\t\tstatus := PluginInstallStatus{","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/router-for-me/CLIProxyAPI/blob/78f0c4079e3e6273d65d03b5549cffc898703264/internal/homeplugins/sync.go#L127-L163","documentation":"Error \"home plugins: %w\" thrown in router-for-me/CLIProxyAPI.","triggerScenarios":"Thrown at internal/homeplugins/sync.go:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the home plugins sync failure.","Retry the sync after fixing the underlying cause."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"78f0c4079e3e6273d65d03b5549cffc898703264","analyzedAt":"2026-08-15T12:26:37.444Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}