type-git 0.5.0 → 0.7.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 (42) hide show
  1. package/README.md +27 -7
  2. package/dist/adapters/bun/index.cjs +82 -13348
  3. package/dist/adapters/bun/index.d.cts +7 -1
  4. package/dist/adapters/bun/index.d.ts +7 -1
  5. package/dist/adapters/bun/index.js +49 -13275
  6. package/dist/adapters/deno/index.cjs +76 -13344
  7. package/dist/adapters/deno/index.d.cts +7 -1
  8. package/dist/adapters/deno/index.d.ts +7 -1
  9. package/dist/adapters/deno/index.js +44 -13272
  10. package/dist/adapters/node/index.cjs +5 -13617
  11. package/dist/adapters/node/index.d.cts +44 -6
  12. package/dist/adapters/node/index.d.ts +44 -6
  13. package/dist/adapters/node/index.js +8 -13580
  14. package/dist/chunk-5NI3KM5Z.js +4822 -0
  15. package/dist/chunk-IAJF67MB.js +392 -0
  16. package/dist/chunk-MFY7MGIJ.cjs +4822 -0
  17. package/dist/chunk-NBX6BNQF.cjs +5588 -0
  18. package/dist/chunk-X3F6MDXQ.cjs +392 -0
  19. package/dist/chunk-YIWTIIXH.js +5588 -0
  20. package/dist/client.d-Cs32YZX6.d.ts +566 -0
  21. package/dist/client.d-PRQCR2_T.d.cts +566 -0
  22. package/dist/{client-KHa1WMIH.d.cts → git.d-DrhCzWEn.d.cts} +4541 -6876
  23. package/dist/index.cjs +42 -13717
  24. package/dist/index.d.cts +3 -2
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.js +38 -13649
  27. package/dist/strict/index.cjs +2919 -0
  28. package/dist/strict/index.d.cts +134022 -0
  29. package/dist/strict/index.d.ts +1 -0
  30. package/dist/strict/index.js +2919 -0
  31. package/docs/adapters.md +168 -0
  32. package/docs/migrations/0.7.0.md +152 -0
  33. package/package.json +58 -21
  34. package/dist/adapters/bun/index.cjs.map +0 -1
  35. package/dist/adapters/bun/index.js.map +0 -1
  36. package/dist/adapters/deno/index.cjs.map +0 -1
  37. package/dist/adapters/deno/index.js.map +0 -1
  38. package/dist/adapters/node/index.cjs.map +0 -1
  39. package/dist/adapters/node/index.js.map +0 -1
  40. package/dist/client-KHa1WMIH.d.ts +0 -12041
  41. package/dist/index.cjs.map +0 -1
  42. package/dist/index.js.map +0 -1
