@procedures/git 0.0.0-stage → 0.2.0

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1130 -2
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/index.d.ts +20 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +20 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/module.d.ts +22 -0
  10. package/dist/module.d.ts.map +1 -0
  11. package/dist/module.js +514 -0
  12. package/dist/module.js.map +1 -0
  13. package/dist/procedures/git/add.d.ts +12 -0
  14. package/dist/procedures/git/add.d.ts.map +1 -0
  15. package/dist/procedures/git/add.js +26 -0
  16. package/dist/procedures/git/add.js.map +1 -0
  17. package/dist/procedures/git/args.d.ts +15 -0
  18. package/dist/procedures/git/args.d.ts.map +1 -0
  19. package/dist/procedures/git/args.js +20 -0
  20. package/dist/procedures/git/args.js.map +1 -0
  21. package/dist/procedures/git/branch.d.ts +12 -0
  22. package/dist/procedures/git/branch.d.ts.map +1 -0
  23. package/dist/procedures/git/branch.js +54 -0
  24. package/dist/procedures/git/branch.js.map +1 -0
  25. package/dist/procedures/git/checkout.d.ts +12 -0
  26. package/dist/procedures/git/checkout.d.ts.map +1 -0
  27. package/dist/procedures/git/checkout.js +23 -0
  28. package/dist/procedures/git/checkout.js.map +1 -0
  29. package/dist/procedures/git/clone.d.ts +12 -0
  30. package/dist/procedures/git/clone.d.ts.map +1 -0
  31. package/dist/procedures/git/clone.js +28 -0
  32. package/dist/procedures/git/clone.js.map +1 -0
  33. package/dist/procedures/git/commit.d.ts +12 -0
  34. package/dist/procedures/git/commit.d.ts.map +1 -0
  35. package/dist/procedures/git/commit.js +41 -0
  36. package/dist/procedures/git/commit.js.map +1 -0
  37. package/dist/procedures/git/diff.d.ts +18 -0
  38. package/dist/procedures/git/diff.d.ts.map +1 -0
  39. package/dist/procedures/git/diff.js +58 -0
  40. package/dist/procedures/git/diff.js.map +1 -0
  41. package/dist/procedures/git/fetch.d.ts +12 -0
  42. package/dist/procedures/git/fetch.d.ts.map +1 -0
  43. package/dist/procedures/git/fetch.js +29 -0
  44. package/dist/procedures/git/fetch.js.map +1 -0
  45. package/dist/procedures/git/index.d.ts +15 -0
  46. package/dist/procedures/git/index.d.ts.map +1 -0
  47. package/dist/procedures/git/index.js +15 -0
  48. package/dist/procedures/git/index.js.map +1 -0
  49. package/dist/procedures/git/init.d.ts +12 -0
  50. package/dist/procedures/git/init.d.ts.map +1 -0
  51. package/dist/procedures/git/init.js +32 -0
  52. package/dist/procedures/git/init.js.map +1 -0
  53. package/dist/procedures/git/log.d.ts +12 -0
  54. package/dist/procedures/git/log.d.ts.map +1 -0
  55. package/dist/procedures/git/log.js +35 -0
  56. package/dist/procedures/git/log.js.map +1 -0
  57. package/dist/procedures/git/predicates.d.ts +40 -0
  58. package/dist/procedures/git/predicates.d.ts.map +1 -0
  59. package/dist/procedures/git/predicates.js +76 -0
  60. package/dist/procedures/git/predicates.js.map +1 -0
  61. package/dist/procedures/git/pull.d.ts +12 -0
  62. package/dist/procedures/git/pull.d.ts.map +1 -0
  63. package/dist/procedures/git/pull.js +36 -0
  64. package/dist/procedures/git/pull.js.map +1 -0
  65. package/dist/procedures/git/push.d.ts +12 -0
  66. package/dist/procedures/git/push.d.ts.map +1 -0
  67. package/dist/procedures/git/push.js +39 -0
  68. package/dist/procedures/git/push.js.map +1 -0
  69. package/dist/procedures/git/remote.d.ts +13 -0
  70. package/dist/procedures/git/remote.d.ts.map +1 -0
  71. package/dist/procedures/git/remote.js +30 -0
  72. package/dist/procedures/git/remote.js.map +1 -0
  73. package/dist/procedures/git/run.d.ts +32 -0
  74. package/dist/procedures/git/run.d.ts.map +1 -0
  75. package/dist/procedures/git/run.js +60 -0
  76. package/dist/procedures/git/run.js.map +1 -0
  77. package/dist/procedures/git/stash.d.ts +38 -0
  78. package/dist/procedures/git/stash.d.ts.map +1 -0
  79. package/dist/procedures/git/stash.js +211 -0
  80. package/dist/procedures/git/stash.js.map +1 -0
  81. package/dist/procedures/git/status.d.ts +17 -0
  82. package/dist/procedures/git/status.d.ts.map +1 -0
  83. package/dist/procedures/git/status.js +107 -0
  84. package/dist/procedures/git/status.js.map +1 -0
  85. package/dist/procedures/git.d.ts +5 -0
  86. package/dist/procedures/git.d.ts.map +1 -0
  87. package/dist/procedures/git.js +5 -0
  88. package/dist/procedures/git.js.map +1 -0
  89. package/dist/register.d.ts +7 -0
  90. package/dist/register.d.ts.map +1 -0
  91. package/dist/register.js +9 -0
  92. package/dist/register.js.map +1 -0
  93. package/dist/types.d.ts +350 -0
  94. package/dist/types.d.ts.map +1 -0
  95. package/dist/types.js +397 -0
  96. package/dist/types.js.map +1 -0
  97. package/package.json +77 -3
  98. package/src/index.ts +20 -0
  99. package/src/module.ts +656 -0
  100. package/src/procedures/git/add.ts +29 -0
  101. package/src/procedures/git/args.ts +21 -0
  102. package/src/procedures/git/branch.ts +61 -0
  103. package/src/procedures/git/checkout.ts +27 -0
  104. package/src/procedures/git/clone.ts +33 -0
  105. package/src/procedures/git/commit.ts +46 -0
  106. package/src/procedures/git/diff.ts +62 -0
  107. package/src/procedures/git/fetch.ts +32 -0
  108. package/src/procedures/git/index.ts +22 -0
  109. package/src/procedures/git/init.ts +43 -0
  110. package/src/procedures/git/log.ts +40 -0
  111. package/src/procedures/git/predicates.ts +90 -0
  112. package/src/procedures/git/pull.ts +45 -0
  113. package/src/procedures/git/push.ts +42 -0
  114. package/src/procedures/git/remote.ts +31 -0
  115. package/src/procedures/git/run.ts +70 -0
  116. package/src/procedures/git/stash.ts +255 -0
  117. package/src/procedures/git/status.ts +98 -0
  118. package/src/procedures/git.ts +5 -0
  119. package/src/register.ts +11 -0
  120. package/src/types.ts +815 -0
