@statewalker/vcs-commands 0.1.1
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/LICENSE +21 -0
- package/README.md +591 -0
- package/dist/commands/add-command.d.ts +170 -0
- package/dist/commands/add-command.d.ts.map +1 -0
- package/dist/commands/blame-command.d.ts +267 -0
- package/dist/commands/blame-command.d.ts.map +1 -0
- package/dist/commands/branch-command.d.ts +211 -0
- package/dist/commands/branch-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +261 -0
- package/dist/commands/checkout-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +128 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -0
- package/dist/commands/clean-command.d.ts +91 -0
- package/dist/commands/clean-command.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +233 -0
- package/dist/commands/clone-command.d.ts.map +1 -0
- package/dist/commands/commit-command.d.ts +199 -0
- package/dist/commands/commit-command.d.ts.map +1 -0
- package/dist/commands/describe-command.d.ts +175 -0
- package/dist/commands/describe-command.d.ts.map +1 -0
- package/dist/commands/diff-command.d.ts +96 -0
- package/dist/commands/diff-command.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +266 -0
- package/dist/commands/fetch-command.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +83 -0
- package/dist/commands/gc-command.d.ts.map +1 -0
- package/dist/commands/index.d.ts +32 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/init-command.d.ts +175 -0
- package/dist/commands/init-command.d.ts.map +1 -0
- package/dist/commands/log-command.d.ts +246 -0
- package/dist/commands/log-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +122 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +169 -0
- package/dist/commands/merge-command.d.ts.map +1 -0
- package/dist/commands/pack-refs-command.d.ts +57 -0
- package/dist/commands/pack-refs-command.d.ts.map +1 -0
- package/dist/commands/pull-command.d.ts +111 -0
- package/dist/commands/pull-command.d.ts.map +1 -0
- package/dist/commands/push-command.d.ts +220 -0
- package/dist/commands/push-command.d.ts.map +1 -0
- package/dist/commands/rebase-command.d.ts +186 -0
- package/dist/commands/rebase-command.d.ts.map +1 -0
- package/dist/commands/reflog-command.d.ts +45 -0
- package/dist/commands/reflog-command.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +205 -0
- package/dist/commands/remote-command.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +114 -0
- package/dist/commands/reset-command.d.ts.map +1 -0
- package/dist/commands/revert-command.d.ts +129 -0
- package/dist/commands/revert-command.d.ts.map +1 -0
- package/dist/commands/rm-command.d.ts +72 -0
- package/dist/commands/rm-command.d.ts.map +1 -0
- package/dist/commands/stash-apply-command.d.ts +132 -0
- package/dist/commands/stash-apply-command.d.ts.map +1 -0
- package/dist/commands/stash-create-command.d.ts +137 -0
- package/dist/commands/stash-create-command.d.ts.map +1 -0
- package/dist/commands/stash-drop-command.d.ts +63 -0
- package/dist/commands/stash-drop-command.d.ts.map +1 -0
- package/dist/commands/stash-list-command.d.ts +42 -0
- package/dist/commands/stash-list-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +55 -0
- package/dist/commands/status-command.d.ts.map +1 -0
- package/dist/commands/tag-command.d.ts +155 -0
- package/dist/commands/tag-command.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +51 -0
- package/dist/commands/tree-restore.d.ts.map +1 -0
- package/dist/commands-COO4tJhv.js +10274 -0
- package/dist/core-commands/add.command.d.ts +71 -0
- package/dist/core-commands/add.command.d.ts.map +1 -0
- package/dist/core-commands/add.command.impl.d.ts +53 -0
- package/dist/core-commands/add.command.impl.d.ts.map +1 -0
- package/dist/core-commands/checkout.command.d.ts +103 -0
- package/dist/core-commands/checkout.command.d.ts.map +1 -0
- package/dist/core-commands/checkout.command.impl.d.ts +114 -0
- package/dist/core-commands/checkout.command.impl.d.ts.map +1 -0
- package/dist/core-commands/index.d.ts +6 -0
- package/dist/core-commands/index.d.ts.map +1 -0
- package/dist/errors/add-errors.d.ts +16 -0
- package/dist/errors/add-errors.d.ts.map +1 -0
- package/dist/errors/checkout-errors.d.ts +24 -0
- package/dist/errors/checkout-errors.d.ts.map +1 -0
- package/dist/errors/command-errors.d.ts +38 -0
- package/dist/errors/command-errors.d.ts.map +1 -0
- package/dist/errors/commit-errors.d.ts +27 -0
- package/dist/errors/commit-errors.d.ts.map +1 -0
- package/dist/errors/git-api-error.d.ts +9 -0
- package/dist/errors/git-api-error.d.ts.map +1 -0
- package/dist/errors/index.d.ts +13 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +509 -0
- package/dist/errors/merge-errors.d.ts +63 -0
- package/dist/errors/merge-errors.d.ts.map +1 -0
- package/dist/errors/rebase-errors.d.ts +21 -0
- package/dist/errors/rebase-errors.d.ts.map +1 -0
- package/dist/errors/ref-errors.d.ts +63 -0
- package/dist/errors/ref-errors.d.ts.map +1 -0
- package/dist/errors/remote-errors.d.ts +16 -0
- package/dist/errors/remote-errors.d.ts.map +1 -0
- package/dist/errors/stash-errors.d.ts +24 -0
- package/dist/errors/stash-errors.d.ts.map +1 -0
- package/dist/errors/tag-errors.d.ts +11 -0
- package/dist/errors/tag-errors.d.ts.map +1 -0
- package/dist/errors/transport-errors.d.ts +42 -0
- package/dist/errors/transport-errors.d.ts.map +1 -0
- package/dist/git-command.d.ts +139 -0
- package/dist/git-command.d.ts.map +1 -0
- package/dist/git.d.ts +637 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/pack-import/index.d.ts +8 -0
- package/dist/pack-import/index.d.ts.map +1 -0
- package/dist/pack-import/pack-import.d.ts +11 -0
- package/dist/pack-import/pack-import.d.ts.map +1 -0
- package/dist/remote-config/index.d.ts +7 -0
- package/dist/remote-config/index.d.ts.map +1 -0
- package/dist/remote-config/remote-config-store.d.ts +93 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -0
- package/dist/rename/index.d.ts +5 -0
- package/dist/rename/index.d.ts.map +1 -0
- package/dist/rename/similarity-index.d.ts +64 -0
- package/dist/rename/similarity-index.d.ts.map +1 -0
- package/dist/results/cherry-pick-result.d.ts +33 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -0
- package/dist/results/clone-result.d.ts +24 -0
- package/dist/results/clone-result.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +77 -0
- package/dist/results/diff-entry.d.ts.map +1 -0
- package/dist/results/diff-formatter.d.ts +149 -0
- package/dist/results/diff-formatter.d.ts.map +1 -0
- package/dist/results/fetch-result.d.ts +78 -0
- package/dist/results/fetch-result.d.ts.map +1 -0
- package/dist/results/index.d.ts +14 -0
- package/dist/results/index.d.ts.map +1 -0
- package/dist/results/index.js +247 -0
- package/dist/results/init-result.d.ts +23 -0
- package/dist/results/init-result.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +117 -0
- package/dist/results/merge-result.d.ts.map +1 -0
- package/dist/results/pull-result.d.ts +24 -0
- package/dist/results/pull-result.d.ts.map +1 -0
- package/dist/results/push-result.d.ts +71 -0
- package/dist/results/push-result.d.ts.map +1 -0
- package/dist/results/rebase-result.d.ts +108 -0
- package/dist/results/rebase-result.d.ts.map +1 -0
- package/dist/results/revert-result.d.ts +33 -0
- package/dist/results/revert-result.d.ts.map +1 -0
- package/dist/results/stash-result.d.ts +48 -0
- package/dist/results/stash-result.d.ts.map +1 -0
- package/dist/results/status-result.d.ts +48 -0
- package/dist/results/status-result.d.ts.map +1 -0
- package/dist/status-result-BwAyxq6R.js +409 -0
- package/dist/transport-command.d.ts +83 -0
- package/dist/transport-command.d.ts.map +1 -0
- package/dist/tree-merge/index.d.ts +8 -0
- package/dist/tree-merge/index.d.ts.map +1 -0
- package/dist/tree-merge/tree-merge.d.ts +41 -0
- package/dist/tree-merge/tree-merge.d.ts.map +1 -0
- package/dist/types.d.ts +64 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +62 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reset mode for ResetCommand.
|
|
3
|
+
*
|
|
4
|
+
* Based on JGit's ResetCommand.ResetType enum.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ResetMode {
|
|
7
|
+
/** Move HEAD only */
|
|
8
|
+
SOFT = "soft",
|
|
9
|
+
/** Move HEAD and reset staging (default) */
|
|
10
|
+
MIXED = "mixed",
|
|
11
|
+
/** Move HEAD, reset staging, and reset working tree */
|
|
12
|
+
HARD = "hard",
|
|
13
|
+
/** Keep local changes if they're not in the way */
|
|
14
|
+
KEEP = "keep",
|
|
15
|
+
/** Like --hard but preserves untracked files */
|
|
16
|
+
MERGE = "merge"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Branch listing mode for ListBranchCommand.
|
|
20
|
+
*
|
|
21
|
+
* Based on JGit's ListBranchCommand.ListMode enum.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ListBranchMode {
|
|
24
|
+
/** List local branches only (refs/heads/) */
|
|
25
|
+
LOCAL = "local",
|
|
26
|
+
/** List remote tracking branches only (refs/remotes/) */
|
|
27
|
+
REMOTE = "remote",
|
|
28
|
+
/** List both local and remote branches */
|
|
29
|
+
ALL = "all"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Re-export WorkingCopy and related types from core for convenience.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import { WorkingCopy, History, Checkout, Worktree, Blobs, Trees, Commits } from "@statewalker/vcs-commands";
|
|
37
|
+
*
|
|
38
|
+
* // Or import directly from core:
|
|
39
|
+
* import { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export type {
|
|
43
|
+
/** Blobs interface - file content storage */
|
|
44
|
+
Blobs,
|
|
45
|
+
/** Commits interface - commit object storage */
|
|
46
|
+
Commits,
|
|
47
|
+
/** History interface - immutable repository objects */
|
|
48
|
+
History,
|
|
49
|
+
/** Refs interface - branch and tag references */
|
|
50
|
+
Refs,
|
|
51
|
+
/** Tags interface - annotated tag storage */
|
|
52
|
+
Tags,
|
|
53
|
+
/** Trees interface - directory structure storage */
|
|
54
|
+
Trees, } from "@statewalker/vcs-core";
|
|
55
|
+
export type {
|
|
56
|
+
/** Checkout interface - mutable local state */
|
|
57
|
+
Checkout,
|
|
58
|
+
/** Staging interface - index/staging area */
|
|
59
|
+
Staging,
|
|
60
|
+
/** WorkingCopy interface - unified repository access */
|
|
61
|
+
WorkingCopy,
|
|
62
|
+
/** Worktree interface - filesystem access */
|
|
63
|
+
Worktree, } from "@statewalker/vcs-working-tree";
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,SAAS;IACnB,qBAAqB;IACrB,IAAI,SAAS;IACb,4CAA4C;IAC5C,KAAK,UAAU;IACf,uDAAuD;IACvD,IAAI,SAAS;IACb,mDAAmD;IACnD,IAAI,SAAS;IACb,gDAAgD;IAChD,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,cAAc;IACxB,6CAA6C;IAC7C,KAAK,UAAU;IACf,yDAAyD;IACzD,MAAM,WAAW;IACjB,0CAA0C;IAC1C,GAAG,QAAQ;CACZ;AAID;;;;;;;;;;GAUG;AACH,YAAY;AACV,6CAA6C;AAC7C,KAAK;AACL,gDAAgD;AAChD,OAAO;AACP,uDAAuD;AACvD,OAAO;AACP,iDAAiD;AACjD,IAAI;AACJ,6CAA6C;AAC7C,IAAI;AACJ,oDAAoD;AACpD,KAAK,GACN,MAAM,uBAAuB,CAAC;AAE/B,YAAY;AACV,+CAA+C;AAC/C,QAAQ;AACR,6CAA6C;AAC7C,OAAO;AACP,wDAAwD;AACxD,WAAW;AACX,6CAA6C;AAC7C,QAAQ,GACT,MAAM,+BAA+B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@statewalker/vcs-commands",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Git-like VCS commands (commit, checkout, merge, diff, log)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/statewalker/webrun-vcs.git",
|
|
9
|
+
"directory": "packages/commands"
|
|
10
|
+
},
|
|
11
|
+
"private": false,
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./commands": {
|
|
24
|
+
"types": "./dist/commands/index.d.ts",
|
|
25
|
+
"import": "./dist/commands/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./errors": {
|
|
28
|
+
"types": "./dist/errors/index.d.ts",
|
|
29
|
+
"import": "./dist/errors/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./results": {
|
|
32
|
+
"types": "./dist/results/index.d.ts",
|
|
33
|
+
"import": "./dist/results/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@statewalker/vcs-core": "0.1.1",
|
|
41
|
+
"@statewalker/vcs-store-mem": "0.1.1",
|
|
42
|
+
"@statewalker/vcs-store-files": "0.1.1",
|
|
43
|
+
"@statewalker/vcs-transport": "0.1.1",
|
|
44
|
+
"@statewalker/vcs-utils": "0.1.1",
|
|
45
|
+
"@statewalker/vcs-working-tree": "0.1.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^26.2.0",
|
|
49
|
+
"rolldown": "^1.2.4",
|
|
50
|
+
"typescript": "^7.0.2",
|
|
51
|
+
"vitest": "^4.1.10",
|
|
52
|
+
"@statewalker/vcs-transport-adapters": "0.1.1",
|
|
53
|
+
"@statewalker/vcs-utils-node": "0.1.1",
|
|
54
|
+
"@statewalker/vcs-store-sql": "0.1.1"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "rm -rf dist && rolldown -c && tsc --emitDeclarationOnly --declaration",
|
|
58
|
+
"test": "vitest run",
|
|
59
|
+
"lint": "biome lint src tests",
|
|
60
|
+
"typecheck": "tsc --noEmit"
|
|
61
|
+
}
|
|
62
|
+
}
|