@@ -0,0 +1,168 @@
1
+ # Execution adapter contract
2
+
3
+ type-git never spawns processes itself. Every Git (and companion program) invocation goes
4
+ through the `ExecAdapter` passed to `createGit({ adapters })`. This page describes what the
5
+ built-in runner asks of an adapter, so that a custom adapter (for example one that restricts
6
+ which processes may start) knows which calls to accept and how to answer them.
7
+
8
+ The built-in adapters are `NodeExecAdapter` (`type-git/node`), `BunExecAdapter`
9
+ (`type-git/bun`) and `DenoExecAdapter` (`type-git/deno`).
10
+
11
+ ## Methods the runner calls
12
+
13
+ | Method | Called by the runner | Notes |
14
+ | --- | --- | --- |
15
+ | `spawn(options, handlers?)` | Yes, for every text-output command and every internal probe | Required. |
16
+ | `spawnBytes(options, handlers?)` | Only for `strict(...).command(..., { stdout: 'bytes' })` | Optional. See [Without `spawnBytes`](#without-spawnbytes). |
17
+ | `spawnStreaming(options)` | No | Optional; offered to callers of the adapter only. |
18
+ | `getCapabilities()` | No | Required by the interface; informational. |
19
+
20
+ ## `SpawnOptions` as the runner sends them
21
+
22
+ - `argv`: `[gitBinary, ...]` (or a companion program path). The first element is the program;
23
+ arguments are never passed through a shell. Do not join them into a command line.
24
+ - `env`: the **complete** environment for the child. The runner has already resolved the
25
+ inherited variables (see `inheritEnv` on `createGit`/`open`), layered `env`, `home` and
26
+ `pathPrefix` on top, and applied any per-call overrides.
27
+ - `inheritEnv`: always `false` from the runner. The adapter must not merge the parent process
28
+ environment underneath `env`; doing so would defeat the environment allowlist.
29
+ - `stdin`: `undefined`, a UTF-8 `string`, or a `Uint8Array`. When present, write all of it and
30
+ then close standard input. When absent, the child's standard input should be closed or
31
+ ignored (Node and Bun use `'ignore'`, Deno uses `'null'`). Since 0.6.0 the type is
32
+ `string | Uint8Array`; earlier releases only sent strings.
33
+ - `cwd`: see [Working directory](#working-directory).
34
+ - `signal`: see [Cancellation](#cancellation).
35
+ - `killSignal`: currently never set by the runner, and ignored by the built-in adapters.
36
+
37
+ ## Working directory
38
+
39
+ Git commands select the repository with an explicit flag. Companion programs (`scalar`,
40
+ `gitk`, `gitweb`) take no such flag, so for them the runner selects the repository through
41
+ `cwd` instead:
42
+
43
+ | Context | argv | `cwd` sent to the adapter |
44
+ | --- | --- | --- |
45
+ | Repository-agnostic (`git.raw`, `git.version`, `clone`, `init`, …) | `git …` | `undefined` |
46
+ | Worktree repository | `git -C <workdir> …` | `<workdir>` |
47
+ | Bare repository | `git --git-dir <gitDir> …` | `undefined` |
48
+ | Companion program, repository-agnostic | `<program> …` | `undefined` |
49
+ | Companion program, worktree repository | `<program> …` | `<workdir>` |
50
+ | Companion program, bare repository | `<program> …` | `<gitDir>` |
51
+
52
+ When a credential helper is configured, Git argv starts with
53
+ `git -c credential.helper=<helper>` before the context flag.
54
+
55
+ `undefined` means "do not set one"; the child then inherits the host process's current
56
+ directory. The runner passes repository paths unchanged, as the table shows: worktree Git
57
+ commands get the path in `-C` and as `cwd`, worktree companion programs only as `cwd`, bare Git
58
+ commands only in `--git-dir` (`cwd: undefined`), and bare companion programs only as `cwd`.
59
+ `clone` and `init` are repository-agnostic: the destination is a positional argument. For
60
+ worktree calls, use absolute worktree paths: then the selected repository does not depend on the
61
+ inherited directory. A relative worktree path is resolved twice (once by `cwd`, again by `-C`),
62
+ so it can fail even with the built-in adapters: `'.'` works, but `'repo'` resolves to
63
+ `repo/repo` (#329). Bare Git commands, `clone`, `init` and repository-agnostic calls get
64
+ `cwd: undefined` whatever path is used, so an adapter that requires a working directory must
65
+ handle `undefined` (for example by using the host's current directory) instead of rejecting
66
+ these calls. Repository-agnostic calls are different: `git.raw()`, `strict(git).command()`
67
+ and repository-agnostic companion programs run with `cwd: undefined`, so a command that needs a
68
+ repository (for example `git.raw(['status'])`) resolves it from the host process's current
69
+ directory, as the Git CLI would. Open a repository and use `repo.raw()` to avoid that.
70
+
71
+ ## Processes started by common operations
72
+
73
+ - `createGit()`: `git --version` (repository-agnostic) unless `skipVersionCheck` is set.
74
+ The result is cached per `Git` instance.
75
+ - `git.open(path)`, `git.openBare(path)`, `git.openRaw(path)`:
76
+ 1. `git -C <path> rev-parse --is-bare-repository` with `cwd: <path>`.
77
+ 2. Only if step 1 exits non-zero: `git --git-dir <path> rev-parse --is-bare-repository` with
78
+ no `cwd`. The error thrown when both fail carries step 2's exit code and stderr.
79
+
80
+ If `<path>` does not exist, step 1 fails to start (the built-in Node adapter reports
81
+ `spawn git ENOENT` because the working directory is missing) and `open` throws a
82
+ `GitError` with kind `SpawnFailed`; step 2 does not run.
83
+ - Typed `strict(...).command()` calls may start **internal probes** before the real command when the
84
+ result depends on how the installed Git parses an argument (for example `git <command> -h`,
85
+ `git --exec-path`, or a probe inside a throwaway bare repository created with
86
+ `git init --bare --quiet <tempdir>` in a fresh temporary directory). Probes use the same
87
+ `env` overrides and `signal` as the call, but `GIT_TRACE*` variables are removed and audit
88
+ hooks are not notified. Most calls need no probe.
89
+ - Typed high-level methods (`status()`, `log()`, …) start the Git command they wrap, and
90
+ sometimes a short query such as `rev-parse`.
91
+
92
+ ## Results and errors
93
+
94
+ Resolve with `SpawnResult`:
95
+
96
+ - `exitCode`: the process exit code, or `-1` when unknown (for example, killed by a signal).
97
+ - `signal`: the terminating signal name, if any.
98
+ - `aborted`: `true` when the process was stopped because `signal` fired.
99
+ - `stdout` / `stderr`: the complete output. `stderr` is always text.
100
+
101
+ A non-zero exit is **not** an adapter error: resolve normally and let the caller decide.
102
+ Reject only when the process could not be started or driven (the runner wraps the rejection
103
+ in a `GitError` with kind `SpawnFailed`, or `Aborted` if the call's signal had fired).
104
+
105
+ `handlers.onStderr` is supplied only when progress callbacks or trace hooks need incremental
106
+ stderr; call it with each chunk as it arrives. `handlers.onStdout` is not used by the runner.
107
+
108
+ ### Standard input write failures
109
+
110
+ When Git exits before reading all of standard input, writing fails. The built-in adapters
111
+ ignore that early-close error (`EPIPE`, or `EOF` on Windows, in Node; `BrokenPipe` in Deno;
112
+ Bun hands the input to `Bun.spawn` and reports no write error) and report Git's own exit
113
+ result. In Node and Deno any other stdin error rejects the spawn. A caller that must treat a partially consumed input
114
+ as a failure needs to check the exit code and output of the command (or use a custom adapter).
115
+
116
+ ## Cancellation
117
+
118
+ - If the call's `AbortSignal` is already aborted, the runner returns
119
+ `{ exitCode: -1, aborted: true }` without calling the adapter.
120
+ - Otherwise the adapter should stop the child when the signal fires and resolve with
121
+ `aborted: true`. The built-in adapters send `SIGTERM` and remove their abort listener when
122
+ the process closes.
123
+
124
+ ## Without `spawnBytes`
125
+
126
+ `spawnBytes` is optional. Without it, any call that requests byte output
127
+ (`strict(...).command(..., { stdout: 'bytes' })`) throws a `GitError` with kind `CapabilityMissing`
128
+ ("The selected execution adapter does not support binary stdout") instead of starting the
129
+ command. Text-mode probes may still run before that error, and a call whose `AbortSignal` is
130
+ already aborted returns `aborted: true` first. Text-output calls are unaffected.
131
+
132
+ ## `FsAdapter`
133
+
134
+ The runner and repository methods call these `FsAdapter` methods:
135
+
136
+ - `exists` / `deleteDirectory`: `clone` and `init` check whether the destination already
137
+ exists, and remove a destination they created if the call is aborted.
138
+
139
+ - `createTempFile` / `deleteFile`: `deleteFile` on a path returned by `createTempFile` should
140
+ release everything that call allocated (the built-in adapters also remove the private
141
+ directory holding the file).
142
+ - `createTempDirectory` (optional, since 0.6.0) / `deleteDirectory`: used for probes that
143
+ need an empty repository. When it is missing, the runner creates a temp file with
144
+ `createTempFile` and uses the sibling path `<file>-repo`, removing both afterward.
145
+ `deleteDirectory` is also called when `git init` failed before creating that directory, so
146
+ it must succeed when the path does not exist (the built-in adapters ignore a missing path).
147
+ - `readFile` / `writeFile` (optional): when missing, the probes that need them are skipped and
148
+ the command runs without that extra validation.
149
+
150
+ `tail` and `tailStreaming` are part of the interface but are not called by the runner.
151
+
152
+ ## Node-specific options
153
+
154
+ `NodeExecAdapter` accepts a small, vetted set of `child_process.spawn` options:
155
+
156
+ ```ts
157
+ import { TypeGit, createNodeAdapters, NodeExecAdapter } from 'type-git/node';
158
+
159
+ const git = await TypeGit.create({ windowsHide: true });
160
+ // or
161
+ const adapters = createNodeAdapters({ windowsHide: true });
162
+ // or
163
+ const exec = new NodeExecAdapter({ windowsHide: true });
164
+ ```
165
+
166
+ `windowsHide` hides the console window Windows would otherwise open for each Git process. It
167
+ defaults to Node's default (`false`). Options such as `shell` are intentionally not exposed,
168
+ because they would let Git arguments be reinterpreted.
@@ -0,0 +1,152 @@
1
+ # Migrating to 0.7.0
2
+
3
+ 0.7.0 splits type-git into a lightweight main entry point and an opt-in strict entry point.
4
+ The grammar-checked `command()` moves from `Git`, `WorktreeRepo`, `BareRepo` and `TypeGit` to
5
+ `type-git/strict`. Three other changes can break existing code:
6
+ [`clone()` accepts only data-only config keys](#clone-config-keys),
7
+ [`GIT_SSH` and `GIT_SSH_COMMAND` are no longer inherited](#git_ssh-and-git_ssh_command), and
8
+ [`repo.show()` refuses conflicting output options](#reposhow-output-options). The other public
9
+ names and shapes are unchanged.
10
+
11
+ ## Why
12
+
13
+ In 0.6.0 `command()` grew a catalogue of Git's option grammar for 428 command scopes. The
14
+ catalogue made `command()` far more accurate, but every user paid for it, including those that
15
+ never call `command()`:
16
+
17
+ | Measured on an application that only calls `repo.status()` | 0.6.0 | 0.7.0 |
18
+ | --- | --- | --- |
19
+ | Bundle (esbuild, minified) | about 1.6 MB | about 180 KB |
20
+ | Bundle, gzip | about 210 KB | about 45 KB |
21
+ | Type declarations loaded by the main entry | about 5 MB | about 350 KB |
22
+
23
+ The catalogue, the native parser probes that support it, and the literal grammar types now load
24
+ only when `type-git/strict` is imported.
25
+
26
+ ## What stays in the main entry point
27
+
28
+ - `raw()` on clients and repositories.
29
+ - The high-level API (`status()`, `log()`, `commit()`, `branch.create()`, `lfs.*`, and so on),
30
+ with the same option types and runtime option checks as 0.6.0, except for the `clone()` and
31
+ `show()` changes below.
32
+ - The checks against argument injection: operands that Git would read as options, NUL
33
+ characters in arguments, and empty pathspecs are still rejected before Git runs. They are not
34
+ opt-in.
35
+ - Parsers, adapters, `GitError` and `GitArgumentError`.
36
+
37
+ ## Moving `command()` calls
38
+
39
+ Wrap the client or repository with `strict()`. The wrapper keeps every original member, so it
40
+ can replace the original object:
41
+
42
+ ```ts
43
+ // 0.6.0
44
+ const repo = await git.open(path);
45
+ await repo.command('log', [['--oneline'], ['-n', '5']]);
46
+ await git.command('hash-object', [['--stdin']], { stdin: 'hello' });
47
+
48
+ // 0.7.0
49
+ import { strict } from 'type-git/strict';
50
+
51
+ const repo = strict(await git.open(path));
52
+ await repo.command('log', [['--oneline'], ['-n', '5']]);
53
+ await repo.status();
54
+ await strict(git).command('hash-object', [['--stdin']], { stdin: 'hello' });
55
+ ```
56
+
57
+ `strict()` accepts objects created by type-git: `createGit()`, `createGitSync()`, `TypeGit`
58
+ from any runtime entry point, and the repositories returned by `open()`, `openBare()`,
59
+ `openRaw()`, `init()` and `clone()`. It throws `GitArgumentError` for other objects. Arguments,
60
+ options, results and errors of `command()` are unchanged.
61
+
62
+ If you do not need grammar checks, `raw()` runs any Git command without them:
63
+
64
+ ```ts
65
+ await repo.raw(['log', '--oneline', '-n', '5']);
66
+ ```
67
+
68
+ ## Moved types
69
+
70
+ These types are exported from `type-git/strict` instead of `type-git`:
71
+
72
+ - `GitCommandArgument`, `GitCommandClient`, `GitCommandExecOpts`, `GitCommandName`
73
+
74
+ `type-git/strict` also exports `CheckedCommandArguments` and the wrapper types `Strict<T>`,
75
+ `StrictGit`, `StrictWorktreeRepo` and `StrictBareRepo`. Code that declared a variable with
76
+ `command()` as `Git` or `WorktreeRepo` can use these instead:
77
+
78
+ ```ts
79
+ import type { StrictWorktreeRepo } from 'type-git/strict';
80
+
81
+ async function lastCommits(repo: StrictWorktreeRepo) {
82
+ return await repo.command('log', [['--oneline'], ['-n', '5']]);
83
+ }
84
+ ```
85
+
86
+ ## `CliRunner.runCommand()`
87
+
88
+ `CliRunner` is still exported, with `run()`, `runOrThrow()` and the other execution methods, but
89
+ its grammar-checked `runCommand()` is removed. Create a client with `createGit()` or `TypeGit`
90
+ and call `strict(client).command()` instead.
91
+
92
+ ## Custom adapters
93
+
94
+ The adapter contract is unchanged. `spawnBytes` is still needed only for
95
+ `strict(...).command(..., { stdout: 'bytes' })`.
96
+
97
+ ## Clone config keys
98
+
99
+ `git.clone(url, path, { config })` now accepts only keys that hold data, declared by the
100
+ `CloneConfig` type: for example `user.name`, `user.email`, `core.autocrlf`,
101
+ `protocol.version` and `http.*` / `http.<url>.*` transport settings such as `extraHeader`,
102
+ `proxy` and `sslVerify`. Other keys, including keys that run a program (`core.sshCommand`,
103
+ `core.fsmonitor`, `include.path`, `protocol.ext.allow`) and keys that turn off Git's
104
+ protections (`core.protectNTFS`, `core.protectHFS`, `*.fsckObjects`), are refused with
105
+ `GitArgumentError` before Git starts. In an object literal they are also a type error.
106
+
107
+ To keep using such a key, pass a trusted value through `raw()`, or set it after cloning with `repo.config.setRaw()`:
108
+
109
+ ```ts
110
+ // 0.6.0
111
+ const repo = await git.clone(url, path, { config: { 'core.sshCommand': sshCommand } });
112
+
113
+ // 0.7.0: configure the clone itself through raw()
114
+ const result = await git.raw(['clone', '-c', `core.sshCommand=${sshCommand}`, '--', url, path]);
115
+ if (result.exitCode !== 0) throw new Error(result.stderr);
116
+ const repo = await git.open(path);
117
+ ```
118
+
119
+ If only the new repository needs the key, not the clone itself, set it after cloning:
120
+
121
+ ```ts
122
+ const repo = await git.clone(url, path);
123
+ await repo.config.setRaw('core.fsmonitor', 'true');
124
+ ```
125
+
126
+ ## `GIT_SSH` and `GIT_SSH_COMMAND`
127
+
128
+ The default environment allowlist no longer includes `GIT_SSH` or `GIT_SSH_COMMAND`, because
129
+ both name a program that Git runs for every SSH fetch, push and ls-remote. If your process sets
130
+ one of them for Git, SSH operations now use plain `ssh` instead, and can fail with
131
+ authentication or host key errors. Opt back in when you create the client:
132
+
133
+ ```ts
134
+ // Inherit the variable from the parent environment
135
+ // (or: inheritEnv: { add: ['GIT_SSH_COMMAND'] })
136
+ const git = await createGit({ adapters, inheritEnv: ['GIT_SSH_COMMAND'] });
137
+ ```
138
+
139
+ Or pass the value explicitly:
140
+
141
+ ```ts
142
+ const git = await createGit({ adapters, env: { GIT_SSH_COMMAND: 'ssh -i /path/to/deploy_key' } });
143
+ ```
144
+
145
+ `GIT_SSH_VARIANT`, the SSH agent variables and the TLS settings are still inherited.
146
+
147
+ ## `repo.show()` output options
148
+
149
+ `repo.show()` now checks combinations of `stat`, `nameOnly`, `nameStatus` and `quiet`, both in
150
+ its option types and at runtime. `nameOnly` with `nameStatus` is refused (0.6.0 silently dropped
151
+ `nameStatus`), and so is `quiet` with `nameOnly` or `nameStatus`. Keep only the option whose
152
+ output you read.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-git",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Type-safe Git wrapper library with LFS support, progress tracking, and abort control for Node.js/Deno/Bun",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -8,25 +8,56 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
14
19
  },
15
20
  "./node": {
16
- "types": "./dist/adapters/node/index.d.ts",
17
- "import": "./dist/adapters/node/index.js",
18
- "require": "./dist/adapters/node/index.cjs"
21
+ "import": {
22
+ "types": "./dist/adapters/node/index.d.ts",
23
+ "default": "./dist/adapters/node/index.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/adapters/node/index.d.cts",
27
+ "default": "./dist/adapters/node/index.cjs"
28
+ }
19
29
  },
20
30
  "./bun": {
21
- "types": "./dist/adapters/bun/index.d.ts",
22
- "import": "./dist/adapters/bun/index.js",
23
- "require": "./dist/adapters/bun/index.cjs"
31
+ "import": {
32
+ "types": "./dist/adapters/bun/index.d.ts",
33
+ "default": "./dist/adapters/bun/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/adapters/bun/index.d.cts",
37
+ "default": "./dist/adapters/bun/index.cjs"
38
+ }
24
39
  },
25
40
  "./deno": {
26
- "types": "./dist/adapters/deno/index.d.ts",
27
- "import": "./dist/adapters/deno/index.js",
28
- "require": "./dist/adapters/deno/index.cjs"
29
- }
41
+ "import": {
42
+ "types": "./dist/adapters/deno/index.d.ts",
43
+ "default": "./dist/adapters/deno/index.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/adapters/deno/index.d.cts",
47
+ "default": "./dist/adapters/deno/index.cjs"
48
+ }
49
+ },
50
+ "./strict": {
51
+ "import": {
52
+ "types": "./dist/strict/index.d.ts",
53
+ "default": "./dist/strict/index.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/strict/index.d.cts",
57
+ "default": "./dist/strict/index.cjs"
58
+ }
59
+ },
60
+ "./package.json": "./package.json"
30
61
  },
31
62
  "engines": {
32
63
  "node": ">=20.0.0"
@@ -58,9 +89,11 @@
58
89
  },
59
90
  "files": [
60
91
  "dist",
92
+ "!dist/**/*.map",
61
93
  "README.md",
62
94
  "LICENSE",
63
- "docs/migrations"
95
+ "docs/migrations",
96
+ "docs/adapters.md"
64
97
  ],
65
98
  "repository": {
66
99
  "type": "git",
@@ -76,7 +109,8 @@
76
109
  ]
77
110
  },
78
111
  "scripts": {
79
- "build": "tsup",
112
+ "build": "node scripts/build.mjs",
113
+ "size:check": "node scripts/size-budget.mjs",
80
114
  "test": "vitest",
81
115
  "test:ci": "vitest run",
82
116
  "test:bun": "bun test test/bun/",
@@ -92,13 +126,16 @@
92
126
  "docs:dev": "pnpm --filter type-git-docs dev",
93
127
  "docs:build": "pnpm --filter type-git-docs build",
94
128
  "docs:preview": "pnpm --filter type-git-docs preview",
129
+ "verify": "pnpm check && pnpm typecheck && pnpm test:ci && pnpm build",
95
130
  "changeset": "changeset",
96
131
  "version-packages": "changeset version",
97
132
  "release": "changeset publish",
98
- "test:types": "tsc --project tsconfig.contracts.json",
99
- "constraints:generate": "node scripts/constraints.mjs && node scripts/command-coverage.mjs",
100
- "constraints:check": "node scripts/constraints.mjs --check && node scripts/command-coverage.mjs --check",
101
- "commands:generate": "node scripts/commands.mjs",
102
- "commands:check": "node scripts/commands.mjs --check"
133
+ "test:types": "node scripts/test-types.mjs",
134
+ "constraints:generate": "node scripts/string-callbacks.mjs && node scripts/compound-decimals.mjs && node scripts/boolean-callbacks.mjs && node scripts/numeric-callbacks.mjs && node scripts/constraints.mjs && node scripts/command-coverage.mjs",
135
+ "constraints:check": "node scripts/string-callbacks.mjs --check && node scripts/compound-decimals.mjs --check && node scripts/boolean-callbacks.mjs --check && node scripts/numeric-callbacks.mjs --check && node scripts/constraints.mjs --check && node scripts/command-coverage.mjs --check",
136
+ "commands:generate": "node scripts/string-callbacks.mjs && node scripts/compound-decimals.mjs && node scripts/boolean-callbacks.mjs && node scripts/numeric-callbacks.mjs && node scripts/integer-type-tables.mjs && node scripts/url-byte-types.mjs && node scripts/commands.mjs",
137
+ "commands:check": "node scripts/string-callbacks.mjs --check && node scripts/compound-decimals.mjs --check && node scripts/boolean-callbacks.mjs --check && node scripts/numeric-callbacks.mjs --check && node scripts/integer-type-tables.mjs --check && node scripts/url-byte-types.mjs --check && node scripts/commands.mjs --check",
138
+ "commands:upstream-check": "node scripts/verify-upstream.mjs",
139
+ "commands:progress": "node scripts/command-progress.mjs"
103
140
  }
104
141
  }