@agimon-ai/doompi-git 0.0.1-alpha.16 → 0.0.1-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/schemas/apiContracts.cjs → apiContracts.cjs} +9 -7
- package/dist/apiContracts.cjs.map +1 -0
- package/dist/{src/schemas/apiContracts.d.mts.map → apiContracts.d.mts.map} +1 -1
- package/dist/{src/schemas/apiContracts.mjs → apiContracts.mjs} +2 -2
- package/dist/apiContracts.mjs.map +1 -0
- package/dist/extensions/pi.cjs +82 -12
- package/dist/extensions/pi.cjs.map +1 -1
- package/dist/extensions/pi.d.mts +2 -3
- package/dist/extensions/pi.d.mts.map +1 -1
- package/dist/extensions/pi.mjs +76 -6
- package/dist/extensions/pi.mjs.map +1 -1
- package/dist/extensions/server.cjs +442 -22
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts +1 -1
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +429 -9
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/gitDependencies-C4rNqWB3.mjs +22 -0
- package/dist/gitDependencies-C4rNqWB3.mjs.map +1 -0
- package/dist/gitDependencies-aS4JV4T6.cjs +33 -0
- package/dist/gitDependencies-aS4JV4T6.cjs.map +1 -0
- package/dist/index-BQq2vblZ.d.mts +143 -0
- package/dist/index-BQq2vblZ.d.mts.map +1 -0
- package/dist/index.cjs +3 -4
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +1 -2
- package/dist/runWorktree-4Y-9N-xc.cjs +318 -0
- package/dist/runWorktree-4Y-9N-xc.cjs.map +1 -0
- package/dist/{src/services/runWorktree/index.mjs → runWorktree-DYMe2tpB.mjs} +150 -4
- package/dist/runWorktree-DYMe2tpB.mjs.map +1 -0
- package/dist/worktreeOperations-48AZFket.mjs +981 -0
- package/dist/worktreeOperations-48AZFket.mjs.map +1 -0
- package/dist/worktreeOperations-B870r6so.cjs +1065 -0
- package/dist/worktreeOperations-B870r6so.cjs.map +1 -0
- package/package.json +16 -16
- package/dist/_virtual/_rolldown/runtime.cjs +0 -23
- package/dist/api-contracts.cjs +0 -7
- package/dist/api-contracts.d.cts +0 -2
- package/dist/api-contracts.d.mts +0 -2
- package/dist/api-contracts.mjs +0 -2
- package/dist/extensions/pi.d.cts +0 -7
- package/dist/extensions/pi.d.cts.map +0 -1
- package/dist/extensions/server.d.cts +0 -5
- package/dist/extensions/server.d.cts.map +0 -1
- package/dist/index.d.cts +0 -4
- package/dist/src/constants/git.cjs +0 -8
- package/dist/src/constants/git.cjs.map +0 -1
- package/dist/src/constants/git.mjs +0 -7
- package/dist/src/constants/git.mjs.map +0 -1
- package/dist/src/extensions/(backend)/api/_lib/route.server.cjs +0 -93
- package/dist/src/extensions/(backend)/api/_lib/route.server.cjs.map +0 -1
- package/dist/src/extensions/(backend)/api/_lib/route.server.mjs +0 -92
- package/dist/src/extensions/(backend)/api/_lib/route.server.mjs.map +0 -1
- package/dist/src/extensions/(backend)/api/route.server.cjs +0 -7
- package/dist/src/extensions/(backend)/api/route.server.cjs.map +0 -1
- package/dist/src/extensions/(backend)/api/route.server.mjs +0 -8
- package/dist/src/extensions/(backend)/api/route.server.mjs.map +0 -1
- package/dist/src/extensions/(backend)/channel/_lib/git-worktrees.server.cjs +0 -226
- package/dist/src/extensions/(backend)/channel/_lib/git-worktrees.server.cjs.map +0 -1
- package/dist/src/extensions/(backend)/channel/_lib/git-worktrees.server.mjs +0 -225
- package/dist/src/extensions/(backend)/channel/_lib/git-worktrees.server.mjs.map +0 -1
- package/dist/src/extensions/(backend)/channel/git-worktrees.server.cjs +0 -7
- package/dist/src/extensions/(backend)/channel/git-worktrees.server.cjs.map +0 -1
- package/dist/src/extensions/(backend)/channel/git-worktrees.server.mjs +0 -8
- package/dist/src/extensions/(backend)/channel/git-worktrees.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.cli.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.cli.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.server.cjs +0 -73
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.server.mjs +0 -72
- package/dist/src/extensions/workspaces/sessions/(backend)/_lib/root.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/command/_lib/git.cli.cjs +0 -17
- package/dist/src/extensions/workspaces/sessions/(backend)/command/_lib/git.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/command/_lib/git.cli.mjs +0 -16
- package/dist/src/extensions/workspaces/sessions/(backend)/command/_lib/git.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/command/git.cli.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/command/git.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/command/git.cli.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/command/git.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompi-use-git.cli.cjs +0 -15
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompi-use-git.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompi-use-git.cli.mjs +0 -15
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompi-use-git.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGit.server.cjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGit.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGit.server.mjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGit.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGitReadme.server.cjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGitReadme.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGitReadme.server.mjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiGitReadme.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiUseGit.server.cjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiUseGit.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiUseGit.server.mjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/_lib/doompiUseGit.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompi-use-git.cli.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompi-use-git.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompi-use-git.cli.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompi-use-git.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGit.server.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGit.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGit.server.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGit.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGitReadme.server.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGitReadme.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGitReadme.server.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiGitReadme.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiUseGit.server.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiUseGit.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiUseGit.server.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/resource/doompiUseGit.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/root.server.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/root.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/root.server.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/root.server.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/_lib/runWorktree.cli.cjs +0 -38
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/_lib/runWorktree.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/_lib/runWorktree.cli.mjs +0 -36
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/_lib/runWorktree.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.cli.cjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.cli.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.cli.mjs +0 -8
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.cli.mjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.server.cjs +0 -6
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.server.cjs.map +0 -1
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.server.mjs +0 -7
- package/dist/src/extensions/workspaces/sessions/(backend)/tool/runWorktree.server.mjs.map +0 -1
- package/dist/src/schemas/apiContracts.cjs.map +0 -1
- package/dist/src/schemas/apiContracts.d.cts +0 -53
- package/dist/src/schemas/apiContracts.d.cts.map +0 -1
- package/dist/src/schemas/apiContracts.mjs.map +0 -1
- package/dist/src/schemas/runWorktreeTool.cjs +0 -152
- package/dist/src/schemas/runWorktreeTool.cjs.map +0 -1
- package/dist/src/schemas/runWorktreeTool.mjs +0 -150
- package/dist/src/schemas/runWorktreeTool.mjs.map +0 -1
- package/dist/src/services/atomicJson/index.cjs +0 -42
- package/dist/src/services/atomicJson/index.cjs.map +0 -1
- package/dist/src/services/atomicJson/index.mjs +0 -38
- package/dist/src/services/atomicJson/index.mjs.map +0 -1
- package/dist/src/services/compositionMirror/index.cjs +0 -119
- package/dist/src/services/compositionMirror/index.cjs.map +0 -1
- package/dist/src/services/compositionMirror/index.mjs +0 -116
- package/dist/src/services/compositionMirror/index.mjs.map +0 -1
- package/dist/src/services/errors/index.cjs +0 -29
- package/dist/src/services/errors/index.cjs.map +0 -1
- package/dist/src/services/errors/index.mjs +0 -27
- package/dist/src/services/errors/index.mjs.map +0 -1
- package/dist/src/services/extensionService/index.cjs +0 -13
- package/dist/src/services/extensionService/index.cjs.map +0 -1
- package/dist/src/services/extensionService/index.d.cts +0 -7
- package/dist/src/services/extensionService/index.d.cts.map +0 -1
- package/dist/src/services/extensionService/index.d.mts +0 -7
- package/dist/src/services/extensionService/index.d.mts.map +0 -1
- package/dist/src/services/extensionService/index.mjs +0 -13
- package/dist/src/services/extensionService/index.mjs.map +0 -1
- package/dist/src/services/gitCli/index.cjs +0 -144
- package/dist/src/services/gitCli/index.cjs.map +0 -1
- package/dist/src/services/gitCli/index.mjs +0 -142
- package/dist/src/services/gitCli/index.mjs.map +0 -1
- package/dist/src/services/gitDependencies/index.cjs +0 -14
- package/dist/src/services/gitDependencies/index.cjs.map +0 -1
- package/dist/src/services/gitDependencies/index.d.cts +0 -5
- package/dist/src/services/gitDependencies/index.d.cts.map +0 -1
- package/dist/src/services/gitDependencies/index.d.mts +0 -5
- package/dist/src/services/gitDependencies/index.d.mts.map +0 -1
- package/dist/src/services/gitDependencies/index.mjs +0 -14
- package/dist/src/services/gitDependencies/index.mjs.map +0 -1
- package/dist/src/services/paths/index.cjs +0 -75
- package/dist/src/services/paths/index.cjs.map +0 -1
- package/dist/src/services/paths/index.mjs +0 -69
- package/dist/src/services/paths/index.mjs.map +0 -1
- package/dist/src/services/repositoryIdentity/index.cjs +0 -71
- package/dist/src/services/repositoryIdentity/index.cjs.map +0 -1
- package/dist/src/services/repositoryIdentity/index.mjs +0 -65
- package/dist/src/services/repositoryIdentity/index.mjs.map +0 -1
- package/dist/src/services/runWorktree/index.cjs +0 -146
- package/dist/src/services/runWorktree/index.cjs.map +0 -1
- package/dist/src/services/runWorktree/index.mjs.map +0 -1
- package/dist/src/services/worktreeEvents/index.cjs +0 -64
- package/dist/src/services/worktreeEvents/index.cjs.map +0 -1
- package/dist/src/services/worktreeEvents/index.d.cts +0 -14
- package/dist/src/services/worktreeEvents/index.d.cts.map +0 -1
- package/dist/src/services/worktreeEvents/index.d.mts +0 -14
- package/dist/src/services/worktreeEvents/index.d.mts.map +0 -1
- package/dist/src/services/worktreeEvents/index.mjs +0 -60
- package/dist/src/services/worktreeEvents/index.mjs.map +0 -1
- package/dist/src/services/worktreeNaming/index.cjs +0 -99
- package/dist/src/services/worktreeNaming/index.cjs.map +0 -1
- package/dist/src/services/worktreeNaming/index.d.cts +0 -33
- package/dist/src/services/worktreeNaming/index.d.cts.map +0 -1
- package/dist/src/services/worktreeNaming/index.d.mts +0 -33
- package/dist/src/services/worktreeNaming/index.d.mts.map +0 -1
- package/dist/src/services/worktreeNaming/index.mjs +0 -94
- package/dist/src/services/worktreeNaming/index.mjs.map +0 -1
- package/dist/src/services/worktreeOperations/index.cjs +0 -363
- package/dist/src/services/worktreeOperations/index.cjs.map +0 -1
- package/dist/src/services/worktreeOperations/index.d.cts +0 -41
- package/dist/src/services/worktreeOperations/index.d.cts.map +0 -1
- package/dist/src/services/worktreeOperations/index.d.mts +0 -41
- package/dist/src/services/worktreeOperations/index.d.mts.map +0 -1
- package/dist/src/services/worktreeOperations/index.mjs +0 -361
- package/dist/src/services/worktreeOperations/index.mjs.map +0 -1
- package/dist/src/services/worktreeRegistry/index.cjs +0 -66
- package/dist/src/services/worktreeRegistry/index.cjs.map +0 -1
- package/dist/src/services/worktreeRegistry/index.mjs +0 -63
- package/dist/src/services/worktreeRegistry/index.mjs.map +0 -1
- package/dist/src/types/extension.d.cts +0 -16
- package/dist/src/types/extension.d.cts.map +0 -1
- package/dist/src/types/extension.d.mts +0 -16
- package/dist/src/types/extension.d.mts.map +0 -1
- package/dist/src/types/webWorktrees.cjs +0 -20
- package/dist/src/types/webWorktrees.cjs.map +0 -1
- package/dist/src/types/webWorktrees.mjs +0 -20
- package/dist/src/types/webWorktrees.mjs.map +0 -1
- package/dist/src/types/worktreeRegistry.d.cts +0 -40
- package/dist/src/types/worktreeRegistry.d.cts.map +0 -1
- package/dist/src/types/worktreeRegistry.d.mts +0 -40
- package/dist/src/types/worktreeRegistry.d.mts.map +0 -1
- /package/dist/{src/schemas/apiContracts.d.mts → apiContracts.d.mts} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/types/webWorktrees.ts
|
|
2
|
-
/**
|
|
3
|
-
* The cockpit's view of this session's worktrees.
|
|
4
|
-
*
|
|
5
|
-
* DESIGN PATTERNS:
|
|
6
|
-
* - Declarations only. The channel frame type is a constant so the hub and the
|
|
7
|
-
* page cannot drift apart on a string.
|
|
8
|
-
* - A view is the subset of a record the dock needs, not the record. The
|
|
9
|
-
* registry may hold paths and provenance the page has no business rendering.
|
|
10
|
-
*
|
|
11
|
-
* AVOID:
|
|
12
|
-
* - Adding behaviour here. This file is imported by browser code, so it must
|
|
13
|
-
* stay free of node builtins.
|
|
14
|
-
*/
|
|
15
|
-
/** The data channel carrying one session's worktrees to the page. */
|
|
16
|
-
const GIT_WORKTREES_TYPE = "git_worktrees";
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.GIT_WORKTREES_TYPE = GIT_WORKTREES_TYPE;
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=webWorktrees.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webWorktrees.cjs","names":[],"sources":["../../../src/types/webWorktrees.ts"],"sourcesContent":["/**\n * The cockpit's view of this session's worktrees.\n *\n * DESIGN PATTERNS:\n * - Declarations only. The channel frame type is a constant so the hub and the\n * page cannot drift apart on a string.\n * - A view is the subset of a record the dock needs, not the record. The\n * registry may hold paths and provenance the page has no business rendering.\n *\n * AVOID:\n * - Adding behaviour here. This file is imported by browser code, so it must\n * stay free of node builtins.\n */\n\n/** The data channel carrying one session's worktrees to the page. */\nexport const GIT_WORKTREES_TYPE = 'git_worktrees';\n\n/** One worktree, as the activity dock and its panel render it. */\nexport interface WorktreeView {\n id: string;\n branch: string;\n path: string;\n /** The session the hub started for this worktree, when it is still live. */\n sessionId: string | null;\n /** True once the directory the record names has gone missing. */\n orphaned: boolean;\n /**\n * True when the session that asked for this worktree is gone.\n *\n * An owned worktree is only ever shown to its own session. This flag marks\n * the exception: once the parent is dead nobody would see the worktree at\n * all, so every session in the repository does, and may close it.\n */\n unowned: boolean;\n}\n\n/**\n * What the panel asks the hub channel to do.\n *\n * The dock acts through its own channel rather than through the agent: a\n * worktree made from the panel and one made by the tool take the same\n * `worktreeOperations` path, but the panel no longer has to spend a turn of\n * the conversation to get there.\n */\nexport type GitWorktreesCommand =\n | { action: 'create'; branch: string; baseRef?: string; reservationId?: string }\n | { action: 'close'; id: string; force?: boolean };\n\nexport type WorktreeErrorTarget = { action: 'create' } | { action: 'close'; id: string };\n\nexport interface GitWorktreesPayload {\n worktrees: WorktreeView[];\n /** Label of the operation in flight, absent when the session is idle. */\n pending?: string;\n /** The last failure, cleared when the next command starts. */\n error?: string;\n /** The operation that produced the last failure, when known. */\n errorTarget?: WorktreeErrorTarget;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAa,qBAAqB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/types/webWorktrees.ts
|
|
2
|
-
/**
|
|
3
|
-
* The cockpit's view of this session's worktrees.
|
|
4
|
-
*
|
|
5
|
-
* DESIGN PATTERNS:
|
|
6
|
-
* - Declarations only. The channel frame type is a constant so the hub and the
|
|
7
|
-
* page cannot drift apart on a string.
|
|
8
|
-
* - A view is the subset of a record the dock needs, not the record. The
|
|
9
|
-
* registry may hold paths and provenance the page has no business rendering.
|
|
10
|
-
*
|
|
11
|
-
* AVOID:
|
|
12
|
-
* - Adding behaviour here. This file is imported by browser code, so it must
|
|
13
|
-
* stay free of node builtins.
|
|
14
|
-
*/
|
|
15
|
-
/** The data channel carrying one session's worktrees to the page. */
|
|
16
|
-
const GIT_WORKTREES_TYPE = "git_worktrees";
|
|
17
|
-
//#endregion
|
|
18
|
-
export { GIT_WORKTREES_TYPE };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=webWorktrees.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webWorktrees.mjs","names":[],"sources":["../../../src/types/webWorktrees.ts"],"sourcesContent":["/**\n * The cockpit's view of this session's worktrees.\n *\n * DESIGN PATTERNS:\n * - Declarations only. The channel frame type is a constant so the hub and the\n * page cannot drift apart on a string.\n * - A view is the subset of a record the dock needs, not the record. The\n * registry may hold paths and provenance the page has no business rendering.\n *\n * AVOID:\n * - Adding behaviour here. This file is imported by browser code, so it must\n * stay free of node builtins.\n */\n\n/** The data channel carrying one session's worktrees to the page. */\nexport const GIT_WORKTREES_TYPE = 'git_worktrees';\n\n/** One worktree, as the activity dock and its panel render it. */\nexport interface WorktreeView {\n id: string;\n branch: string;\n path: string;\n /** The session the hub started for this worktree, when it is still live. */\n sessionId: string | null;\n /** True once the directory the record names has gone missing. */\n orphaned: boolean;\n /**\n * True when the session that asked for this worktree is gone.\n *\n * An owned worktree is only ever shown to its own session. This flag marks\n * the exception: once the parent is dead nobody would see the worktree at\n * all, so every session in the repository does, and may close it.\n */\n unowned: boolean;\n}\n\n/**\n * What the panel asks the hub channel to do.\n *\n * The dock acts through its own channel rather than through the agent: a\n * worktree made from the panel and one made by the tool take the same\n * `worktreeOperations` path, but the panel no longer has to spend a turn of\n * the conversation to get there.\n */\nexport type GitWorktreesCommand =\n | { action: 'create'; branch: string; baseRef?: string; reservationId?: string }\n | { action: 'close'; id: string; force?: boolean };\n\nexport type WorktreeErrorTarget = { action: 'create' } | { action: 'close'; id: string };\n\nexport interface GitWorktreesPayload {\n worktrees: WorktreeView[];\n /** Label of the operation in flight, absent when the session is idle. */\n pending?: string;\n /** The last failure, cleared when the next command starts. */\n error?: string;\n /** The operation that produced the last failure, when known. */\n errorTarget?: WorktreeErrorTarget;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAa,qBAAqB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
//#region src/types/worktreeRegistry.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* The worktree registry: what this package knows about the worktrees it made.
|
|
4
|
-
*
|
|
5
|
-
* It deliberately does not mirror `git worktree list`. Git knows which
|
|
6
|
-
* worktrees exist; only this registry knows which of them this package created,
|
|
7
|
-
* which session runs in each, and which process to signal. Reconciling the two
|
|
8
|
-
* is how orphans are found, so the two views are kept separate on purpose.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* A worktree's lifecycle as this package sees it.
|
|
12
|
-
*
|
|
13
|
-
* `orphaned` is a finding, not a cleanup: the session process is gone or the
|
|
14
|
-
* directory has vanished, but the worktree may still hold uncommitted work, so
|
|
15
|
-
* the record is kept until someone decides what to do with it.
|
|
16
|
-
*/
|
|
17
|
-
export type WorktreeStatus = 'spawning' | 'running' | 'closing' | 'orphaned';
|
|
18
|
-
export declare const WORKTREE_RECORD_VERSION = 1;
|
|
19
|
-
export interface WorktreeRecord {
|
|
20
|
-
version: typeof WORKTREE_RECORD_VERSION;
|
|
21
|
-
/** This registry's own id, distinct from the session id, and stable across restarts. */
|
|
22
|
-
id: string;
|
|
23
|
-
/** The branch checked out in the worktree. */
|
|
24
|
-
branch: string;
|
|
25
|
-
/** The ref the branch was created from, kept so a merge can name its base. */
|
|
26
|
-
baseRef: string;
|
|
27
|
-
/** Absolute path to the worktree directory. */
|
|
28
|
-
path: string;
|
|
29
|
-
/** Absolute path to the repository the worktree belongs to. */
|
|
30
|
-
repositoryRoot: string;
|
|
31
|
-
/** The session spawned into the worktree. */
|
|
32
|
-
sessionId: string;
|
|
33
|
-
/** The session that asked for the worktree; the rail nests one under the other. */
|
|
34
|
-
parentSessionId: string;
|
|
35
|
-
status: WorktreeStatus;
|
|
36
|
-
/** ISO 8601. */
|
|
37
|
-
createdAt: string;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//# sourceMappingURL=worktreeRegistry.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worktreeRegistry.d.cts","names":[],"sources":["../../../src/types/worktreeRegistry.ts"],"mappings":";;;;;;;;;;;;;;;;YAgBY;qBAEC;iBAEI;EACf,gBAAgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,QAAQ;;EAER"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
//#region src/types/worktreeRegistry.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* The worktree registry: what this package knows about the worktrees it made.
|
|
4
|
-
*
|
|
5
|
-
* It deliberately does not mirror `git worktree list`. Git knows which
|
|
6
|
-
* worktrees exist; only this registry knows which of them this package created,
|
|
7
|
-
* which session runs in each, and which process to signal. Reconciling the two
|
|
8
|
-
* is how orphans are found, so the two views are kept separate on purpose.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* A worktree's lifecycle as this package sees it.
|
|
12
|
-
*
|
|
13
|
-
* `orphaned` is a finding, not a cleanup: the session process is gone or the
|
|
14
|
-
* directory has vanished, but the worktree may still hold uncommitted work, so
|
|
15
|
-
* the record is kept until someone decides what to do with it.
|
|
16
|
-
*/
|
|
17
|
-
export type WorktreeStatus = 'spawning' | 'running' | 'closing' | 'orphaned';
|
|
18
|
-
export declare const WORKTREE_RECORD_VERSION = 1;
|
|
19
|
-
export interface WorktreeRecord {
|
|
20
|
-
version: typeof WORKTREE_RECORD_VERSION;
|
|
21
|
-
/** This registry's own id, distinct from the session id, and stable across restarts. */
|
|
22
|
-
id: string;
|
|
23
|
-
/** The branch checked out in the worktree. */
|
|
24
|
-
branch: string;
|
|
25
|
-
/** The ref the branch was created from, kept so a merge can name its base. */
|
|
26
|
-
baseRef: string;
|
|
27
|
-
/** Absolute path to the worktree directory. */
|
|
28
|
-
path: string;
|
|
29
|
-
/** Absolute path to the repository the worktree belongs to. */
|
|
30
|
-
repositoryRoot: string;
|
|
31
|
-
/** The session spawned into the worktree. */
|
|
32
|
-
sessionId: string;
|
|
33
|
-
/** The session that asked for the worktree; the rail nests one under the other. */
|
|
34
|
-
parentSessionId: string;
|
|
35
|
-
status: WorktreeStatus;
|
|
36
|
-
/** ISO 8601. */
|
|
37
|
-
createdAt: string;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//# sourceMappingURL=worktreeRegistry.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worktreeRegistry.d.mts","names":[],"sources":["../../../src/types/worktreeRegistry.ts"],"mappings":";;;;;;;;;;;;;;;;YAgBY;qBAEC;iBAEI;EACf,gBAAgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,QAAQ;;EAER"}
|
|
File without changes
|