The worktree service now records each checkout it creates as a `plugin:worktree/created` record, folds them in its own `worktree` projection with fork-aware ownership, and reclaims a clean, unreferenced checkout when the Session that created it is archived. The Forge panel reads the service's record and forwards its cleanup state; it no longer writes a `created` record, owns a retention projection, or gates every Session's directory access. Admission registers the attempt inside the Workspace write queue and returns; inspection runs afterwards, reading cold Sessions through the projection cache when mounted and from their log otherwise, with subagent children of an archived ancestor counted as archived. Only a path being removed holds `working-directory/access`, whose request now carries the access's `signal`, and listeners withdraw before the drain. Ignored files no longer retain a checkout, matching Git's non-force removal; processes and terminals are not consulted. The Forge bundle mounts one `worktree` service: the `forge-worktree` row and the `optional-forge-panel` group that isolated a second service are gone, and `forge-panel` is a top-level row. `canRemove`, `remove`, the `forgeWorktreeRetention` projection, and `ForgeWorktreeCleanup` are removed; `WorktreeService.cleanupOf`, `WorktreeCleanup`, and the `worktree/cleanup` Host event replace them. The upgrade guide moves to the current version directory and covers the id removals.
83 lines
1.5 KiB
JSON
83 lines
1.5 KiB
JSON
{
|
|
"extends": "../../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"rootDir": "src",
|
|
"outDir": "lib/types",
|
|
"tsBuildInfoFile": "lib/tsconfig.host.tsbuildinfo"
|
|
},
|
|
"files": [
|
|
"src/index.ts",
|
|
"src/diff.ts",
|
|
"src/git.ts",
|
|
"src/local-diff.ts",
|
|
"src/panel.ts",
|
|
"src/parse.ts",
|
|
"src/patch-cache.ts",
|
|
"src/states.ts",
|
|
"src/types.ts",
|
|
"src/worktree.ts"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../../../vendor/cordis"
|
|
},
|
|
{
|
|
"path": "../../../vendor/schemastery"
|
|
},
|
|
{
|
|
"path": "../../api/remote-access/tsconfig.host.json"
|
|
},
|
|
{
|
|
"path": "../../core/agent"
|
|
},
|
|
{
|
|
"path": "../../core/session"
|
|
},
|
|
{
|
|
"path": "../../fs/fs"
|
|
},
|
|
{
|
|
"path": "../../sandbox/sandbox"
|
|
},
|
|
{
|
|
"path": "../../sandbox/sandbox-policy"
|
|
},
|
|
{
|
|
"path": "../../session-query/session-query"
|
|
},
|
|
{
|
|
"path": "../../session/session-projection"
|
|
},
|
|
{
|
|
"path": "../../session/session-projection-cache"
|
|
},
|
|
{
|
|
"path": "../../session/working-directory"
|
|
},
|
|
{
|
|
"path": "../../storage/storage-domain"
|
|
},
|
|
{
|
|
"path": "../../subprocess/subprocess"
|
|
},
|
|
{
|
|
"path": "../../typert/protocol"
|
|
},
|
|
{
|
|
"path": "../../util/timeout"
|
|
},
|
|
{
|
|
"path": "../../util/values"
|
|
},
|
|
{
|
|
"path": "../forge"
|
|
},
|
|
{
|
|
"path": "../forge-session"
|
|
},
|
|
{
|
|
"path": "../worktree"
|
|
}
|
|
]
|
|
}
|