Files
skillshare/internal/sourcefs/testdata/raw_writes.tsv
T
Willie 8c60f51b9f feat(source): add the sourcewalk walker and sourcefs write boundary for proposal 274 (#385)
Implements rollout steps 1 and 2 of proposals/274-skillfollow.md. Nothing follows a link or parses .skillfollow yet.

Step 1: doctor reports first-level symlinks and junctions in the skills source as info, in text and JSON, without following them.

Step 2a: internal/sourcewalk owns traversal of the skills source. Thirteen raw walks move onto it with identical behavior, and a go/parser ratchet fails the tests on any new unclassified walk.

Step 2b: internal/sourcefs wraps an os.Root opened at the skills source and refuses any write whose path has a link component. The six write sites the proposal found in review move onto it, including the cross-device copy fallback, and a second ratchet covers raw os write calls. The only behavior change is that an explicit path crossing a link inside the source is refused instead of written through.

Refs #274

Release-As: 0.24.3
2026-10-04 15:15:43 +08:00

39 KiB

1# Raw os write calls allowed outside sourcefs. See ratchet_test.go.
2# filefunctioncalleepath argumentreason
3cmd/skillshare/completion.gocmdCompletionos.MkdirAlldirshell
4cmd/skillshare/completion.gocmdCompletionos.WriteFiledestPathshell
5cmd/skillshare/doctor.gocheckSymlinkSupportos.MkdirAlltestTargettmp
6cmd/skillshare/doctor.gocheckSymlinkSupportos.RemovetestLinktmp
7cmd/skillshare/doctor.gocheckSymlinkSupportos.RemovetestLinktmp
8cmd/skillshare/doctor.gocheckSymlinkSupportos.RemoveAlltestTargettmp
9cmd/skillshare/doctor.gocheckSymlinkSupportos.RemoveAlltestTargettmp
10cmd/skillshare/doctor.gocheckTargetIssuesos.CreatetestFiletarget
11cmd/skillshare/doctor.gocheckTargetIssuesos.RemovetestFiletarget
12cmd/skillshare/extras_init.goextrasInitGlobalos.MkdirAllsourceDirextras
13cmd/skillshare/extras_init.goextrasInitProjectos.MkdirAllsourceDirextras
14cmd/skillshare/extras_remove.gocleanEmptyExtrasDiros.Removedirextras
15cmd/skillshare/extras_remove.gocleanEmptyExtrasDirQuietos.Removedirextras
16cmd/skillshare/helpers.gocopyDiros.MkdirAlldstPathsource-unmigrated
17cmd/skillshare/helpers.gocopyFileos.OpenFiledstsource-unmigrated
18cmd/skillshare/helpers.goremoveEmptyDiros.Removedirextras
19cmd/skillshare/init_apply.goapplyInitPlanos.MkdirAlldirsource-root
20cmd/skillshare/init_apply.goreplaceIdenticalCopiesos.RemoveAlldsttarget
21cmd/skillshare/init_project.gocreateProjectTargetDirsos.MkdirAllabsPathtarget
22cmd/skillshare/init_project.goensureProjectGitignoreos.WriteFilegitignorePathproject
23cmd/skillshare/init_remote.goinspectRemoteos.MkdirTemptmp
24cmd/skillshare/init_remote.goinspectRemoteos.RemoveAlltmptmp
25cmd/skillshare/json_output.gosuppressUIToDevnullos.OpenFileos.DevNulldevnull
26cmd/skillshare/main.gocleanupOldBinaryos.RemoveoldPathbinary
27cmd/skillshare/new.gocmdNewos.MkdirAlldirPathsource-unmigrated
28cmd/skillshare/new.gocmdNewos.MkdirAllskillDirsource-unmigrated
29cmd/skillshare/new.gocmdNewos.RemoveAllskillDirsource-unmigrated
30cmd/skillshare/new.gocmdNewos.WriteFilegitkeepsource-unmigrated
31cmd/skillshare/new.gocmdNewos.WriteFileskillFilesource-unmigrated
32cmd/skillshare/restore_tui.go(restoreTUIModel).startDeleteos.RemoveAlltsDirbackup
33cmd/skillshare/restore_tui.go(restoreTUIModel).startDeleteos.RemoveAllversion.Dirbackup
34cmd/skillshare/target.gounlinkMergeModeos.RemoveskillPathtarget
35cmd/skillshare/target.gounlinkSymlinkModeos.RemovetargetPathtarget
36cmd/skillshare/target_project.gotargetAddProjectos.MkdirAllabsPathtarget
37cmd/skillshare/trash.gotrashDeleteos.RemoveAllentry.Pathtrash
38cmd/skillshare/trash.gotrashEmptyos.RemoveAllitem.Pathtrash
39cmd/skillshare/trash_tui.go(trashTUIModel).startOperationos.RemoveAllentry.Pathtrash
40cmd/skillshare/ui.goclearCurrentUIStateIfMatchesos.RemovecurrentUIStateFile()config
41cmd/skillshare/ui.goopenUILogos.MkdirAlldirconfig
42cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
43cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
44cmd/skillshare/ui.gostopUIos.RemoveuiPidFile(opts)config
45cmd/skillshare/ui.gowriteCurrentUIStateos.MkdirAllconfig.CacheDir()config
46cmd/skillshare/ui.gowriteCurrentUIStateos.WriteFilecurrentUIStateFile()config
47cmd/skillshare/ui.gowriteUIPidFileos.MkdirAllconfig.CacheDir()config
48cmd/skillshare/ui.gowriteUIPidFileos.WriteFileuiPidFile(opts)config
49cmd/skillshare/upgrade.godownloadAndReplaceos.RemovearchivePathbinary
50cmd/skillshare/upgrade.godownloadArchiveos.CreateTempbinary
51cmd/skillshare/upgrade.godownloadArchiveos.Removetmp.Name()binary
52cmd/skillshare/upgrade.gowriteBinaryos.ChmodtmpPathbinary
53cmd/skillshare/upgrade.gowriteBinaryos.CreateTempfilepath.Dir(destPath)binary
54cmd/skillshare/upgrade.gowriteBinaryos.RemoveoldPathbinary
55cmd/skillshare/upgrade.gowriteBinaryos.RemoveoldPathbinary
56cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
57cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
58cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
59cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
60cmd/skillshare/upgrade.gowriteBinaryos.RemovetmpPathbinary
61cmd/skillshare/upgrade.gowriteBinaryos.RenamedestPath, oldPathbinary
62cmd/skillshare/upgrade.gowriteBinaryos.RenameoldPath, destPathbinary
63cmd/skillshare/upgrade.gowriteBinaryos.RenametmpPath, destPathbinary
64cmd/skillshare/upgrade.gowriteBinaryos.RenametmpPath, destPathbinary
65internal/audit/patterns.goInitRulesFileos.MkdirAllfilepath.Dir(path)config
66internal/audit/patterns.goInitRulesFileos.WriteFilepathconfig
67internal/audit/rules_mutate.goResetRulesos.Removepathconfig
68internal/audit/rules_mutate.gowriteRulesFileos.MkdirAllfilepath.Dir(path)config
69internal/audit/rules_mutate.gowriteRulesFileos.WriteFilepathconfig
70internal/backup/backup.gocopyDiros.MkdirAlldstbackup
71internal/backup/backup.gocopyFileos.OpenFiledstbackup
72internal/backup/backup.gocreateInDiros.ChmodstagingPathbackup
73internal/backup/backup.gocreateInDiros.MkdirAllbackupDirbackup
74internal/backup/backup.gocreateInDiros.MkdirAlltimestampDirbackup
75internal/backup/backup.gocreateInDiros.MkdirTempbackupDirbackup
76internal/backup/backup.gocreateInDiros.RemoveAllstagingPathbackup
77internal/backup/backup.gocreateInDiros.RenamestagingPath, backupPathbackup
78internal/backup/backup.goremoveDirIfEmptyos.Removepathbackup
79internal/backup/cleanup.goCleanupInDiros.RemoveAllbackup.Pathbackup
80internal/backup/cleanup.gocleanEmptyDirsos.RemovesubPathbackup
81internal/backup/delete.goDeleteInDiros.RemoveAllpathbackup
82internal/backup/restore.goRestoreToPathos.RemovedestPathtarget
83internal/backup/restore.goRestoreToPathos.RemoveAlldestPathtarget
84internal/check/tree_check.goFetchRemoteTreeHashesForRefos.MkdirTemptmp
85internal/check/tree_check.goFetchRemoteTreeHashesForRefos.RemoveAlltmpDirtmp
86internal/config/config.go(*Config).Saveos.MkdirAlldirconfig
87internal/config/config.go(*Config).Saveos.WriteFilepathconfig
88internal/config/config.goLoados.RenametmpPath, pathconfig
89internal/config/config.goLoados.WriteFiletmpPathconfig
90internal/config/config.gomigrateSkillsToRegistryos.WriteFileconfigPathconfig
91internal/config/extras_migrate.goMigrateExtrasDiros.RenameoldPath, newPathextras
92internal/config/migrate.gomigrateDiros.MkdirAllfilepath.Dir(newPath)source-root
93internal/config/migrate.gomigrateDiros.RenameoldPath, newPathsource-root
94internal/config/project.go(*ProjectConfig).SaveInos.MkdirAlldirconfig
95internal/config/project.go(*ProjectConfig).SaveInos.WriteFilepathconfig
96internal/config/project.goLoadProjectos.RenametmpPath, pathconfig
97internal/config/project.goLoadProjectos.WriteFiletmpPathconfig
98internal/config/registry.go(*Registry).Saveos.MkdirAlldirsource-unmigrated
99internal/config/registry.go(*Registry).Saveos.WriteFilepathsource-unmigrated
100internal/config/registry.goMigrateRegistryToSourceos.RemoveoldPathsource-unmigrated
101internal/config/registry.goMigrateRegistryToSourceos.WriteFilenewPathsource-unmigrated
102internal/git/info.goresolveMetadataConflictsos.WriteFilefilepath.Join(dir, path)source-unmigrated
103internal/git/info.gorestorePullResidueos.Removefullsource-unmigrated
104internal/git/scope.goDisableNestedRepoos.RenamegitDir, disabledsource-unmigrated
105internal/git/scope.goInitScopeRepoos.MkdirAlldirsource-unmigrated
106internal/git/scope.goWriteScopeGitignoreos.WriteFilegitignoresource-unmigrated
107internal/git/scope.goWriteScopeGitignoreos.WriteFilegitignoresource-unmigrated
108internal/git/scope.goappendGitignoreLineos.WriteFilegitignoresource-unmigrated
109internal/git/scope.goensureGitignoreEntryos.WriteFilegitignoresource-unmigrated
110internal/git/scope.goensureGitignoreEntryos.WriteFilegitignoresource-unmigrated
111internal/git/scope.goremoveCheckedOutos.Removepathsource-unmigrated
112internal/git/scope.goremoveCheckedOutos.RemoveAllpathsource-unmigrated
113internal/git/scope.gosnapshotConfigos.Chmodpathsource-unmigrated
114internal/git/scope.gosnapshotConfigos.Symlinktarget, pathsource-unmigrated
115internal/git/scope.gosnapshotConfigos.WriteFilepathsource-unmigrated
116internal/hooks/apply.go(*Service).applyScopedos.Removef.pathplugin
117internal/hooks/apply.go(*Service).applyScopedos.Removes.journalPath()plugin
118internal/hooks/apply.go(*Service).applyScopedos.Removes.journalPath()plugin
119internal/hooks/apply.go(*Service).pruneBackupsos.Removefilepath.Join(dir, name)plugin
120internal/hooks/apply.go(*Service).recoverPendingos.Removes.journalPath()plugin
121internal/hooks/apply.goatomicWriteos.CreateTempfilepath.Dir(path)plugin
122internal/hooks/apply.goatomicWriteos.MkdirAllfilepath.Dir(path)plugin
123internal/hooks/apply.goatomicWriteos.Removefile.Name()plugin
124internal/hooks/apply.goatomicWriteos.Renamefile.Name(), pathplugin
125internal/hooks/apply.gopruneCreatedDirsos.Removedirplugin
126internal/hooks/apply.gopruneEmptyDirsos.Removedirplugin
127internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.CreateTempfilepath.Dir(f.path)plugin
128internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.MkdirAllfilepath.Dir(f.path)plugin
129internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.Removef.pathplugin
130internal/hooks/git_ops.go(*filePlan).prepareGitWriteos.RemovestagePathplugin
131internal/hooks/service.go(*Service).lockos.MkdirAlls.stateDir()plugin
132internal/hub/drafts.go(DraftStore).Deleteos.Removepathconfig
133internal/hub/drafts.go(DraftStore).lockedos.MkdirAlls.Dirconfig
134internal/hub/drafts.go(DraftStore).persistos.CreateTemps.Dirconfig
135internal/hub/drafts.go(DraftStore).persistos.Removetmp.Name()config
136internal/hub/drafts.go(DraftStore).persistos.Renametmp.Name(), pathconfig
137internal/hub/index.goWriteIndexos.MkdirAllfilepath.Dir(path)source-unmigrated
138internal/hub/index.goWriteIndexos.WriteFilepathsource-unmigrated
139internal/install/copy.gocopyDirExcludingos.MkdirAlldstPathsource-unmigrated
140internal/install/copy.gocopyFileos.OpenFiledstsource-unmigrated
141internal/install/gitea_download.gocnbWriteBlobos.MkdirAllfilepath.Dir(destPath)clone
142internal/install/gitea_download.gocnbWriteBlobos.WriteFiledestPathclone
143internal/install/gitea_download.gocnbWriteContentItemos.MkdirAlltargetclone
144internal/install/gitea_download.gocnbWriteContentItemos.MkdirAlltargetclone
145internal/install/gitea_download.godownloadCNBDiros.MkdirAlldestDirclone
146internal/install/gitea_download.godownloadGiteaDiros.MkdirAlldestDirclone
147internal/install/gitea_download.gogiteaDownloadDirRecursiveos.MkdirAllchildDirclone
148internal/install/gitea_download.gogiteaDownloadFileos.MkdirAllfilepath.Dir(destPath)clone
149internal/install/gitea_download.gogiteaDownloadFileos.OpenFiledestPathclone
150internal/install/github_download.godownloadDirRecursiveos.MkdirAllchildDirclone
151internal/install/github_download.godownloadFileos.MkdirAllfilepath.Dir(destPath)clone
152internal/install/github_download.godownloadFileos.OpenFiledestPathclone
153internal/install/github_download.godownloadGitHubDirWithAPIBaseos.MkdirAlldestDirclone
154internal/install/gitignore.gowriteGitignoreLinesos.WriteFilepathsource-unmigrated
155internal/install/install.go<package>os.RemoveAll<ref>source-unmigrated
156internal/install/install.go<package>os.RemoveAll<ref>source-unmigrated
157internal/install/install_apply.goUpdateAgentFromDiscoveryos.MkdirAllfilepath.Dir(destFile)agents
158internal/install/install_apply.goUpdateAgentFromDiscoveryos.MkdirTemptmp
159internal/install/install_apply.goUpdateAgentFromDiscoveryos.RemoveAlltempDirtmp
160internal/install/install_apply.goUpdateAgentFromDiscoveryos.RenametempFile, destFileagents
161internal/install/install_apply.goUpdateAgentFromDiscoveryos.WriteFiledestFileagents
162internal/install/install_apply.goinstallAgentFromDiscoveryInternalos.MkdirAllfilepath.Dir(destFile)agents
163internal/install/install_apply.goinstallAgentFromDiscoveryInternalos.WriteFiledestFileagents
164internal/install/install_apply.goinstallFromDiscoveryInternalos.MkdirAllworkDestsource-unmigrated
165internal/install/install_apply.goinstallFromDiscoveryInternalos.MkdirTemptmp
166internal/install/install_apply.goinstallFromDiscoveryInternalos.RemoveAlltempDirtmp
167internal/install/install_apply.goinstallFromGitSubdiros.MkdirTemptmp
168internal/install/install_apply.goinstallFromGitSubdiros.RemoveAlltempRepoPathtmp
169internal/install/install_apply.goinstallFromGitSubdiros.RemoveAlltempRepoPathtmp
170internal/install/install_apply.goinstallFromLocalos.MkdirAlldestPathsource-unmigrated
171internal/install/install_audit.gocleanEmptyInstallParentsos.Removediragents
172internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.MkdirTemptmp
173internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAllrepoPathtmp
174internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAllrepoPathtmp
175internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAlltempDirtmp
176internal/install/install_discovery.godiscoverFromGitSubdirWithProgressImplos.RemoveAlltempDirtmp
177internal/install/install_discovery.godiscoverFromGitWithProgressImplos.MkdirTemptmp
178internal/install/install_git.goShallowCloneToTempos.MkdirTemptmp
179internal/install/install_update.gohandleUpdateos.MkdirTemptmp
180internal/install/install_update.gohandleUpdateos.RemoveAlltempDirtmp
181internal/install/install_update.goupdateRepoRootOrchestratoros.MkdirTemptmp
182internal/install/install_update.goupdateRepoRootOrchestratoros.RemoveAlltempDirtmp
183internal/install/lock.go(*Lock).Saveos.Removepathproject
184internal/install/lock.go(*Lock).Saveos.WriteFilepathproject
185internal/install/meta.goWriteMetaos.WriteFilemetaPathsource-unmigrated
186internal/install/metadata.go(*MetadataStore).Saveos.CreateTempdirsource-unmigrated
187internal/install/metadata.go(*MetadataStore).Saveos.MkdirAlldirsource-unmigrated
188internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
189internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
190internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
191internal/install/metadata.go(*MetadataStore).Saveos.RemovetmpNamesource-unmigrated
192internal/install/metadata.go(*MetadataStore).Saveos.RenametmpName, targetsource-unmigrated
193internal/install/metadata_migrate.gowalkAgentSidecarsos.RemovesidecarPathagents
194internal/install/metadata_migrate.gowalkSkillDiros.RemovesidecarPathsource-unmigrated
195internal/instructions/convert.goApplyos.Removec.Pathplugin
196internal/instructions/convert.goWriteFileos.MkdirAllfilepath.Dir(path)plugin
197internal/instructions/convert.goWriteFileos.WriteFilepathplugin
198internal/instructions/project.goApplyShimos.MkdirAllfilepath.Dir(own)plugin
199internal/instructions/project.goApplyShimos.Symlinkrel, ownplugin
200internal/mcp/backups.go(*Service).pruneBackupsos.Removefilepath.Join(dir, name)plugin
201internal/mcp/service.go(*Service).lockos.MkdirAlldirplugin
202internal/mcp/write.go(*Service).applyScopedos.RemovejournalPathplugin
203internal/mcp/write.go(*Service).applyScopedos.RemovejournalPathplugin
204internal/mcp/write.goatomicWriteos.CreateTempfilepath.Dir(path)plugin
205internal/mcp/write.goatomicWriteos.MkdirAllfilepath.Dir(path)plugin
206internal/mcp/write.goatomicWriteos.Removefile.Name()plugin
207internal/mcp/write.goatomicWriteos.Renamefile.Name(), pathplugin
208internal/memory/commit.gocommitNoteos.Renamedraft, pathextras
209internal/memory/commit.gocreateNoteos.OpenFilepathextras
210internal/memory/commit.gocreateNoteos.Removepathextras
211internal/memory/commit.goremoveNoteos.Removepathextras
212internal/memory/move.goMoveos.MkdirAllfilepath.Dir(destination)extras
213internal/memory/move.goMoveos.OpenFiledestinationextras
214internal/memory/move.goMoveos.Removedestinationextras
215internal/memory/move.goMoveos.Removesourceextras
216internal/memory/store.goWriteos.CreateTempfilepath.Dir(abs)extras
217internal/memory/store.goWriteos.MkdirAllfilepath.Dir(abs)extras
218internal/memory/store.goWriteos.Removetmp.Name()extras
219internal/oplog/oplog.goClearos.Truncatepathconfig
220internal/oplog/oplog.goWriteos.MkdirAlldirconfig
221internal/oplog/oplog.goWriteos.OpenFilefilepath.Join(dir, filename)config
222internal/oplog/oplog.gorewriteEntriesos.Createtmpconfig
223internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
224internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
225internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
226internal/oplog/oplog.gorewriteEntriesos.Removetmpconfig
227internal/oplog/oplog.gorewriteEntriesos.Renametmp, pathconfig
228internal/plugin/apply.go(*Service).applyChangeos.RemoveAllbackupplugin
229internal/plugin/apply.go(*Service).applyChangeos.RemoveAllfailedplugin
230internal/plugin/apply.go(*Service).applyChangeos.Renamebackup, pathplugin
231internal/plugin/apply.go(*Service).applyChangeos.Renamefailed, pathplugin
232internal/plugin/apply.go(*Service).applyChangeos.Renamepath, failedplugin
233internal/plugin/apply.go(*Service).materializeos.MkdirAllfilepath.Dir(p)plugin
234internal/plugin/apply.go(*Service).materializeos.MkdirAllparentplugin
235internal/plugin/apply.go(*Service).materializeos.MkdirTempparentplugin
236internal/plugin/apply.go(*Service).materializeos.RemoveAlltempplugin
237internal/plugin/apply.go(*Service).materializeos.Renamebackup, expectedplugin
238internal/plugin/apply.go(*Service).materializeos.Renameexpected, backupplugin
239internal/plugin/apply.go(*Service).materializeos.Renametemp, expectedplugin
240internal/plugin/apply.go(*Service).materializeos.WriteFilepplugin
241internal/plugin/config.go(*Service).saveos.CreateTempfilepath.Dir(s.ConfigPath)plugin
242internal/plugin/config.go(*Service).saveos.MkdirAllfilepath.Dir(s.ConfigPath)plugin
243internal/plugin/config.go(*Service).saveos.Removef.Name()plugin
244internal/plugin/config.go(*Service).saveos.Renamef.Name(), s.ConfigPathplugin
245internal/plugin/lifecycle.go(*Service).Applyos.MkdirAllfilepath.Dir(s.ConfigPath)plugin
246internal/plugin/local_bundle.go(*Service).applyLocalos.MkdirAllrootplugin
247internal/plugin/local_bundle.go(*Service).applyLocalos.MkdirTemprootplugin
248internal/plugin/local_bundle.go(*Service).applyLocalos.Removemarkerplugin
249internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAllbackupplugin
250internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAlldestplugin
251internal/plugin/local_bundle.go(*Service).applyLocalos.RemoveAlltempplugin
252internal/plugin/local_bundle.go(*Service).applyLocalos.Renamebackup, destplugin
253internal/plugin/local_bundle.go(*Service).applyLocalos.Renamedest, backupplugin
254internal/plugin/local_bundle.go(*Service).applyLocalos.Renametemp, destplugin
255internal/plugin/local_bundle.goatomicNativeWriteos.CreateTempfilepath.Dir(path)plugin
256internal/plugin/local_bundle.goatomicNativeWriteos.MkdirAllfilepath.Dir(path)plugin
257internal/plugin/local_bundle.goatomicNativeWriteos.Removef.Name()plugin
258internal/plugin/local_bundle.goatomicNativeWriteos.Renamef.Name(), pathplugin
259internal/plugin/package_config.go(*Service).applyOpenCodeos.MkdirAllfilepath.Dir(path)plugin
260internal/plugin/pi_extensions_lock.go(*piNativeLock).releaseos.Removel.pathplugin
261internal/plugin/pi_extensions_lock.goacquirePiNativeLockos.Mkdirpathplugin
262internal/plugin/pi_extensions_lock.goacquirePiNativeLockos.Mkdirpathplugin
263internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.MkdirAllfilepath.Dir(s.ConfigPath)plugin
264internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.OpenFilepluginLockplugin
265internal/plugin/pi_extensions_write.go(*Service).lockPiSettingsos.RemovepluginLockplugin
266internal/plugin/pi_extensions_write.go(*Service).piBackupos.MkdirAlldirplugin
267internal/plugin/pi_extensions_write.go(*Service).piBackupos.Removerecordplugin
268internal/plugin/pi_registration_private_other.gomakePiRegistrationDiros.MkdirAllpathplugin
269internal/plugin/pi_registration_private_windows.gomakePiRegistrationDiros.MkdirAllfilepath.Dir(path)plugin
270internal/plugin/source.goacquireRefos.MkdirTempplugin
271internal/plugin/source.goacquireRefos.RemoveAllrootplugin
272internal/plugin/source.gocopyTreeos.MkdirAlltoplugin
273internal/plugin/source.gocopyTreeos.Symlinklink, toplugin
274internal/plugin/source.gocopyTreeos.WriteFiletoplugin
275internal/resource/agent.go(AgentKind).CreateLinkos.Symlinksrc, dsttarget
276internal/resource/skill.go(SkillKind).CreateLinkos.Symlinksrc, dsttarget
277internal/search/index.goreadIndexFromGitCloneos.RemoveAlldirtmp
278internal/search/preview.gofetchViaCloneos.RemoveAlldirtmp
279internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.MkdirAllresolvedagents
280internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.RemoveignorePathagents
281internal/server/handler_agentignore.go(*Server).handlePutAgentignoreos.WriteFileignorePathagents
282internal/server/handler_audit.go(*Server).handlePutAuditRulesos.MkdirAllfilepath.Dir(path)config
283internal/server/handler_audit.go(*Server).handlePutAuditRulesos.WriteFilepathconfig
284internal/server/handler_config.go(*Server).handlePutConfigos.WriteFiles.configPath()config
285internal/server/handler_create_skill.go(*Server).handleCreateSkillos.MkdirAlldirPathsource-unmigrated
286internal/server/handler_create_skill.go(*Server).handleCreateSkillos.MkdirAllskillDirsource-unmigrated
287internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
288internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
289internal/server/handler_create_skill.go(*Server).handleCreateSkillos.RemoveAllskillDirsource-unmigrated
290internal/server/handler_create_skill.go(*Server).handleCreateSkillos.WriteFilegitkeepsource-unmigrated
291internal/server/handler_create_skill.go(*Server).handleCreateSkillos.WriteFileskillFilesource-unmigrated
292internal/server/handler_extensions.go(*Server).handleExtensionsOpenos.MkdirAlldirplugin
293internal/server/handler_extensions.go(*Server).handleExtensionsRemoveos.RemoveAllpathplugin
294internal/server/handler_extras.go(*Server).handleExtrasCreateos.MkdirAllsourceDirextras
295internal/server/handler_memory_guidance.gocommitGuidanceChangeos.MkdirAllfilepath.Dir(c.Path)plugin
296internal/server/handler_memory_guidance.gocommitGuidanceChangeos.OpenFilec.Pathplugin
297internal/server/handler_memory_guidance.gocommitGuidanceChangeos.Removec.Pathplugin
298internal/server/handler_skill_content.gowriteFileAtomicos.CreateTempdiragents
299internal/server/handler_skill_content.gowriteFileAtomicos.RemovetmpPathagents
300internal/server/handler_skill_content.gowriteFileAtomicos.RenametmpPath, pathagents
301internal/server/handler_skillignore.go(*Server).handlePutSkillignoreos.RemoveignorePathsource-unmigrated
302internal/server/handler_skillignore.go(*Server).handlePutSkillignoreos.WriteFileignorePathsource-unmigrated
303internal/server/handler_targets.go<package>os.Remove<ref>target
304internal/server/handler_targets.gocopySkillDiros.MkdirAlldstPathtarget
305internal/server/handler_targets.gocopySkillDiros.OpenFiledstPathtarget
306internal/server/handler_trash.go(*Server).handleDeleteTrashos.RemoveAllresolved.entry.Pathtrash
307internal/server/handler_trash.go(*Server).handleEmptyTrashos.RemoveAllitem.Pathtrash
308internal/skillignore/write.goAddPatternos.MkdirAllfilepath.Dir(filePath)source-unmigrated
309internal/skillignore/write.goAddPatternos.WriteFilefilePathsource-unmigrated
310internal/skillignore/write.goRemovePatternos.WriteFilefilePathsource-unmigrated
311internal/sourcefs/sourcefs.go(*Root).MoveInos.Renamesrc, filepath.Join(r.dir, name)sourcefs
312internal/sourcefs/sourcefs.goCreateos.MkdirAlldirsourcefs
313internal/sync/agent_sync.goPruneOrphanAgentLinksos.Removefilepath.Join(targetDir, name)target
314internal/sync/agent_sync.goPullAgentos.RemoveAlldestPathagents
315internal/sync/agent_sync.goPullAgentos.WriteFiledestPathagents
316internal/sync/agent_sync.goPullAgentsos.MkdirAllsourcePathagents
317internal/sync/agent_sync.goSyncAgentsTransformos.MkdirAlltargetDirtarget
318internal/sync/agent_sync.goSyncAgentsTransformos.RemovetargetDirtarget
319internal/sync/agent_sync.goSyncAgentsTransformos.RemovetgtFiletarget
320internal/sync/agent_sync.goSyncAgentsTransformos.RemovetgtFiletarget
321internal/sync/agent_sync.goSyncAgentsTransformos.WriteFiletgtFiletarget
322internal/sync/agent_sync.gosyncAgentsCopyos.MkdirAlltargetDirtarget
323internal/sync/agent_sync.gosyncAgentsCopyos.RemovetargetPathtarget
324internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
325internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
326internal/sync/agent_sync.gosyncAgentsCopyos.WriteFiletargetPathtarget
327internal/sync/agent_sync.gosyncAgentsMergeos.MkdirAlltargetDirtarget
328internal/sync/agent_sync.gosyncAgentsMergeos.RemovetargetPathtarget
329internal/sync/agent_sync.gosyncAgentsMergeos.RemovetargetPathtarget
330internal/sync/agent_sync.gosyncAgentsMergeCopyos.MkdirAlltargetDirtarget
331internal/sync/agent_sync.gosyncAgentsMergeCopyos.RemovetargetPathtarget
332internal/sync/agent_sync.gosyncAgentsSymlinkos.MkdirAllfilepath.Dir(targetDir)target
333internal/sync/agent_sync.gosyncAgentsSymlinkos.RemovetargetDirtarget
334internal/sync/agent_sync.gosyncAgentsSymlinkos.RemoveAlltargetDirtarget
335internal/sync/copy.goPruneOrphanCopiesWithSkillsos.RemoveAllentryPathtarget
336internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemovetargetSkillPathtarget
337internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemoveAlltargetSkillPathtarget
338internal/sync/copy.goSyncTargetCopyWithSkillsOptionsos.RemoveAlltargetSkillPathtarget
339internal/sync/extension.gorunExtensionFileos.MkdirAllfilepath.Dir(tgtFile)target
340internal/sync/extension.gorunExtensionFileos.WriteFiletgtFiletarget
341internal/sync/extras.goCollectExtraFilesos.MkdirAllfilepath.Dir(destPath)extras
342internal/sync/extras.goCollectExtraFilesos.MkdirAllsourceDirextras
343internal/sync/extras.goCollectExtraFilesos.Removepathextras
344internal/sync/extras.goCollectExtraFilesos.WriteFiledestPathextras
345internal/sync/extras.gocleanEmptyParentsos.Removedirtarget
346internal/sync/extras.gopruneExtraManagedFilesos.Removepathtarget
347internal/sync/extras.gopruneExtraOrphansos.Removepathtarget
348internal/sync/extras.gopruneExtraSymlinkTargetos.RemovetargetPathtarget
349internal/sync/extras.gosyncExtraSymlinkModeos.MkdirAllfilepath.Dir(targetPath)target
350internal/sync/extras.gosyncExtraSymlinkModeos.RemovetargetPathtarget
351internal/sync/extras.gosyncExtraSymlinkModeos.RemoveAlltargetPathtarget
352internal/sync/extras.gosyncExtraTransformos.MkdirAllfilepath.Dir(tgtFile)target
353internal/sync/extras.gosyncExtraTransformos.RemovetgtFiletarget
354internal/sync/extras.gosyncExtraTransformos.RemoveAlltgtFiletarget
355internal/sync/extras.gosyncExtraTransformos.WriteFiletgtFiletarget
356internal/sync/extras.gosyncOneExtraFileos.MkdirAllfilepath.Dir(tgtFile)target
357internal/sync/extras.gosyncOneExtraFileos.RemovetgtFiletarget
358internal/sync/extras_backup.gobackupExtraDriftos.MkdirAlldirbackup
359internal/sync/extras_backup.gobackupExtraDriftos.WriteFilefilepath.Join(dir, name)backup
360internal/sync/extras_backup.goclearExtraAttachos.Removefilepath.Join(dir, name)backup
361internal/sync/extras_backup.goclearExtraImportBaseos.Removefilepath.Join(extraBackupDir(path), extraImportBase)backup
362internal/sync/extras_backup.goclearExtraWrittenos.Removefilepath.Join(extraBackupDir(path), extraWritten)backup
363internal/sync/extras_backup.gopruneExtraBackupsos.Removefilepath.Join(dir, names[0])backup
364internal/sync/extras_backup.goputBackExtraRestorePointos.Symlinkstring(dest), pathbackup
365internal/sync/extras_backup.goputBackExtraRestorePointos.WriteFilepathbackup
366internal/sync/extras_backup.gorecordExtraAttachos.MkdirAlldirbackup
367internal/sync/extras_backup.gorecordExtraAttachos.WriteFilefilepath.Join(dir, name)backup
368internal/sync/extras_backup.gorecordExtraImportBaseos.MkdirAlldirbackup
369internal/sync/extras_backup.gorecordExtraImportBaseos.WriteFilefilepath.Join(dir, extraImportBase)backup
370internal/sync/extras_backup.gorecordExtraWrittenos.WriteFilefilepath.Join(extraBackupDir(path), extraWritten)backup
371internal/sync/extras_backup.gostoreExtraBackupos.MkdirAlldirbackup
372internal/sync/extras_backup.gostoreExtraBackupos.WriteFilefilepath.Join(dir, name)backup
373internal/sync/extras_file.goCollectBackExtraFileos.MkdirAllfilepath.Dir(f.Source)extras
374internal/sync/extras_file.goCollectBackExtraFileos.WriteFilef.Sourceextras
375internal/sync/extras_file.goRestoreExtraTargetos.Removef.Targettarget
376internal/sync/extras_file.goRestoreExtraTargetos.Removef.Targettarget
377internal/sync/extras_file.goreplaceDriftedTargetos.Removef.Targettarget
378internal/sync/extras_file.gorestoreExtraImportos.Removef.Targettarget
379internal/sync/extras_file.gorestoreExtraImportos.Removef.Targettarget
380internal/sync/extras_file.gorestoreExtraImportos.WriteFilef.Targettarget
381internal/sync/extras_file.gosyncExtraFileReplaceos.MkdirAllfilepath.Dir(f.Target)target
382internal/sync/extras_file.gosyncExtraFileReplaceos.Removef.Targettarget
383internal/sync/extras_file.gosyncExtraFileReplaceos.Removef.Targettarget
384internal/sync/extras_file.gosyncExtraFileReplaceos.WriteFilef.Targettarget
385internal/sync/extras_file.gosyncExtraImportos.MkdirAllfilepath.Dir(f.Target)target
386internal/sync/extras_file.gosyncExtraImportos.Removef.Targettarget
387internal/sync/extras_file.gosyncExtraImportos.WriteFilef.Targettarget
388internal/sync/file_backups.goRestoreFileBackupos.MkdirAllfilepath.Dir(path)target
389internal/sync/file_backups.goRestoreFileBackupos.MkdirAllfilepath.Dir(path)target
390internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
391internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
392internal/sync/file_backups.goRestoreFileBackupos.Removepathtarget
393internal/sync/file_backups.goRestoreFileBackupos.Symlinkv.LinkTo, pathtarget
394internal/sync/file_backups.goRestoreFileBackupos.WriteFilepathtarget
395internal/sync/filelink.go(*copyTracker).pruneOrphansos.Removefilepath.Join(t.dir, rel)target
396internal/sync/manifest.goRemoveManifestos.Removefilepath.Join(targetPath, ManifestFile)target
397internal/sync/manifest.goWriteManifestos.WriteFilefilepath.Join(targetPath, ManifestFile)target
398internal/sync/pull.goPullSkillos.RemoveAlldestPathsource-unmigrated
399internal/sync/relative.goreformatLinkos.RemovelinkPathtarget
400internal/sync/relative.goreformatLinkos.RemovetmpPathtarget
401internal/sync/relative.goreformatLinkos.RemovetmpPathtarget
402internal/sync/relative.goreformatLinkos.RenametmpPath, linkPathtarget
403internal/sync/skill_run.goSyncSkillTargetos.Removesc.Pathtarget
404internal/sync/skills_off.goDetachSkillsos.RemoveentryPathtarget
405internal/sync/skills_off.goDetachSkillsos.Removefoldertarget
406internal/sync/symlink_unix.gocreateLinkos.Symlinktarget, linkPathtarget
407internal/sync/symlink_windows.gocanCreateRelativeLinkos.Mkdirtargettmp
408internal/sync/symlink_windows.gocanCreateRelativeLinkos.MkdirTemptmp
409internal/sync/symlink_windows.gocanCreateRelativeLinkos.RemoveAlldirtmp
410internal/sync/symlink_windows.gocreateLinkos.SymlinkabsSource, absTargettarget
411internal/sync/symlink_windows.gocreateLinkos.SymlinkabsSource, absTargettarget
412internal/sync/symlink_windows.gocreateLinkos.Symlinkrel, linkPathtarget
413internal/sync/symlink_windows.goplatformCanCreateFileLinkos.MkdirTemptmp
414internal/sync/symlink_windows.goplatformCanCreateFileLinkos.RemoveAlldirtmp
415internal/sync/symlink_windows.goplatformCanCreateFileLinkos.WriteFiletargettmp
416internal/sync/sync.goCreateSymlinkos.MkdirAllfilepath.Dir(targetPath)target
417internal/sync/sync.goMigrateToSourceos.MkdirAllfilepath.Dir(sourcePath)source-unmigrated
418internal/sync/sync.goMigrateToSourceos.RemoveAlltargetPathtarget
419internal/sync/sync.goMigrateToSourceos.RemoveAlltargetPathtarget
420internal/sync/sync.goMigrateToSourceos.RenametargetPath, sourcePathsource-unmigrated
421internal/sync/sync.goPruneOrphanLinksWithSkillsos.RemoveAllentryPathtarget
422internal/sync/sync.goSyncTargetos.Removesc.Pathtarget
423internal/sync/sync.goSyncTargetMergeWithSkillsos.RemovetargetSkillPathtarget
424internal/sync/sync.goSyncTargetMergeWithSkillsos.RemoveAlltargetSkillPathtarget
425internal/sync/sync.gocopyDirectoryWithStateos.MkdirAlldstPathsource-unmigrated
426internal/sync/sync.gocopyFileos.OpenFiledstsource-unmigrated
427internal/sync/sync.goensureRealTargetDiros.MkdirAlltargetPathtarget
428internal/sync/sync.goensureRealTargetDiros.MkdirAlltargetPathtarget
429internal/sync/sync.goensureRealTargetDiros.RemovetargetPathtarget
430internal/sync/sync.gomergeDirectoriesos.MkdirAlldstPathsource-unmigrated
431internal/sync/target_naming_migration.goselectActiveTargetNameForSyncos.RenamelegacyPath, desiredPathtarget
432internal/testutil/git_helpers.goSeedRemoteBranchos.MkdirAllfilepath.Dir(full)test-helper
433internal/testutil/git_helpers.goSeedRemoteBranchos.WriteFilefulltest-helper
434internal/testutil/testutil.go(*Sandbox).CreateNestedSkillos.MkdirAllskillDirtest-helper
435internal/testutil/testutil.go(*Sandbox).CreateNestedSkillos.WriteFilepathtest-helper
436internal/testutil/testutil.go(*Sandbox).CreateProjectSkillos.MkdirAllskillDirtest-helper
437internal/testutil/testutil.go(*Sandbox).CreateProjectSkillos.WriteFilepathtest-helper
438internal/testutil/testutil.go(*Sandbox).CreateSkillos.MkdirAllskillDirtest-helper
439internal/testutil/testutil.go(*Sandbox).CreateSkillos.WriteFilepathtest-helper
440internal/testutil/testutil.go(*Sandbox).CreateSymlinkos.MkdirAlldirtest-helper
441internal/testutil/testutil.go(*Sandbox).CreateSymlinkos.Symlinktarget, linktest-helper
442internal/testutil/testutil.go(*Sandbox).CreateTargetos.MkdirAllpathtest-helper
443internal/testutil/testutil.go(*Sandbox).SetupProjectDiros.MkdirAlldirtest-helper
444internal/testutil/testutil.go(*Sandbox).SetupProjectDiros.MkdirAllfilepath.Join(projectRoot, p)test-helper
445internal/testutil/testutil.go(*Sandbox).WriteConfigos.MkdirAlldirtest-helper
446internal/testutil/testutil.go(*Sandbox).WriteConfigos.WriteFilesb.ConfigPathtest-helper
447internal/testutil/testutil.go(*Sandbox).WriteFileos.MkdirAlldirtest-helper
448internal/testutil/testutil.go(*Sandbox).WriteFileos.WriteFilepathtest-helper
449internal/testutil/testutil.go(*Sandbox).WriteProjectConfigos.MkdirAlldirtest-helper
450internal/testutil/testutil.go(*Sandbox).WriteProjectConfigos.WriteFilepathtest-helper
451internal/testutil/testutil.goNewSandboxos.MkdirAlldirtest-helper
452internal/trash/trash.goCleanupos.RemoveAllitem.Pathtrash
453internal/trash/trash.goMoveAgentToTrashos.MkdirAlltrashDirtrash
454internal/trash/trash.goMoveAgentToTrashos.RemoveagentFileagents
455internal/trash/trash.goMoveAgentToTrashos.RemovemetaFileagents
456internal/trash/trash.goMoveAgentToTrashos.RenameagentFile, destFileagents
457internal/trash/trash.goMoveAgentToTrashos.RenamemetaFile, destMetaagents
458internal/trash/trash.goMoveAgentToTrashos.WriteFiledestFiletrash
459internal/trash/trash.goMoveAgentToTrashos.WriteFiledestMetatrash
460internal/trash/trash.goMoveToTrashos.MkdirAllfilepath.Dir(trashPath)trash
461internal/trash/trash.goMoveToTrashos.RemoveAllsrcPathsource-checked
462internal/trash/trash.goMoveToTrashos.RenamesrcPath, trashPathsource-checked
463internal/trash/trash.goRestoreos.MkdirAllfilepath.Dir(destPath)source-unmigrated
464internal/trash/trash.goRestoreos.RemoveAllentry.Pathtrash
465internal/trash/trash.goRestoreos.Renameentry.Path, destPathsource-unmigrated
466internal/trash/trash.goRestoreAgentos.MkdirAlltargetDiragents
467internal/trash/trash.goRestoreAgentos.RemoveAllentry.Pathtrash
468internal/trash/trash.goRestoreAgentos.RenamesrcPath, destPathagents
469internal/trash/trash.goRestoreAgentos.WriteFiledestPathagents
470internal/trash/trash.gocleanEmptyParentsos.Removedirtrash
471internal/trash/trash.gocopyDiros.MkdirAlldstsource-unmigrated
472internal/trash/trash.gocopyFileos.OpenFiledstsource-unmigrated
473internal/uidist/uidist.goClearCacheos.RemoveAlldirconfig
474internal/uidist/uidist.goClearVersionos.RemoveAlldirconfig
475internal/uidist/uidist.goDownloados.MkdirAlldirconfig
476internal/uidist/uidist.goDownloados.RemovetmpFileconfig
477internal/uidist/uidist.goDownloados.RemoveAlldirconfig
478internal/uidist/uidist.gocleanOldVersionsos.RemoveAllfilepath.Join(uiDir, e.Name())config
479internal/uidist/uidist.godownloadToTempos.CreateTempconfig
480internal/uidist/uidist.godownloadToTempos.Removetmp.Name()config
481internal/uidist/uidist.goextractTarGzos.MkdirAllfilepath.Dir(target)config
482internal/uidist/uidist.goextractTarGzos.MkdirAlltargetconfig
483internal/uidist/uidist.goextractTarGzos.OpenFiletargetconfig
484internal/utils/frontmatter_write.goSetFrontmatterListos.WriteFilefilePathsource-unmigrated
485internal/utils/frontmatter_write.goToggleFrontmatterFlagos.WriteFilefilePathsource-unmigrated
486internal/utils/frontmatter_write.goToggleFrontmatterFlagos.WriteFilefilePathsource-unmigrated
487internal/version/check.goClearCacheos.RemovegetCachePath()config
488internal/version/check.gocleanupLegacyCacheos.RemovelegacyPathconfig
489internal/version/check.gocleanupLegacyCacheos.RemoveparentDirconfig
490internal/version/check.gosaveCacheAtos.MkdirAllfilepath.Dir(cachePath)config
491internal/version/check.gosaveCacheAtos.WriteFilecachePathconfig