package/dist/types.js ADDED
@@ -0,0 +1,397 @@
1
+ /**
2
+ * Type definitions for client-git procedures
3
+ */
4
+ import { z } from "zod";
5
+ // =============================================================================
6
+ // git.status Types - Get git status
7
+ // =============================================================================
8
+ export const GitStatusInputSchema = z.object({
9
+ /** Working directory (default: process.cwd()) */
10
+ cwd: z.string().optional().describe("Working directory (default: process.cwd())"),
11
+ /** Show short format (default: false) */
12
+ short: z.boolean().optional().default(false).describe("Show short format (default: false)"),
13
+ });
14
+ // =============================================================================
15
+ // git.add Types - Stage files
16
+ // =============================================================================
17
+ export const GitAddInputSchema = z.object({
18
+ /** Paths to stage (default: []) */
19
+ paths: z.array(z.string()).optional().default([]).describe("Paths to stage (default: [])"),
20
+ /** Stage all changes (default: false) */
21
+ all: z.boolean().optional().default(false).describe("Stage all changes (default: false)"),
22
+ /** Working directory */
23
+ cwd: z.string().optional().describe("Working directory"),
24
+ });
25
+ // =============================================================================
26
+ // git.commit Types - Create commit
27
+ // =============================================================================
28
+ export const GitCommitInputSchema = z.object({
29
+ /** Commit message */
30
+ message: z.string().describe("Commit message"),
31
+ /** Automatically stage modified files (default: false) */
32
+ all: z.boolean().optional().default(false).describe("Automatically stage modified files (default: false)"),
33
+ /** Amend the last commit (default: false) */
34
+ amend: z.boolean().optional().default(false).describe("Amend the last commit (default: false)"),
35
+ /** Working directory */
36
+ cwd: z.string().optional().describe("Working directory"),
37
+ });
38
+ // =============================================================================
39
+ // git.push Types - Push to remote
40
+ // =============================================================================
41
+ export const GitPushInputSchema = z.object({
42
+ /** Remote name (default: origin) */
43
+ remote: z.string().optional().default("origin").describe("Remote name (default: origin)"),
44
+ /** Branch to push (default: current branch) */
45
+ branch: z.string().optional().describe("Branch to push (default: current branch)"),
46
+ /** Force push (default: false) */
47
+ force: z.boolean().optional().default(false).describe("Force push (default: false)"),
48
+ /** Set upstream tracking (default: false) */
49
+ setUpstream: z.boolean().optional().default(false).describe("Set upstream tracking (default: false)"),
50
+ /** Working directory */
51
+ cwd: z.string().optional().describe("Working directory"),
52
+ });
53
+ // =============================================================================
54
+ // git.pull Types - Pull from remote
55
+ // =============================================================================
56
+ export const GitPullInputSchema = z.object({
57
+ /** Remote name (default: origin) */
58
+ remote: z.string().optional().default("origin").describe("Remote name (default: origin)"),
59
+ /** Branch to pull (default: current branch) */
60
+ branch: z.string().optional().describe("Branch to pull (default: current branch)"),
61
+ /** Rebase instead of merge (default: false) */
62
+ rebase: z.boolean().optional().default(false).describe("Rebase instead of merge (default: false)"),
63
+ /** Working directory */
64
+ cwd: z.string().optional().describe("Working directory"),
65
+ });
66
+ // =============================================================================
67
+ // git.clone Types - Clone repository
68
+ // =============================================================================
69
+ export const GitCloneInputSchema = z.object({
70
+ /** Repository URL */
71
+ url: z.string().describe("Repository URL"),
72
+ /** Destination directory (default: derived from URL) */
73
+ dest: z.string().optional().describe("Destination directory (default: derived from URL)"),
74
+ /** Branch to clone (default: default branch) */
75
+ branch: z.string().optional().describe("Branch to clone (default: default branch)"),
76
+ /** Create shallow clone with depth (default: full clone) */
77
+ depth: z.number().optional().describe("Create shallow clone with depth (default: full clone)"),
78
+ /** Working directory */
79
+ cwd: z.string().optional().describe("Working directory"),
80
+ });
81
+ // =============================================================================
82
+ // git.checkout Types - Checkout branch or files
83
+ // =============================================================================
84
+ export const GitCheckoutInputSchema = z.object({
85
+ /** Branch, tag, or commit to checkout */
86
+ ref: z.string().describe("Branch, tag, or commit to checkout"),
87
+ /** Create branch if it doesn't exist (default: false) */
88
+ create: z.boolean().optional().default(false).describe("Create branch if it doesn't exist (default: false)"),
89
+ /** Specific paths to checkout (default: all) */
90
+ paths: z.array(z.string()).optional().describe("Specific paths to checkout (default: all)"),
91
+ /** Working directory */
92
+ cwd: z.string().optional().describe("Working directory"),
93
+ });
94
+ // =============================================================================
95
+ // git.branch Types - Branch operations
96
+ // =============================================================================
97
+ export const GitBranchInputSchema = z.object({
98
+ /** Branch name (for create/delete) */
99
+ name: z.string().optional().describe("Branch name (for create/delete)"),
100
+ /** Delete the branch (default: false) */
101
+ delete: z.boolean().optional().default(false).describe("Delete the branch (default: false)"),
102
+ /** List branches (default: true if no name provided) */
103
+ list: z.boolean().optional().default(false).describe("List branches (default: true if no name provided)"),
104
+ /** Include remote branches in list (default: false) */
105
+ remote: z.boolean().optional().default(false).describe("Include remote branches in list (default: false)"),
106
+ /** Working directory */
107
+ cwd: z.string().optional().describe("Working directory"),
108
+ });
109
+ // =============================================================================
110
+ // git.log Types - Show commit log
111
+ // =============================================================================
112
+ export const GitLogInputSchema = z.object({
113
+ /** Number of commits to show (default: 10) */
114
+ count: z.number().optional().default(10).describe("Number of commits to show (default: 10)"),
115
+ /** One line per commit (default: false) */
116
+ oneline: z.boolean().optional().default(false).describe("One line per commit (default: false)"),
117
+ /** Branch/tag/commit to start from (default: HEAD) */
118
+ ref: z.string().optional().describe("Branch/tag/commit to start from (default: HEAD)"),
119
+ /** Working directory */
120
+ cwd: z.string().optional().describe("Working directory"),
121
+ });
122
+ // =============================================================================
123
+ // git.diff Types - Show changes
124
+ // =============================================================================
125
+ export const GitDiffInputSchema = z.object({
126
+ /** Show staged changes (default: false, shows unstaged) */
127
+ staged: z.boolean().optional().default(false).describe("Show staged changes (default: false, shows unstaged)"),
128
+ /** Compare against ref (branch/commit) */
129
+ ref: z.string().optional().describe("Compare against ref (branch/commit)"),
130
+ /** Specific paths to diff */
131
+ paths: z.array(z.string()).optional().describe("Specific paths to diff"),
132
+ /** Show stat summary only (default: false) */
133
+ stat: z.boolean().optional().default(false).describe("Show stat summary only (default: false)"),
134
+ /** Working directory */
135
+ cwd: z.string().optional().describe("Working directory"),
136
+ });
137
+ // =============================================================================
138
+ // git.init Types - Initialize a git repository
139
+ // =============================================================================
140
+ export const GitInitInputSchema = z.object({
141
+ /** Directory to initialize (default: process.cwd()) */
142
+ cwd: z.string().optional().describe("Directory to initialize (default: process.cwd())"),
143
+ /** Create a bare repository (default: false) */
144
+ bare: z.boolean().optional().default(false).describe("Create a bare repository (default: false)"),
145
+ /** Name for the initial branch */
146
+ initialBranch: z.string().optional().describe("Name for the initial branch"),
147
+ });
148
+ // =============================================================================
149
+ // git.remote Types - Get or set remote URLs
150
+ // =============================================================================
151
+ export const GitRemoteInputSchema = z.object({
152
+ /** Remote name (default: origin) */
153
+ name: z.string().optional().default("origin").describe("Remote name (default: origin)"),
154
+ /** Working directory */
155
+ cwd: z.string().optional().describe("Working directory"),
156
+ });
157
+ /**
158
+ * The input of git.remote.set. Before 0.2.0, `git.remote` with `url` set the URL: one procedure
159
+ * read and wrote, so a reader of the URL had to declare that it writes (CAPABILITIES-2026-10).
160
+ */
161
+ export const GitRemoteSetInputSchema = z.object({
162
+ /** Remote name (default: origin) */
163
+ name: z.string().optional().default("origin").describe("Remote name (default: origin)"),
164
+ /** The URL of the remote: it replaces the URL, or adds the remote when it is missing */
165
+ url: z.string().describe("The URL of the remote: it replaces the URL, or adds the remote when it is missing"),
166
+ /** Working directory */
167
+ cwd: z.string().optional().describe("Working directory"),
168
+ });
169
+ // =============================================================================
170
+ // git.fetch Types - Fetch from remote
171
+ // =============================================================================
172
+ export const GitFetchInputSchema = z.object({
173
+ /** Remote name (default: origin) */
174
+ remote: z.string().optional().default("origin").describe("Remote name (default: origin)"),
175
+ /** Specific branch to fetch (default: all) */
176
+ branch: z.string().optional().describe("Specific branch to fetch (default: all)"),
177
+ /** Fetch all remotes (default: false) */
178
+ all: z.boolean().optional().default(false).describe("Fetch all remotes (default: false)"),
179
+ /** Prune deleted branches (default: false) */
180
+ prune: z.boolean().optional().default(false).describe("Prune deleted branches (default: false)"),
181
+ /** Working directory */
182
+ cwd: z.string().optional().describe("Working directory"),
183
+ });
184
+ // =============================================================================
185
+ // git.* Predicate Types
186
+ // =============================================================================
187
+ export const GitPredicateInputSchema = z.object({
188
+ /** Working directory (default: process.cwd()) */
189
+ cwd: z.string().optional().describe("Working directory (default: process.cwd())"),
190
+ });
191
+ // git.stash.list
192
+ export const GitStashListInputSchema = z.object({
193
+ /** Working directory (default: process.cwd()) */
194
+ cwd: z.string().optional().describe("Working directory (default: process.cwd())"),
195
+ });
196
+ // git.stash.push
197
+ export const GitStashPushInputSchema = z.object({
198
+ /** Stash message */
199
+ message: z.string().optional().describe("Stash message"),
200
+ /** Include untracked files (default: false) */
201
+ includeUntracked: z.boolean().optional().describe("Include untracked files (default: false)"),
202
+ /** Keep staged changes in index (default: false) */
203
+ keepIndex: z.boolean().optional().describe("Keep staged changes in index (default: false)"),
204
+ /** Specific paths to stash */
205
+ paths: z.array(z.string()).optional().describe("Specific paths to stash"),
206
+ /** Working directory */
207
+ cwd: z.string().optional().describe("Working directory"),
208
+ });
209
+ // git.stash.pop
210
+ export const GitStashPopInputSchema = z.object({
211
+ /** Stash index to pop (default: 0 = most recent) */
212
+ index: z.number().optional().describe("Stash index to pop (default: 0 = most recent)"),
213
+ /** Working directory */
214
+ cwd: z.string().optional().describe("Working directory"),
215
+ });
216
+ // git.stash.apply
217
+ export const GitStashApplyInputSchema = z.object({
218
+ /** Stash index to apply (default: 0 = most recent) */
219
+ index: z.number().optional().describe("Stash index to apply (default: 0 = most recent)"),
220
+ /** Working directory */
221
+ cwd: z.string().optional().describe("Working directory"),
222
+ });
223
+ // git.stash.drop
224
+ export const GitStashDropInputSchema = z.object({
225
+ /** Stash index to drop (default: 0 = most recent) */
226
+ index: z.number().optional().describe("Stash index to drop (default: 0 = most recent)"),
227
+ /** Working directory */
228
+ cwd: z.string().optional().describe("Working directory"),
229
+ });
230
+ // git.stash.export - Export stash as patch for snapshot storage
231
+ export const GitStashExportInputSchema = z.object({
232
+ /** Stash index to export (default: 0 = most recent) */
233
+ index: z.number().optional().describe("Stash index to export (default: 0 = most recent)"),
234
+ /** Working directory */
235
+ cwd: z.string().optional().describe("Working directory"),
236
+ });
237
+ // git.stash.import - Import stash from patch
238
+ export const GitStashImportInputSchema = z.object({
239
+ /** Patch content to apply and stash */
240
+ patch: z.string().describe("Patch content to apply and stash"),
241
+ /** Message for the new stash */
242
+ message: z.string().optional().describe("Message for the new stash"),
243
+ /** Include untracked files (default: false) */
244
+ includeUntracked: z.boolean().optional().describe("Include untracked files (default: false)"),
245
+ /** Working directory */
246
+ cwd: z.string().optional().describe("Working directory"),
247
+ });
248
+ // =============================================================================
249
+ // Output schemas (roadmap 2.1)
250
+ // =============================================================================
251
+ // Loose objects: a field that a schema does not name stays in the result (a strict schema would
252
+ // remove it when the output is validated).
253
+ const statusFile = z.looseObject({
254
+ path: z.string().describe("The path of the file (for a rename or a copy, the new path)"),
255
+ from: z.string().optional().describe("For a rename or a copy, the old path"),
256
+ status: z
257
+ .enum(["modified", "added", "deleted", "renamed", "copied", "untracked", "ignored"])
258
+ .describe("The change of the file"),
259
+ staged: z.boolean().describe("True when the change is in the index"),
260
+ });
261
+ export const GitStatusOutputSchema = z.looseObject({
262
+ branch: z.string().describe('The current branch ("HEAD" when detached)'),
263
+ ahead: z.number().describe("The commits that the upstream does not have"),
264
+ behind: z.number().describe("The commits of the upstream that the branch does not have"),
265
+ files: z.array(statusFile).describe("The changed, untracked and ignored files"),
266
+ clean: z.boolean().describe("True when nothing changed"),
267
+ lines: z.array(z.string()).optional().describe("With short: true, one line per file as git status --short gives it"),
268
+ });
269
+ export const GitAddOutputSchema = z.looseObject({
270
+ staged: z.array(z.string()).describe("The files that the call staged"),
271
+ });
272
+ export const GitCommitOutputSchema = z.looseObject({
273
+ hash: z.string().describe("The hash of the new commit"),
274
+ message: z.string().describe("The commit message"),
275
+ author: z.string().describe("The author"),
276
+ date: z.string().describe("The date of the commit"),
277
+ skipped: z.boolean().optional().describe("True when there was nothing to commit"),
278
+ });
279
+ export const GitPushOutputSchema = z.looseObject({
280
+ remote: z.string().describe("The remote"),
281
+ branch: z.string().describe("The branch"),
282
+ commits: z.number().describe("The number of commits that the push sent"),
283
+ });
284
+ export const GitPullOutputSchema = z.looseObject({
285
+ remote: z.string().describe("The remote"),
286
+ branch: z.string().describe("The branch"),
287
+ commits: z.number().describe("The number of commits that the pull brought"),
288
+ fastForward: z.boolean().describe("True for a fast-forward"),
289
+ });
290
+ export const GitCloneOutputSchema = z.looseObject({
291
+ path: z.string().describe("The folder of the clone"),
292
+ branch: z.string().describe("The branch of the clone"),
293
+ });
294
+ export const GitCheckoutOutputSchema = z.looseObject({
295
+ ref: z.string().describe("The branch or the ref that is checked out"),
296
+ created: z.boolean().describe("True when the call made the branch"),
297
+ });
298
+ export const GitBranchOutputSchema = z.looseObject({
299
+ branches: z
300
+ .array(z.looseObject({
301
+ name: z.string().describe("The branch name"),
302
+ current: z.boolean().describe("True for the current branch"),
303
+ remote: z.boolean().describe("True for a remote-tracking branch"),
304
+ tracking: z.string().optional().describe("The upstream of the branch"),
305
+ }))
306
+ .optional()
307
+ .describe("The branches, for a list"),
308
+ created: z.string().optional().describe("The branch that the call made"),
309
+ deleted: z.string().optional().describe("The branch that the call deleted"),
310
+ current: z.string().describe("The current branch"),
311
+ });
312
+ export const GitLogOutputSchema = z.looseObject({
313
+ commits: z
314
+ .array(z.looseObject({
315
+ hash: z.string().describe("The commit hash"),
316
+ shortHash: z.string().describe("The short hash"),
317
+ author: z.string().describe("The author name"),
318
+ email: z.string().describe("The author email"),
319
+ date: z.string().describe("The author date"),
320
+ message: z.string().describe("The commit message"),
321
+ }))
322
+ .describe("The commits, newest first"),
323
+ lines: z.array(z.string()).optional().describe("With oneline: true, the short hash and the subject of each commit"),
324
+ });
325
+ export const GitDiffOutputSchema = z.looseObject({
326
+ files: z
327
+ .array(z.looseObject({
328
+ path: z.string().describe("The path of the file (for a rename, the new path)"),
329
+ from: z.string().optional().describe("For a rename, the old path"),
330
+ additions: z.number().describe("The added lines (0 for a binary file)"),
331
+ deletions: z.number().describe("The deleted lines (0 for a binary file)"),
332
+ }))
333
+ .describe("The changed files"),
334
+ additions: z.number().describe("The added lines of all files"),
335
+ deletions: z.number().describe("The deleted lines of all files"),
336
+ diff: z.string().optional().describe("The text of the diff"),
337
+ });
338
+ export const GitInitOutputSchema = z.looseObject({
339
+ path: z.string().describe("The folder of the repository"),
340
+ created: z.boolean().describe("True when the call made a new repository"),
341
+ });
342
+ export const GitRemoteOutputSchema = z.looseObject({
343
+ name: z.string().describe("The remote name"),
344
+ url: z.string().describe("The remote URL"),
345
+ });
346
+ export const GitFetchOutputSchema = z.looseObject({
347
+ remote: z.string().describe("The remote"),
348
+ fetched: z.boolean().describe("True when the fetch ran"),
349
+ });
350
+ export const GitPredicateOutputSchema = z.looseObject({
351
+ value: z.boolean().describe("The answer of the predicate"),
352
+ });
353
+ export const GitStashListOutputSchema = z.looseObject({
354
+ stashes: z
355
+ .array(z.looseObject({
356
+ index: z.number().describe("The stash index (0 is the newest)"),
357
+ ref: z.string().describe("The stash reference, for example stash@{0}"),
358
+ hash: z.string().describe("The commit hash of the stash"),
359
+ message: z.string().describe("The stash message"),
360
+ }))
361
+ .describe("The stashes"),
362
+ count: z.number().describe("The number of stashes"),
363
+ });
364
+ export const GitStashPushOutputSchema = z.looseObject({
365
+ stashed: z.boolean().describe("True when the call stashed changes"),
366
+ ref: z.string().optional().describe("The new stash reference"),
367
+ message: z.string().optional().describe("The stash message"),
368
+ });
369
+ export const GitStashPopOutputSchema = z.looseObject({
370
+ applied: z.boolean().describe("True when the stash was applied"),
371
+ ref: z.string().describe("The stash reference"),
372
+ dropped: z.boolean().describe("True when the stash was dropped (false after a conflict)"),
373
+ conflict: z.boolean().optional().describe("True when the stash had a merge conflict"),
374
+ });
375
+ export const GitStashApplyOutputSchema = z.looseObject({
376
+ applied: z.boolean().describe("True when the stash was applied"),
377
+ ref: z.string().describe("The stash reference"),
378
+ conflict: z.boolean().optional().describe("True when the stash had a merge conflict"),
379
+ });
380
+ export const GitStashDropOutputSchema = z.looseObject({
381
+ dropped: z.boolean().describe("True when the stash was dropped"),
382
+ ref: z.string().describe("The stash reference"),
383
+ });
384
+ export const GitStashExportOutputSchema = z.looseObject({
385
+ ref: z.string().describe("The stash reference"),
386
+ hash: z.string().describe("The commit hash of the stash"),
387
+ message: z.string().describe("The stash message"),
388
+ patch: z.string().describe("The patch of the tracked changes"),
389
+ hasUntracked: z.boolean().describe("True when the stash has untracked files"),
390
+ untrackedPatch: z.string().optional().describe("The patch of the untracked files"),
391
+ });
392
+ export const GitStashImportOutputSchema = z.looseObject({
393
+ imported: z.boolean().describe("True when the import succeeded"),
394
+ ref: z.string().optional().describe("The new stash reference"),
395
+ error: z.string().optional().describe("Why the import failed"),
396
+ });
397
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,oCAAoC;AACpC,gFAAgF;AAEhF,MAAM,CAAC,MAAM,oBAAoB,GAG5B,CAAC,CAAC,MAAM,CAAC;IACZ,iDAAiD;IACjD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACjF,yCAAyC;IACzC,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CAC5F,CAAC,CAAC;AAuBH,gFAAgF;AAChF,8BAA8B;AAC9B,gFAAgF;AAEhF,MAAM,CAAC,MAAM,iBAAiB,GAIzB,CAAC,CAAC,MAAM,CAAC;IACZ,mCAAmC;IACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC1F,yCAAyC;IACzC,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACzF,wBAAwB;IACxB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAA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AM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAoC,CAAC,CAAC,WAAW,CAAC;IACvF,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC9D,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC7E,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;CACnF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAoC,CAAC,CAAC,WAAW,CAAC;IACvF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAChE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC9D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAC/D,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/package",
2
3
  "name": "@procedures/git",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
