mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
* fix(projects): save new projects in config.yaml again v0.29.0 wrote every project add, edit and remove to a machine-local registry, so a project added on one machine never reached config.yaml or the other machines that share it (#792). Most people share one config.yaml and expect a new project to follow it. config.yaml is the default again. Machine-local storage stays as an explicit choice: --machine-local on add, or projects_storage: machine-local for every new project, with --shared to override it. The new share command moves a local project into config.yaml, and localize still copies one to this machine. Edits and removals stay in the layer that owns the project; removing a local copy of a config.yaml project keeps config.yaml's version unless --shared asks to remove both, so one machine cannot silently drop a project for the others. Exclusions written by v0.29.0 are left as they are. The dashboard picks storage once, in the Add project dialog, and offers the two removal choices only where both copies exist. Moving a project between layers stays a CLI command, so the detail page keeps one job. Closes #792 * fix(projects): recheck both layers after a confirmation, sync the saved key remove and share ask before taking the config lock, then compared only the merged entry after locking. A share or localize from another terminal moves a project between layers without changing that entry, so a remove confirmed for this machine's copy could then delete config.yaml's declaration for every machine, and a confirmed share could overwrite config.yaml settings changed meanwhile. The recheck now compares the owning layer and config.yaml's declaration too (ProjectLayerState). Re-adding a project that v0.29.0 hid restores config.yaml's own key, which can be spelled differently from the folder given to add (~/app versus an absolute path). add --sync looked the project up by the given spelling and failed with "project not found" after saving it; it now syncs the key that was saved. * test(projects): make the layer tests hold on Windows The mutation-sequence test looked the shared project up by filepath.Join, but the fixture spells config.yaml's key $ROOT/app; on Windows the two spellings differ, so the lookup found nothing. It now asks the config for the key it uses. The remove save-failure test blocked the local registry, but removing a config.yaml project now writes config.yaml. On Linux the registry check still failed with ENOTDIR first, which hid the mismatch; on Windows that reads as a missing file and the save went through. The test now blocks config.yaml, as the edit save-failure test does, and its hook no longer shadows the config path with the target path. --------- Co-authored-by: sim <sim@example.invalid>
42 KiB
42 KiB
| 1 | # Raw os write calls allowed outside sourcefs. See ratchet_test.go. | ||||
|---|---|---|---|---|---|
| 2 | # file | function | callee | path argument | reason |
| 3 | cmd/skillshare/completion.go | cmdCompletion | os.MkdirAll | dir | shell |
| 4 | cmd/skillshare/completion.go | cmdCompletion | os.WriteFile | destPath | shell |
| 5 | cmd/skillshare/doctor.go | checkSymlinkSupport | os.MkdirAll | testTarget | tmp |
| 6 | cmd/skillshare/doctor.go | checkSymlinkSupport | os.Remove | testLink | tmp |
| 7 | cmd/skillshare/doctor.go | checkSymlinkSupport | os.Remove | testLink | tmp |
| 8 | cmd/skillshare/doctor.go | checkSymlinkSupport | os.RemoveAll | testTarget | tmp |
| 9 | cmd/skillshare/doctor.go | checkSymlinkSupport | os.RemoveAll | testTarget | tmp |
| 10 | cmd/skillshare/doctor.go | checkTargetIssues | os.Create | testFile | target |
| 11 | cmd/skillshare/doctor.go | checkTargetIssues | os.Remove | testFile | target |
| 12 | cmd/skillshare/extras_init.go | extrasInitGlobal | os.MkdirAll | sourceDir | extras |
| 13 | cmd/skillshare/extras_init.go | extrasInitProject | os.MkdirAll | sourceDir | extras |
| 14 | cmd/skillshare/extras_remove.go | cleanEmptyExtrasDir | os.Remove | dir | extras |
| 15 | cmd/skillshare/extras_remove.go | cleanEmptyExtrasDirQuiet | os.Remove | dir | extras |
| 16 | cmd/skillshare/helpers.go | copyDir | os.MkdirAll | dstPath | source-unmigrated |
| 17 | cmd/skillshare/helpers.go | copyFile | os.OpenFile | dst | source-unmigrated |
| 18 | cmd/skillshare/helpers.go | removeEmptyDir | os.Remove | dir | extras |
| 19 | cmd/skillshare/init_apply.go | applyInitPlan | os.MkdirAll | dir | source-root |
| 20 | cmd/skillshare/init_apply.go | replaceIdenticalCopies | os.RemoveAll | dst | target |
| 21 | cmd/skillshare/init_project.go | createProjectTargetDirs | os.MkdirAll | absPath | target |
| 22 | cmd/skillshare/init_project.go | ensureProjectGitignore | os.WriteFile | gitignorePath | project |
| 23 | cmd/skillshare/init_remote.go | inspectRemote | os.MkdirTemp | tmp | |
| 24 | cmd/skillshare/init_remote.go | inspectRemote | os.RemoveAll | tmp | tmp |
| 25 | cmd/skillshare/json_output.go | suppressUIToDevnull | os.OpenFile | os.DevNull | devnull |
| 26 | cmd/skillshare/main.go | cleanupOldBinary | os.Remove | oldPath | binary |
| 27 | cmd/skillshare/new.go | cmdNew | os.MkdirAll | dirPath | source-unmigrated |
| 28 | cmd/skillshare/new.go | cmdNew | os.MkdirAll | skillDir | source-unmigrated |
| 29 | cmd/skillshare/new.go | cmdNew | os.RemoveAll | skillDir | source-unmigrated |
| 30 | cmd/skillshare/new.go | cmdNew | os.WriteFile | gitkeep | source-unmigrated |
| 31 | cmd/skillshare/new.go | cmdNew | os.WriteFile | skillFile | source-unmigrated |
| 32 | cmd/skillshare/restore_tui.go | (restoreTUIModel).startDelete | os.RemoveAll | tsDir | backup |
| 33 | cmd/skillshare/restore_tui.go | (restoreTUIModel).startDelete | os.RemoveAll | version.Dir | backup |
| 34 | cmd/skillshare/target.go | unlinkMergeMode | os.Remove | skillPath | target |
| 35 | cmd/skillshare/target.go | unlinkSymlinkMode | os.Remove | targetPath | target |
| 36 | cmd/skillshare/target_project.go | targetAddProject | os.MkdirAll | absPath | target |
| 37 | cmd/skillshare/ui.go | clearCurrentUIStateIfMatches | os.Remove | currentUIStateFile() | config |
| 38 | cmd/skillshare/ui.go | openUILog | os.MkdirAll | dir | config |
| 39 | cmd/skillshare/ui.go | stopUI | os.Remove | uiPidFile(opts) | config |
| 40 | cmd/skillshare/ui.go | stopUI | os.Remove | uiPidFile(opts) | config |
| 41 | cmd/skillshare/ui.go | stopUI | os.Remove | uiPidFile(opts) | config |
| 42 | cmd/skillshare/ui.go | writeCurrentUIState | os.MkdirAll | config.CacheDir() | config |
| 43 | cmd/skillshare/ui.go | writeCurrentUIState | os.WriteFile | currentUIStateFile() | config |
| 44 | cmd/skillshare/ui.go | writeUIPidFile | os.MkdirAll | config.CacheDir() | config |
| 45 | cmd/skillshare/ui.go | writeUIPidFile | os.WriteFile | uiPidFile(opts) | config |
| 46 | cmd/skillshare/upgrade.go | downloadAndReplace | os.Remove | archivePath | binary |
| 47 | cmd/skillshare/upgrade.go | downloadArchive | os.CreateTemp | binary | |
| 48 | cmd/skillshare/upgrade.go | downloadArchive | os.Remove | tmp.Name() | binary |
| 49 | cmd/skillshare/upgrade.go | writeBinary | os.Chmod | tmpPath | binary |
| 50 | cmd/skillshare/upgrade.go | writeBinary | os.CreateTemp | filepath.Dir(destPath) | binary |
| 51 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | oldPath | binary |
| 52 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | oldPath | binary |
| 53 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | tmpPath | binary |
| 54 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | tmpPath | binary |
| 55 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | tmpPath | binary |
| 56 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | tmpPath | binary |
| 57 | cmd/skillshare/upgrade.go | writeBinary | os.Remove | tmpPath | binary |
| 58 | cmd/skillshare/upgrade.go | writeBinary | os.Rename | destPath, oldPath | binary |
| 59 | cmd/skillshare/upgrade.go | writeBinary | os.Rename | oldPath, destPath | binary |
| 60 | cmd/skillshare/upgrade.go | writeBinary | os.Rename | tmpPath, destPath | binary |
| 61 | cmd/skillshare/upgrade.go | writeBinary | os.Rename | tmpPath, destPath | binary |
| 62 | internal/audit/patterns.go | InitRulesFile | os.MkdirAll | filepath.Dir(path) | config |
| 63 | internal/audit/patterns.go | InitRulesFile | os.WriteFile | path | config |
| 64 | internal/audit/rules_mutate.go | ResetRules | os.Remove | path | config |
| 65 | internal/audit/rules_mutate.go | writeRulesFile | os.MkdirAll | filepath.Dir(path) | config |
| 66 | internal/audit/rules_mutate.go | writeRulesFile | os.WriteFile | path | config |
| 67 | internal/backup/backup.go | copyDir | os.MkdirAll | dst | backup |
| 68 | internal/backup/backup.go | copyFile | os.OpenFile | dst | backup |
| 69 | internal/backup/backup.go | createInDir | os.Chmod | stagingPath | backup |
| 70 | internal/backup/backup.go | createInDir | os.MkdirAll | backupDir | backup |
| 71 | internal/backup/backup.go | createInDir | os.MkdirAll | timestampDir | backup |
| 72 | internal/backup/backup.go | createInDir | os.MkdirTemp | backupDir | backup |
| 73 | internal/backup/backup.go | createInDir | os.RemoveAll | stagingPath | backup |
| 74 | internal/backup/backup.go | createInDir | os.Rename | stagingPath, backupPath | backup |
| 75 | internal/backup/backup.go | removeDirIfEmpty | os.Remove | path | backup |
| 76 | internal/backup/cleanup.go | cleanupInDir | os.RemoveAll | backup.Path | backup |
| 77 | internal/backup/cleanup.go | cleanupInDir | os.RemoveAll | path | backup |
| 78 | internal/backup/cleanup.go | cleanEmptyDirs | os.Remove | subPath | backup |
| 79 | internal/backup/delete.go | DeleteInDir | os.RemoveAll | path | backup |
| 80 | internal/backup/restore.go | RestoreToPath | os.Remove | destPath | target |
| 81 | internal/backup/restore.go | RestoreToPath | os.RemoveAll | destPath | target |
| 82 | internal/check/checktest/fixture.go | Seed | os.MkdirAll | dir | test-helper |
| 83 | internal/check/tree_check.go | FetchRemoteTreeHashesForRef | os.MkdirTemp | tmp | |
| 84 | internal/check/tree_check.go | FetchRemoteTreeHashesForRef | os.RemoveAll | tmpDir | tmp |
| 85 | internal/config/config.go | decodeConfig | os.Rename | tmpPath, dest | config |
| 86 | internal/config/config.go | decodeConfig | os.WriteFile | tmpPath | config |
| 87 | internal/config/config.go | migrateSkillsToRegistry | os.WriteFile | configPath | config |
| 88 | internal/config/extras_migrate.go | MigrateExtrasDir | os.Rename | oldPath, newPath | extras |
| 89 | internal/config/migrate.go | migrateDir | os.MkdirAll | filepath.Dir(newPath) | source-root |
| 90 | internal/config/migrate.go | migrateDir | os.Rename | oldPath, newPath | source-root |
| 91 | internal/config/project.go | (*ProjectConfig).SaveIn | os.MkdirAll | dir | config |
| 92 | internal/config/project.go | (*ProjectConfig).SaveIn | os.WriteFile | path | config |
| 93 | internal/config/project.go | LoadProject | os.Chmod | f.Name() | config |
| 94 | internal/config/project.go | LoadProject | os.CreateTemp | filepath.Dir(dest) | config |
| 95 | internal/config/project.go | LoadProject | os.Remove | f.Name() | config |
| 96 | internal/config/project.go | LoadProject | os.Rename | f.Name(), dest | config |
| 97 | internal/config/registry.go | (*Registry).Save | os.MkdirAll | dir | source-unmigrated |
| 98 | internal/config/registry.go | (*Registry).Save | os.WriteFile | path | source-unmigrated |
| 99 | internal/config/registry.go | MigrateRegistryToSource | os.Remove | oldPath | source-unmigrated |
| 100 | internal/config/registry.go | MigrateRegistryToSource | os.WriteFile | newPath | source-unmigrated |
| 101 | internal/config/save_candidate.go | (*SaveCandidate).write | os.MkdirAll | dir | config |
| 102 | internal/config/save_candidate.go | (*SaveCandidate).write | os.OpenFile | tmpPath | config |
| 103 | internal/config/save_candidate.go | (*SaveCandidate).write | os.Remove | tmp.Name() | config |
| 104 | internal/config/save_candidate.go | (*SaveCandidate).write | os.Rename | tmp.Name(), dest | config |
| 105 | internal/git/info.go | resolveMetadataConflicts | os.WriteFile | filepath.Join(dir, path) | source-unmigrated |
| 106 | internal/git/scope.go | DisableNestedRepo | os.Rename | gitDir, disabled | source-unmigrated |
| 107 | internal/git/scope.go | InitScopeRepo | os.MkdirAll | dir | source-unmigrated |
| 108 | internal/git/scope.go | WriteScopeGitignore | os.WriteFile | gitignore | source-unmigrated |
| 109 | internal/git/scope.go | WriteScopeGitignore | os.WriteFile | gitignore | source-unmigrated |
| 110 | internal/git/scope.go | appendGitignoreLine | os.WriteFile | gitignore | source-unmigrated |
| 111 | internal/git/scope.go | ensureGitignoreEntry | os.WriteFile | gitignore | source-unmigrated |
| 112 | internal/git/scope.go | ensureGitignoreEntry | os.WriteFile | gitignore | source-unmigrated |
| 113 | internal/git/scope.go | removeCheckedOut | os.Remove | path | source-unmigrated |
| 114 | internal/git/scope.go | removeCheckedOut | os.RemoveAll | path | source-unmigrated |
| 115 | internal/git/scope.go | snapshotConfig | os.Chmod | path | source-unmigrated |
| 116 | internal/git/scope.go | snapshotConfig | os.Symlink | target, path | source-unmigrated |
| 117 | internal/git/scope.go | snapshotConfig | os.WriteFile | path | source-unmigrated |
| 118 | internal/hooks/apply.go | (*Service).applyScoped | os.Remove | f.path | plugin |
| 119 | internal/hooks/apply.go | (*Service).applyScoped | os.Remove | s.journalPath() | plugin |
| 120 | internal/hooks/apply.go | (*Service).applyScoped | os.Remove | s.journalPath() | plugin |
| 121 | internal/hooks/apply.go | (*Service).pruneBackups | os.Remove | filepath.Join(dir, name) | plugin |
| 122 | internal/hooks/apply.go | (*Service).recoverPending | os.Remove | s.journalPath() | plugin |
| 123 | internal/hooks/apply.go | atomicWrite | os.CreateTemp | filepath.Dir(path) | plugin |
| 124 | internal/hooks/apply.go | atomicWrite | os.MkdirAll | filepath.Dir(path) | plugin |
| 125 | internal/hooks/apply.go | atomicWrite | os.Remove | file.Name() | plugin |
| 126 | internal/hooks/apply.go | atomicWrite | os.Rename | file.Name(), path | plugin |
| 127 | internal/hooks/apply.go | pruneCreatedDirs | os.Remove | dir | plugin |
| 128 | internal/hooks/apply.go | pruneEmptyDirs | os.Remove | dir | plugin |
| 129 | internal/hooks/git_ops.go | (*filePlan).prepareGitWrite | os.CreateTemp | filepath.Dir(f.path) | plugin |
| 130 | internal/hooks/git_ops.go | (*filePlan).prepareGitWrite | os.MkdirAll | filepath.Dir(f.path) | plugin |
| 131 | internal/hooks/git_ops.go | (*filePlan).prepareGitWrite | os.Remove | f.path | plugin |
| 132 | internal/hooks/git_ops.go | (*filePlan).prepareGitWrite | os.Remove | stagePath | plugin |
| 133 | internal/hooks/service.go | (*Service).lock | os.MkdirAll | s.stateDir() | plugin |
| 134 | internal/hub/drafts.go | (DraftStore).Delete | os.Remove | path | config |
| 135 | internal/hub/drafts.go | (DraftStore).locked | os.MkdirAll | s.Dir | config |
| 136 | internal/hub/drafts.go | (DraftStore).persist | os.CreateTemp | s.Dir | config |
| 137 | internal/hub/drafts.go | (DraftStore).persist | os.Remove | tmp.Name() | config |
| 138 | internal/hub/drafts.go | (DraftStore).persist | os.Rename | tmp.Name(), path | config |
| 139 | internal/hub/index.go | WriteIndex | os.MkdirAll | filepath.Dir(path) | source-unmigrated |
| 140 | internal/hub/index.go | WriteIndex | os.WriteFile | path | source-unmigrated |
| 141 | internal/install/copy.go | copyDirExcluding | os.MkdirAll | dstPath | source-unmigrated |
| 142 | internal/install/copy.go | copyFile | os.OpenFile | dst | source-unmigrated |
| 143 | internal/install/git_candidate.go | (*GitUpdateCandidate).Close | os.RemoveAll | c.tempDir | tmp |
| 144 | internal/install/git_candidate.go | StageGitUpdate | os.MkdirAll | filepath.Dir(dst) | tmp |
| 145 | internal/install/git_candidate.go | StageGitUpdate | os.MkdirTemp | tmp | |
| 146 | internal/install/git_candidate.go | StageGitUpdate | os.Remove | dst | tmp |
| 147 | internal/install/git_candidate.go | StageGitUpdate | os.Symlink | target, dst | tmp |
| 148 | internal/install/gitea_download.go | cnbWriteContentItem | os.MkdirAll | target | clone |
| 149 | internal/install/gitea_download.go | cnbWriteContentItem | os.MkdirAll | target | clone |
| 150 | internal/install/gitea_download.go | downloadCNBDir | os.MkdirAll | destDir | clone |
| 151 | internal/install/gitea_download.go | downloadGiteaDir | os.MkdirAll | destDir | clone |
| 152 | internal/install/gitea_download.go | giteaDownloadDirRecursive | os.MkdirAll | childDir | clone |
| 153 | internal/install/github_download.go | downloadDirRecursive | os.MkdirAll | childDir | clone |
| 154 | internal/install/github_download.go | downloadGitHubDirWithAPIBase | os.MkdirAll | destDir | clone |
| 155 | internal/install/github_download.go | writeDownloadedFile | os.MkdirAll | filepath.Dir(destPath) | clone |
| 156 | internal/install/github_download.go | writeDownloadedFile | os.OpenFile | destPath | clone |
| 157 | internal/install/gitignore.go | writeGitignoreLines | os.WriteFile | path | source-unmigrated |
| 158 | internal/install/install.go | <package> | os.RemoveAll | <ref> | source-unmigrated |
| 159 | internal/install/install.go | <package> | os.RemoveAll | <ref> | source-unmigrated |
| 160 | internal/install/install_apply.go | UpdateAgentFromDiscovery | os.MkdirAll | filepath.Dir(destFile) | agents |
| 161 | internal/install/install_apply.go | UpdateAgentFromDiscovery | os.MkdirTemp | tmp | |
| 162 | internal/install/install_apply.go | UpdateAgentFromDiscovery | os.RemoveAll | tempDir | tmp |
| 163 | internal/install/install_apply.go | UpdateAgentFromDiscovery | os.Rename | tempFile, destFile | agents |
| 164 | internal/install/install_apply.go | UpdateAgentFromDiscovery | os.WriteFile | destFile | agents |
| 165 | internal/install/install_apply.go | installAgentFromDiscoveryInternal | os.MkdirAll | filepath.Dir(destFile) | agents |
| 166 | internal/install/install_apply.go | installAgentFromDiscoveryInternal | os.WriteFile | destFile | agents |
| 167 | internal/install/install_apply.go | installFromDiscoveryInternal | os.MkdirAll | workDest | source-unmigrated |
| 168 | internal/install/install_apply.go | installFromDiscoveryInternal | os.MkdirTemp | tmp | |
| 169 | internal/install/install_apply.go | installFromDiscoveryInternal | os.RemoveAll | tempDir | tmp |
| 170 | internal/install/install_apply.go | installFromGitSubdir | os.MkdirTemp | tmp | |
| 171 | internal/install/install_apply.go | installFromGitSubdir | os.RemoveAll | tempRepoPath | tmp |
| 172 | internal/install/install_apply.go | installFromGitSubdir | os.RemoveAll | tempRepoPath | tmp |
| 173 | internal/install/install_apply.go | installFromLocal | os.MkdirAll | destPath | source-unmigrated |
| 174 | internal/install/install_audit.go | cleanEmptyInstallParents | os.Remove | dir | agents |
| 175 | internal/install/install_discovery.go | discoverFromGitSubdirWithProgressImpl | os.MkdirTemp | tmp | |
| 176 | internal/install/install_discovery.go | discoverFromGitSubdirWithProgressImpl | os.RemoveAll | repoPath | tmp |
| 177 | internal/install/install_discovery.go | discoverFromGitSubdirWithProgressImpl | os.RemoveAll | repoPath | tmp |
| 178 | internal/install/install_discovery.go | discoverFromGitSubdirWithProgressImpl | os.RemoveAll | tempDir | tmp |
| 179 | internal/install/install_discovery.go | discoverFromGitSubdirWithProgressImpl | os.RemoveAll | tempDir | tmp |
| 180 | internal/install/install_discovery.go | discoverFromGitWithProgressImpl | os.MkdirTemp | tmp | |
| 181 | internal/install/install_git.go | ShallowCloneToTemp | os.MkdirTemp | tmp | |
| 182 | internal/install/install_update.go | handleUpdate | os.MkdirTemp | tmp | |
| 183 | internal/install/install_update.go | handleUpdate | os.RemoveAll | tempDir | tmp |
| 184 | internal/install/install_update.go | updateRepoRootOrchestrator | os.MkdirTemp | tmp | |
| 185 | internal/install/install_update.go | updateRepoRootOrchestrator | os.RemoveAll | tempDir | tmp |
| 186 | internal/install/local_changes.go | LocalChanges | os.MkdirTemp | tmp | |
| 187 | internal/install/local_changes.go | LocalChanges | os.RemoveAll | tmp | tmp |
| 188 | internal/install/lock.go | (*Lock).Save | os.Remove | path | project |
| 189 | internal/install/lock.go | (*Lock).Save | os.WriteFile | path | project |
| 190 | internal/install/meta.go | WriteMeta | os.WriteFile | metaPath | source-unmigrated |
| 191 | internal/install/metadata.go | (*MetadataStore).Save | os.CreateTemp | dir | source-unmigrated |
| 192 | internal/install/metadata.go | (*MetadataStore).Save | os.MkdirAll | dir | source-unmigrated |
| 193 | internal/install/metadata.go | (*MetadataStore).Save | os.Remove | tmpName | source-unmigrated |
| 194 | internal/install/metadata.go | (*MetadataStore).Save | os.Remove | tmpName | source-unmigrated |
| 195 | internal/install/metadata.go | (*MetadataStore).Save | os.Remove | tmpName | source-unmigrated |
| 196 | internal/install/metadata.go | (*MetadataStore).Save | os.Remove | tmpName | source-unmigrated |
| 197 | internal/install/metadata.go | (*MetadataStore).Save | os.Rename | tmpName, target | source-unmigrated |
| 198 | internal/install/metadata_migrate.go | walkAgentSidecars | os.Remove | sidecarPath | agents |
| 199 | internal/install/metadata_migrate.go | walkSkillDir | os.Remove | sidecarPath | source-unmigrated |
| 200 | internal/instructions/convert.go | Apply | os.Remove | c.Path | plugin |
| 201 | internal/instructions/convert.go | WriteFile | os.MkdirAll | filepath.Dir(path) | plugin |
| 202 | internal/instructions/convert.go | WriteFile | os.WriteFile | path | plugin |
| 203 | internal/instructions/project.go | ApplyShim | os.MkdirAll | filepath.Dir(own) | plugin |
| 204 | internal/instructions/project.go | ApplyShim | os.Symlink | rel, own | plugin |
| 205 | internal/mcp/backups.go | (*Service).pruneBackups | os.Remove | filepath.Join(dir, name) | plugin |
| 206 | internal/mcp/service.go | (*Service).lock | os.MkdirAll | dir | plugin |
| 207 | internal/mcp/write.go | (*Service).applyScoped | os.Remove | journalPath | plugin |
| 208 | internal/mcp/write.go | (*Service).applyScoped | os.Remove | journalPath | plugin |
| 209 | internal/mcp/write.go | atomicWrite | os.CreateTemp | filepath.Dir(path) | plugin |
| 210 | internal/mcp/write.go | atomicWrite | os.MkdirAll | filepath.Dir(path) | plugin |
| 211 | internal/mcp/write.go | atomicWrite | os.Remove | file.Name() | plugin |
| 212 | internal/mcp/write.go | atomicWrite | os.Rename | file.Name(), path | plugin |
| 213 | internal/memory/commit.go | commitNote | os.Rename | draft, path | extras |
| 214 | internal/memory/commit.go | createExclusive | os.OpenFile | path | extras |
| 215 | internal/memory/commit.go | createExclusive | os.Remove | path | extras |
| 216 | internal/memory/commit.go | removeNote | os.Remove | path | extras |
| 217 | internal/memory/guidance_plan.go | commitGuidanceChange | os.MkdirAll | filepath.Dir(c.Path) | plugin |
| 218 | internal/memory/move.go | Move | os.MkdirAll | filepath.Dir(destination) | extras |
| 219 | internal/memory/move.go | Move | os.OpenFile | destination | extras |
| 220 | internal/memory/move.go | Move | os.Remove | destination | extras |
| 221 | internal/memory/move.go | Move | os.Remove | source | extras |
| 222 | internal/memory/store.go | Write | os.CreateTemp | filepath.Dir(abs) | extras |
| 223 | internal/memory/store.go | Write | os.MkdirAll | filepath.Dir(abs) | extras |
| 224 | internal/memory/store.go | Write | os.Remove | tmp.Name() | extras |
| 225 | internal/oplog/oplog.go | Clear | os.Truncate | path | config |
| 226 | internal/oplog/oplog.go | Write | os.MkdirAll | dir | config |
| 227 | internal/oplog/oplog.go | Write | os.OpenFile | filepath.Join(dir, filename) | config |
| 228 | internal/oplog/oplog.go | rewriteEntries | os.Create | tmp | config |
| 229 | internal/oplog/oplog.go | rewriteEntries | os.Remove | tmp | config |
| 230 | internal/oplog/oplog.go | rewriteEntries | os.Remove | tmp | config |
| 231 | internal/oplog/oplog.go | rewriteEntries | os.Remove | tmp | config |
| 232 | internal/oplog/oplog.go | rewriteEntries | os.Remove | tmp | config |
| 233 | internal/oplog/oplog.go | rewriteEntries | os.Rename | tmp, path | config |
| 234 | internal/plugin/apply.go | (*Service).applyChange | os.RemoveAll | backup | plugin |
| 235 | internal/plugin/apply.go | (*Service).applyChange | os.RemoveAll | failed | plugin |
| 236 | internal/plugin/apply.go | (*Service).applyChange | os.Rename | backup, path | plugin |
| 237 | internal/plugin/apply.go | (*Service).applyChange | os.Rename | failed, path | plugin |
| 238 | internal/plugin/apply.go | (*Service).applyChange | os.Rename | path, failed | plugin |
| 239 | internal/plugin/apply.go | (*Service).materialize | os.MkdirAll | filepath.Dir(p) | plugin |
| 240 | internal/plugin/apply.go | (*Service).materialize | os.MkdirAll | parent | plugin |
| 241 | internal/plugin/apply.go | (*Service).materialize | os.MkdirTemp | parent | plugin |
| 242 | internal/plugin/apply.go | (*Service).materialize | os.RemoveAll | temp | plugin |
| 243 | internal/plugin/apply.go | (*Service).materialize | os.Rename | backup, expected | plugin |
| 244 | internal/plugin/apply.go | (*Service).materialize | os.Rename | expected, backup | plugin |
| 245 | internal/plugin/apply.go | (*Service).materialize | os.Rename | temp, expected | plugin |
| 246 | internal/plugin/apply.go | (*Service).materialize | os.WriteFile | p | plugin |
| 247 | internal/plugin/config.go | (*Service).save | os.CreateTemp | filepath.Dir(path) | plugin |
| 248 | internal/plugin/config.go | (*Service).save | os.MkdirAll | filepath.Dir(path) | plugin |
| 249 | internal/plugin/config.go | (*Service).save | os.Remove | f.Name() | plugin |
| 250 | internal/plugin/config.go | (*Service).save | os.Rename | f.Name(), path | plugin |
| 251 | internal/plugin/lifecycle.go | (*Service).Lock | os.MkdirAll | filepath.Dir(path) | config |
| 252 | internal/plugin/lifecycle.go | (*Service).Lock | os.OpenFile | path | config |
| 253 | internal/plugin/lifecycle.go | (*Service).Lock | os.Remove | path | config |
| 254 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.MkdirAll | root | plugin |
| 255 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.MkdirTemp | root | plugin |
| 256 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.Remove | marker | plugin |
| 257 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.RemoveAll | backup | plugin |
| 258 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.RemoveAll | dest | plugin |
| 259 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.RemoveAll | temp | plugin |
| 260 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.Rename | backup, dest | plugin |
| 261 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.Rename | dest, backup | plugin |
| 262 | internal/plugin/local_bundle.go | (*Service).applyLocal | os.Rename | temp, dest | plugin |
| 263 | internal/plugin/local_bundle.go | atomicNativeWrite | os.CreateTemp | filepath.Dir(path) | plugin |
| 264 | internal/plugin/local_bundle.go | atomicNativeWrite | os.MkdirAll | filepath.Dir(path) | plugin |
| 265 | internal/plugin/local_bundle.go | atomicNativeWrite | os.Remove | f.Name() | plugin |
| 266 | internal/plugin/local_bundle.go | atomicNativeWrite | os.Rename | f.Name(), path | plugin |
| 267 | internal/plugin/omp_extensions_write.go | (*Service).ApplyOMPExtensions | os.MkdirAll | parent | plugin |
| 268 | internal/plugin/omp_extensions_yaml.go | (*Service).ompBackup | os.MkdirAll | dir | plugin |
| 269 | internal/plugin/package_config.go | (*Service).applyOpenCode | os.MkdirAll | filepath.Dir(path) | plugin |
| 270 | internal/plugin/pi_extensions_lock.go | (*piNativeLock).release | os.Remove | l.path | plugin |
| 271 | internal/plugin/pi_extensions_lock.go | acquirePiNativeLock | os.Mkdir | path | plugin |
| 272 | internal/plugin/pi_extensions_lock.go | acquirePiNativeLock | os.Mkdir | path | plugin |
| 273 | internal/plugin/pi_extensions_write.go | (*Service).piBackup | os.MkdirAll | dir | plugin |
| 274 | internal/plugin/pi_extensions_write.go | (*Service).piBackup | os.Remove | record | plugin |
| 275 | internal/plugin/pi_registration_private_other.go | makePiRegistrationDir | os.MkdirAll | path | plugin |
| 276 | internal/plugin/pi_registration_private_windows.go | makePiRegistrationDir | os.MkdirAll | filepath.Dir(path) | plugin |
| 277 | internal/plugin/source.go | acquireRef | os.MkdirTemp | plugin | |
| 278 | internal/plugin/source.go | acquireRef | os.RemoveAll | root | plugin |
| 279 | internal/plugin/source.go | copyTree | os.MkdirAll | to | plugin |
| 280 | internal/plugin/source.go | copyTree | os.Symlink | link, to | plugin |
| 281 | internal/plugin/source.go | copyTree | os.WriteFile | to | plugin |
| 282 | internal/projects/lock.go | lockPath | os.MkdirAll | dir | config |
| 283 | internal/resource/agent.go | (AgentKind).CreateLink | os.Symlink | src, dst | target |
| 284 | internal/resource/skill.go | (SkillKind).CreateLink | os.Symlink | src, dst | target |
| 285 | internal/search/index.go | readIndexFromGitClone | os.RemoveAll | dir | tmp |
| 286 | internal/search/preview.go | fetchViaClone | os.RemoveAll | dir | tmp |
| 287 | internal/server/handler_agentignore.go | (*Server).handlePutAgentignore | os.MkdirAll | resolved | agents |
| 288 | internal/server/handler_agentignore.go | (*Server).handlePutAgentignore | os.Remove | ignorePath | agents |
| 289 | internal/server/handler_agentignore.go | (*Server).handlePutAgentignore | os.WriteFile | ignorePath | agents |
| 290 | internal/server/handler_audit.go | (*Server).handlePutAuditRules | os.MkdirAll | filepath.Dir(path) | config |
| 291 | internal/server/handler_audit.go | (*Server).handlePutAuditRules | os.WriteFile | path | config |
| 292 | internal/server/handler_config.go | (*Server).handlePutConfig | os.WriteFile | path | config |
| 293 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.MkdirAll | dirPath | source-unmigrated |
| 294 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.MkdirAll | skillDir | source-unmigrated |
| 295 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.RemoveAll | skillDir | source-unmigrated |
| 296 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.RemoveAll | skillDir | source-unmigrated |
| 297 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.RemoveAll | skillDir | source-unmigrated |
| 298 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.WriteFile | gitkeep | source-unmigrated |
| 299 | internal/server/handler_create_skill.go | (*Server).handleCreateSkill | os.WriteFile | skillFile | source-unmigrated |
| 300 | internal/server/handler_extensions.go | (*Server).handleExtensionsOpen | os.MkdirAll | dir | plugin |
| 301 | internal/server/handler_extensions.go | (*Server).handleExtensionsRemove | os.RemoveAll | path | plugin |
| 302 | internal/server/handler_extras.go | (*Server).handleExtrasCreate | os.MkdirAll | sourceDir | extras |
| 303 | internal/server/handler_skill_content.go | writeFileAtomic | os.CreateTemp | dir | agents |
| 304 | internal/server/handler_skill_content.go | writeFileAtomic | os.Remove | tmpPath | agents |
| 305 | internal/server/handler_skill_content.go | writeFileAtomic | os.Rename | tmpPath, path | agents |
| 306 | internal/server/handler_skillignore.go | (*Server).handlePutSkillignore | os.Remove | ignorePath | source-unmigrated |
| 307 | internal/server/handler_skillignore.go | (*Server).handlePutSkillignore | os.WriteFile | ignorePath | source-unmigrated |
| 308 | internal/skillignore/write.go | AddPattern | os.MkdirAll | filepath.Dir(filePath) | source-unmigrated |
| 309 | internal/skillignore/write.go | AddPattern | os.WriteFile | filePath | source-unmigrated |
| 310 | internal/skillignore/write.go | RemovePattern | os.WriteFile | filePath | source-unmigrated |
| 311 | internal/skillserve/edit.go | (*service).check | os.MkdirTemp | tmp | |
| 312 | internal/skillserve/edit.go | (*service).check | os.RemoveAll | tmp | tmp |
| 313 | internal/skillserve/edit.go | writeCopy | os.MkdirAll | filepath.Dir(path) | tmp |
| 314 | internal/skillserve/edit.go | writeCopy | os.WriteFile | path | tmp |
| 315 | internal/sourcefs/sourcefs.go | (*Root).MoveIn | os.Rename | src, filepath.Join(r.dir, name) | sourcefs |
| 316 | internal/sourcefs/sourcefs.go | (*Root).moveInAnchored | os.RemoveAll | src | sourcefs |
| 317 | internal/sourcefs/sourcefs.go | Create | os.MkdirAll | dir | sourcefs |
| 318 | internal/sync/agent_sync.go | PruneOrphanAgentLinks | os.Remove | filepath.Join(targetDir, name) | target |
| 319 | internal/sync/agent_sync.go | PullAgent | os.RemoveAll | destPath | agents |
| 320 | internal/sync/agent_sync.go | PullAgent | os.WriteFile | destPath | agents |
| 321 | internal/sync/agent_sync.go | PullAgents | os.MkdirAll | sourcePath | agents |
| 322 | internal/sync/agent_sync.go | SyncAgentsTransform | os.MkdirAll | targetDir | target |
| 323 | internal/sync/agent_sync.go | SyncAgentsTransform | os.Remove | targetDir | target |
| 324 | internal/sync/agent_sync.go | SyncAgentsTransform | os.Remove | tgtFile | target |
| 325 | internal/sync/agent_sync.go | SyncAgentsTransform | os.Remove | tgtFile | target |
| 326 | internal/sync/agent_sync.go | SyncAgentsTransform | os.WriteFile | tgtFile | target |
| 327 | internal/sync/agent_sync.go | syncAgentsCopy | os.MkdirAll | targetDir | target |
| 328 | internal/sync/agent_sync.go | syncAgentsCopy | os.Remove | targetPath | target |
| 329 | internal/sync/agent_sync.go | syncAgentsCopy | os.WriteFile | targetPath | target |
| 330 | internal/sync/agent_sync.go | syncAgentsCopy | os.WriteFile | targetPath | target |
| 331 | internal/sync/agent_sync.go | syncAgentsCopy | os.WriteFile | targetPath | target |
| 332 | internal/sync/agent_sync.go | syncAgentsMerge | os.MkdirAll | targetDir | target |
| 333 | internal/sync/agent_sync.go | syncAgentsMerge | os.Remove | targetPath | target |
| 334 | internal/sync/agent_sync.go | syncAgentsMerge | os.Remove | targetPath | target |
| 335 | internal/sync/agent_sync.go | syncAgentsMergeCopy | os.MkdirAll | targetDir | target |
| 336 | internal/sync/agent_sync.go | syncAgentsMergeCopy | os.Remove | targetPath | target |
| 337 | internal/sync/agent_sync.go | syncAgentsSymlink | os.MkdirAll | filepath.Dir(targetDir) | target |
| 338 | internal/sync/agent_sync.go | syncAgentsSymlink | os.Remove | targetDir | target |
| 339 | internal/sync/agent_sync.go | syncAgentsSymlink | os.RemoveAll | targetDir | target |
| 340 | internal/sync/copy.go | pruneOrphanCopiesWithConfig | os.RemoveAll | entryPath | target |
| 341 | internal/sync/copy.go | SyncTargetCopyWithSkillsOptions | os.Remove | targetSkillPath | target |
| 342 | internal/sync/copy.go | SyncTargetCopyWithSkillsOptions | os.RemoveAll | targetSkillPath | target |
| 343 | internal/sync/copy.go | SyncTargetCopyWithSkillsOptions | os.RemoveAll | targetSkillPath | target |
| 344 | internal/sync/copy.go | copySkillToTarget | os.Chmod | skillFile | target |
| 345 | internal/sync/copy.go | copySkillToTarget | os.Chmod | skillFile | target |
| 346 | internal/sync/copy.go | copySkillToTarget | os.RemoveAll | dst | target |
| 347 | internal/sync/detach_target.go | <package> | os.Remove | <ref> | target |
| 348 | internal/sync/detach_target.go | copySkillDir | os.MkdirAll | dstPath | target |
| 349 | internal/sync/detach_target.go | copySkillDir | os.OpenFile | dstPath | target |
| 350 | internal/sync/extension.go | runExtensionFile | os.MkdirAll | filepath.Dir(tgtFile) | target |
| 351 | internal/sync/extension.go | runExtensionFile | os.WriteFile | tgtFile | target |
| 352 | internal/sync/extras.go | CollectExtraFiles | os.MkdirAll | filepath.Dir(destPath) | extras |
| 353 | internal/sync/extras.go | CollectExtraFiles | os.MkdirAll | sourceDir | extras |
| 354 | internal/sync/extras.go | CollectExtraFiles | os.Remove | path | extras |
| 355 | internal/sync/extras.go | CollectExtraFiles | os.WriteFile | destPath | extras |
| 356 | internal/sync/extras.go | cleanEmptyParents | os.Remove | dir | target |
| 357 | internal/sync/extras.go | pruneExtraManagedFiles | os.Remove | path | target |
| 358 | internal/sync/extras.go | pruneExtraOrphans | os.Remove | path | target |
| 359 | internal/sync/extras.go | pruneExtraSymlinkTarget | os.Remove | targetPath | target |
| 360 | internal/sync/extras.go | syncExtraSymlinkMode | os.MkdirAll | filepath.Dir(targetPath) | target |
| 361 | internal/sync/extras.go | syncExtraSymlinkMode | os.Remove | targetPath | target |
| 362 | internal/sync/extras.go | syncExtraSymlinkMode | os.RemoveAll | targetPath | target |
| 363 | internal/sync/extras.go | syncExtraTransform | os.MkdirAll | filepath.Dir(tgtFile) | target |
| 364 | internal/sync/extras.go | syncExtraTransform | os.Remove | tgtFile | target |
| 365 | internal/sync/extras.go | syncExtraTransform | os.RemoveAll | tgtFile | target |
| 366 | internal/sync/extras.go | syncExtraTransform | os.WriteFile | tgtFile | target |
| 367 | internal/sync/extras.go | syncOneExtraFile | os.MkdirAll | filepath.Dir(tgtFile) | target |
| 368 | internal/sync/extras.go | syncOneExtraFile | os.Remove | tgtFile | target |
| 369 | internal/sync/extras_backup.go | backupExtraDrift | os.MkdirAll | dir | backup |
| 370 | internal/sync/extras_backup.go | backupExtraDrift | os.WriteFile | filepath.Join(dir, name) | backup |
| 371 | internal/sync/extras_backup.go | clearExtraAttach | os.Remove | filepath.Join(dir, name) | backup |
| 372 | internal/sync/extras_backup.go | clearExtraImportBase | os.Remove | filepath.Join(extraBackupDir(path), extraImportBase) | backup |
| 373 | internal/sync/extras_backup.go | clearExtraWritten | os.Remove | filepath.Join(extraBackupDir(path), extraWritten) | backup |
| 374 | internal/sync/extras_backup.go | pruneExtraBackups | os.Remove | filepath.Join(dir, names[0]) | backup |
| 375 | internal/sync/extras_backup.go | putBackExtraRestorePoint | os.Symlink | string(dest), path | backup |
| 376 | internal/sync/extras_backup.go | putBackExtraRestorePoint | os.WriteFile | path | backup |
| 377 | internal/sync/extras_backup.go | recordExtraAttach | os.MkdirAll | dir | backup |
| 378 | internal/sync/extras_backup.go | recordExtraAttach | os.WriteFile | filepath.Join(dir, name) | backup |
| 379 | internal/sync/extras_backup.go | recordExtraImportBase | os.MkdirAll | dir | backup |
| 380 | internal/sync/extras_backup.go | recordExtraImportBase | os.WriteFile | filepath.Join(dir, extraImportBase) | backup |
| 381 | internal/sync/extras_backup.go | recordExtraWritten | os.WriteFile | filepath.Join(extraBackupDir(path), extraWritten) | backup |
| 382 | internal/sync/extras_backup.go | storeExtraBackup | os.MkdirAll | dir | backup |
| 383 | internal/sync/extras_backup.go | storeExtraBackup | os.WriteFile | filepath.Join(dir, name) | backup |
| 384 | internal/sync/extras_block.go | applyExtraBlock | os.MkdirAll | filepath.Dir(f.Target) | target |
| 385 | internal/sync/extras_block.go | applyExtraBlock | os.Remove | f.Target | target |
| 386 | internal/sync/extras_block.go | applyExtraBlock | os.WriteFile | f.Target | target |
| 387 | internal/sync/extras_block.go | collectExtraBlock | os.WriteFile | f.Source | extras |
| 388 | internal/sync/extras_block.go | restoreExtraBlock | os.Remove | f.Target | target |
| 389 | internal/sync/extras_block.go | restoreExtraBlock | os.WriteFile | f.Target | target |
| 390 | internal/sync/extras_file.go | CollectBackExtraFile | os.MkdirAll | filepath.Dir(f.Source) | extras |
| 391 | internal/sync/extras_file.go | CollectBackExtraFile | os.WriteFile | f.Source | extras |
| 392 | internal/sync/extras_file.go | RestoreExtraTarget | os.Remove | f.Target | target |
| 393 | internal/sync/extras_file.go | RestoreExtraTarget | os.Remove | f.Target | target |
| 394 | internal/sync/extras_file.go | replaceDriftedTarget | os.Remove | f.Target | target |
| 395 | internal/sync/extras_file.go | restoreExtraImport | os.Remove | f.Target | target |
| 396 | internal/sync/extras_file.go | restoreExtraImport | os.Remove | f.Target | target |
| 397 | internal/sync/extras_file.go | restoreExtraImport | os.WriteFile | f.Target | target |
| 398 | internal/sync/extras_file.go | syncExtraFileReplace | os.MkdirAll | filepath.Dir(f.Target) | target |
| 399 | internal/sync/extras_file.go | syncExtraFileReplace | os.Remove | f.Target | target |
| 400 | internal/sync/extras_file.go | syncExtraFileReplace | os.Remove | f.Target | target |
| 401 | internal/sync/extras_file.go | syncExtraFileReplace | os.WriteFile | f.Target | target |
| 402 | internal/sync/extras_file.go | syncExtraImport | os.MkdirAll | filepath.Dir(f.Target) | target |
| 403 | internal/sync/extras_file.go | syncExtraImport | os.Remove | f.Target | target |
| 404 | internal/sync/extras_file.go | syncExtraImport | os.WriteFile | f.Target | target |
| 405 | internal/sync/file_backups.go | RestoreFileBackup | os.MkdirAll | filepath.Dir(path) | target |
| 406 | internal/sync/file_backups.go | RestoreFileBackup | os.MkdirAll | filepath.Dir(path) | target |
| 407 | internal/sync/file_backups.go | RestoreFileBackup | os.Remove | path | target |
| 408 | internal/sync/file_backups.go | RestoreFileBackup | os.Remove | path | target |
| 409 | internal/sync/file_backups.go | RestoreFileBackup | os.Remove | path | target |
| 410 | internal/sync/file_backups.go | RestoreFileBackup | os.Symlink | v.LinkTo, path | target |
| 411 | internal/sync/file_backups.go | RestoreFileBackup | os.WriteFile | path | target |
| 412 | internal/sync/filelink.go | (*copyTracker).pruneOrphans | os.Remove | filepath.Join(t.dir, rel) | target |
| 413 | internal/sync/manifest.go | RemoveManifest | os.Remove | filepath.Join(targetPath, ManifestFile) | target |
| 414 | internal/sync/manifest.go | WriteManifest | os.WriteFile | filepath.Join(targetPath, ManifestFile) | target |
| 415 | internal/sync/pull.go | PullSkill | os.RemoveAll | destPath | source-unmigrated |
| 416 | internal/sync/relative.go | reformatLink | os.Remove | linkPath | target |
| 417 | internal/sync/relative.go | reformatLink | os.Remove | tmpPath | target |
| 418 | internal/sync/relative.go | reformatLink | os.Remove | tmpPath | target |
| 419 | internal/sync/relative.go | reformatLink | os.Rename | tmpPath, linkPath | target |
| 420 | internal/sync/skill_run.go | SyncSkillTarget | os.Remove | sc.Path | target |
| 421 | internal/sync/skills_off.go | DetachSkills | os.Remove | entryPath | target |
| 422 | internal/sync/skills_off.go | DetachSkills | os.Remove | folder | target |
| 423 | internal/sync/symlink_unix.go | createLink | os.Symlink | target, linkPath | target |
| 424 | internal/sync/symlink_windows.go | canCreateRelativeLink | os.Mkdir | target | tmp |
| 425 | internal/sync/symlink_windows.go | canCreateRelativeLink | os.MkdirTemp | tmp | |
| 426 | internal/sync/symlink_windows.go | canCreateRelativeLink | os.RemoveAll | dir | tmp |
| 427 | internal/sync/symlink_windows.go | createLink | os.Symlink | absSource, absTarget | target |
| 428 | internal/sync/symlink_windows.go | createLink | os.Symlink | absSource, absTarget | target |
| 429 | internal/sync/symlink_windows.go | createLink | os.Symlink | rel, linkPath | target |
| 430 | internal/sync/symlink_windows.go | platformCanCreateFileLink | os.MkdirTemp | tmp | |
| 431 | internal/sync/symlink_windows.go | platformCanCreateFileLink | os.RemoveAll | dir | tmp |
| 432 | internal/sync/symlink_windows.go | platformCanCreateFileLink | os.WriteFile | target | tmp |
| 433 | internal/sync/sync.go | CreateSymlink | os.MkdirAll | filepath.Dir(targetPath) | target |
| 434 | internal/sync/sync.go | MigrateToSource | os.MkdirAll | filepath.Dir(sourcePath) | source-unmigrated |
| 435 | internal/sync/sync.go | MigrateToSource | os.RemoveAll | targetPath | target |
| 436 | internal/sync/sync.go | MigrateToSource | os.RemoveAll | targetPath | target |
| 437 | internal/sync/sync.go | MigrateToSource | os.Rename | targetPath, sourcePath | source-unmigrated |
| 438 | internal/sync/sync.go | PruneOrphanLinksWithSkills | os.RemoveAll | entryPath | target |
| 439 | internal/sync/sync.go | SyncTarget | os.Remove | sc.Path | target |
| 440 | internal/sync/sync.go | SyncTargetMergeWithSkills | os.Remove | targetSkillPath | target |
| 441 | internal/sync/sync.go | copyDirectoryWithState | os.MkdirAll | dstPath | source-unmigrated |
| 442 | internal/sync/sync.go | copyFile | os.OpenFile | dst | source-unmigrated |
| 443 | internal/sync/sync.go | ensureRealTargetDir | os.MkdirAll | targetPath | target |
| 444 | internal/sync/sync.go | ensureRealTargetDir | os.MkdirAll | targetPath | target |
| 445 | internal/sync/sync.go | ensureRealTargetDir | os.Remove | targetPath | target |
| 446 | internal/sync/sync.go | mergeDirectories | os.MkdirAll | dstPath | source-unmigrated |
| 447 | internal/sync/sync.go | replaceWithLink | os.Remove | path | target |
| 448 | internal/sync/sync.go | replaceWithLink | os.RemoveAll | parked | target |
| 449 | internal/sync/sync.go | replaceWithLink | os.Rename | parked, path | target |
| 450 | internal/sync/sync.go | replaceWithLink | os.Rename | path, parked | target |
| 451 | internal/sync/target_naming_migration.go | selectActiveTargetNameForSync | os.Rename | legacyPath, desiredPath | target |
| 452 | internal/sync/target_naming_migration.go | selectActiveTargetNameForSync | os.Rename | desiredPath, legacyPath | target |
| 453 | internal/testutil/git_helpers.go | SeedRemoteBranch | os.MkdirAll | filepath.Dir(full) | test-helper |
| 454 | internal/testutil/git_helpers.go | SeedRemoteBranch | os.WriteFile | full | test-helper |
| 455 | internal/testutil/testutil.go | (*Sandbox).CreateNestedSkill | os.MkdirAll | skillDir | test-helper |
| 456 | internal/testutil/testutil.go | (*Sandbox).CreateNestedSkill | os.WriteFile | path | test-helper |
| 457 | internal/testutil/testutil.go | (*Sandbox).CreateProjectSkill | os.MkdirAll | skillDir | test-helper |
| 458 | internal/testutil/testutil.go | (*Sandbox).CreateProjectSkill | os.WriteFile | path | test-helper |
| 459 | internal/testutil/testutil.go | (*Sandbox).CreateSkill | os.MkdirAll | skillDir | test-helper |
| 460 | internal/testutil/testutil.go | (*Sandbox).CreateSkill | os.WriteFile | path | test-helper |
| 461 | internal/testutil/testutil.go | (*Sandbox).CreateSymlink | os.MkdirAll | dir | test-helper |
| 462 | internal/testutil/testutil.go | (*Sandbox).CreateSymlink | os.Symlink | target, link | test-helper |
| 463 | internal/testutil/testutil.go | (*Sandbox).CreateTarget | os.MkdirAll | path | test-helper |
| 464 | internal/testutil/testutil.go | (*Sandbox).SetupProjectDir | os.MkdirAll | dir | test-helper |
| 465 | internal/testutil/testutil.go | (*Sandbox).SetupProjectDir | os.MkdirAll | filepath.Join(projectRoot, p) | test-helper |
| 466 | internal/testutil/testutil.go | (*Sandbox).WriteConfig | os.MkdirAll | dir | test-helper |
| 467 | internal/testutil/testutil.go | (*Sandbox).WriteConfig | os.WriteFile | sb.ConfigPath | test-helper |
| 468 | internal/testutil/testutil.go | (*Sandbox).WriteFile | os.MkdirAll | dir | test-helper |
| 469 | internal/testutil/testutil.go | (*Sandbox).WriteFile | os.WriteFile | path | test-helper |
| 470 | internal/testutil/testutil.go | (*Sandbox).WriteProjectConfig | os.MkdirAll | dir | test-helper |
| 471 | internal/testutil/testutil.go | (*Sandbox).WriteProjectConfig | os.WriteFile | path | test-helper |
| 472 | internal/testutil/testutil.go | NewSandbox | os.MkdirAll | dir | test-helper |
| 473 | internal/trash/trash.go | Delete | os.Remove | MetadataFile(entryPath) | trash |
| 474 | internal/trash/trash.go | Delete | os.RemoveAll | entryPath | trash |
| 475 | internal/trash/trash.go | MoveAgentToTrash | os.MkdirAll | trashDir | trash |
| 476 | internal/trash/trash.go | MoveAgentToTrash | os.Remove | agentFile | agents |
| 477 | internal/trash/trash.go | MoveAgentToTrash | os.Remove | metaFile | agents |
| 478 | internal/trash/trash.go | MoveAgentToTrash | os.Rename | agentFile, destFile | agents |
| 479 | internal/trash/trash.go | MoveAgentToTrash | os.Rename | metaFile, destMeta | agents |
| 480 | internal/trash/trash.go | MoveAgentToTrash | os.WriteFile | destFile | trash |
| 481 | internal/trash/trash.go | MoveAgentToTrash | os.WriteFile | destMeta | trash |
| 482 | internal/trash/trash.go | MoveToTrash | os.Rename | <ref> | source-checked |
| 483 | internal/trash/trash.go | Restore | os.Rename | <ref> | source-unmigrated |
| 484 | internal/trash/trash.go | RestoreAgent | os.MkdirAll | targetDir | agents |
| 485 | internal/trash/trash.go | RestoreAgent | os.RemoveAll | entry.Path | trash |
| 486 | internal/trash/trash.go | RestoreAgent | os.Rename | srcPath, destPath | agents |
| 487 | internal/trash/trash.go | RestoreAgent | os.WriteFile | destPath | agents |
| 488 | internal/trash/trash.go | cleanEmptyParents | os.Remove | dir | trash |
| 489 | internal/trash/trash.go | copyDir | os.MkdirAll | dst | source-unmigrated |
| 490 | internal/trash/trash.go | copyFile | os.OpenFile | dst | source-unmigrated |
| 491 | internal/trash/trash.go | moveLink | os.Remove | dst | source-unmigrated |
| 492 | internal/trash/trash.go | moveLink | os.Remove | src | source-checked |
| 493 | internal/trash/trash.go | moveToTrash | os.MkdirAll | filepath.Dir(trashPath) | trash |
| 494 | internal/trash/trash.go | moveToTrash | os.RemoveAll | srcPath | source-checked |
| 495 | internal/trash/trash.go | recreateLink | os.Symlink | target, dst | source-unmigrated |
| 496 | internal/trash/trash.go | restore | os.RemoveAll | entry.Path | trash |
| 497 | internal/uidist/uidist.go | ClearCache | os.RemoveAll | dir | config |
| 498 | internal/uidist/uidist.go | ClearVersion | os.RemoveAll | dir | config |
| 499 | internal/uidist/uidist.go | Download | os.MkdirAll | dir | config |
| 500 | internal/uidist/uidist.go | Download | os.Remove | tmpFile | config |
| 501 | internal/uidist/uidist.go | Download | os.RemoveAll | dir | config |
| 502 | internal/uidist/uidist.go | cleanOldVersions | os.RemoveAll | filepath.Join(uiDir, e.Name()) | config |
| 503 | internal/uidist/uidist.go | downloadToTemp | os.CreateTemp | config | |
| 504 | internal/uidist/uidist.go | downloadToTemp | os.Remove | tmp.Name() | config |
| 505 | internal/uidist/uidist.go | extractTarGz | os.MkdirAll | filepath.Dir(target) | config |
| 506 | internal/uidist/uidist.go | extractTarGz | os.MkdirAll | target | config |
| 507 | internal/uidist/uidist.go | extractTarGz | os.OpenFile | target | config |
| 508 | internal/uninstall/uninstall.go | restoreMetadata | os.Remove | file | trash |
| 509 | internal/uninstall/uninstall.go | saveMetadata | os.WriteFile | trash.MetadataFile(trashPath) | trash |
| 510 | internal/utils/frontmatter_write.go | SetFrontmatterList | os.WriteFile | filePath | source-unmigrated |
| 511 | internal/utils/frontmatter_write.go | SetFrontmatterValue | os.WriteFile | filePath | target |
| 512 | internal/utils/frontmatter_write.go | SetFrontmatterValue | os.WriteFile | filePath | target |
| 513 | internal/utils/frontmatter_write.go | ToggleFrontmatterFlag | os.WriteFile | filePath | source-unmigrated |
| 514 | internal/utils/frontmatter_write.go | ToggleFrontmatterFlag | os.WriteFile | filePath | source-unmigrated |
| 515 | internal/utils/link_windows.go | CreateJunction | os.Mkdir | linkPath | source-unmigrated |
| 516 | internal/utils/link_windows.go | CreateJunction | os.Remove | linkPath | source-unmigrated |
| 517 | internal/version/check.go | ClearCache | os.Remove | getCachePath() | config |
| 518 | internal/version/check.go | cleanupLegacyCache | os.Remove | legacyPath | config |
| 519 | internal/version/check.go | cleanupLegacyCache | os.Remove | parentDir | config |
| 520 | internal/version/check.go | saveCacheAt | os.MkdirAll | filepath.Dir(cachePath) | config |
| 521 | internal/version/check.go | saveCacheAt | os.WriteFile | cachePath | config |
| 522 | internal/config/config.go | (*Config).Save | os.MkdirAll | dir | config |
| 523 | internal/config/config.go | (*Config).Save | os.WriteFile | path | config |
| 524 | internal/plugin/state.go | (*Service).saveState | os.MkdirAll | s.managedRoot() | config |