4
+ "version": "0.2.0",
5
+ "description": "Git as 26 typed procedures: status, diff, log, add, commit, push, pull, branch, checkout, stash and more, run with argv, async and abortable.",
6
+ "keywords": [
7
+ "git",
8
+ "version-control",
9
+ "procedures",
10
+ "automation",
11
+ "rpc"
12
+ ],
13
+ "homepage": "https://mark1russell7.github.io/client/",
14
+ "bugs": {
15
+ "url": "https://github.com/mark1russell7/client/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/mark1russell7/client.git",
20
+ "directory": "packages/client-git"
21
+ },
22
+ "license": "MIT",
23
+ "author": "Mark Russell (https://github.com/mark1russell7)",
24
+ "type": "module",
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./module": {
33
+ "types": "./dist/module.d.ts",
34
+ "import": "./dist/module.js"
35
+ },
36
+ "./register": {
37
+ "types": "./dist/register.d.ts",
38
+ "import": "./dist/register.js"
39
+ }
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "src",
44
+ "!src/**/*.test.ts",
45
+ "!src/**/*.test.tsx",
46
+ "!src/**/__tests__",
47
+ "CHANGELOG.md"
48
+ ],
49
+ "sideEffects": [
50
+ "./dist/register.js"
51
+ ],
52
+ "engines": {
53
+ "node": ">=22"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public",
57
+ "provenance": true
58
+ },
59
+ "client": {
60
+ "procedures": "./dist/register.js"
61
+ },
62
+ "dependencies": {
63
+ "@procedures/client": "0.2.0",
64
+ "@procedures/shell": "0.2.0",
65
+ "zod": "^4.6.5"
66
+ },
67
+ "devDependencies": {
68
+ "typescript": "^7.0.2",
69
+ "@types/node": "^22.0.0",
70
+ "@mark1russell7/cue": "^1.0.0",
71
+ "vitest": "^5.0.3"
72
+ },
73
+ "scripts": {
74
+ "build": "tsc -b",
75
+ "typecheck": "tsc --noEmit",
76
+ "clean": "rm -rf dist .tsbuildinfo",
77
+ "test": "vitest run",
78
+ "test:watch": "vitest"
79
+ }
6
80
  }
package/src/index.ts ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Client-Git - Git operations as RPC procedures
3
+ *
4
+ * Provides git.status, git.add, git.commit, git.push, and other git procedures.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import "@procedures/git";
9
+ *
10
+ * // Use via client.call
11
+ * await client.call(["git", "status"], { cwd: "./repo" });
12
+ * await client.call(["git", "add"], { paths: ["file.ts"], cwd: "./repo" });
13
+ * await client.call(["git", "commit"], { message: "feat: add feature" });
14
+ * ```
15
+ */
16
+
17
+ export * from "./procedures/git.js";
18
+ export { GitError, type GitContext } from "./procedures/git/run.js";
19
+ export { parseNumstat } from "./procedures/git/diff.js";
20
+ export * from "./module.js";