@procedures/gh 0.34.0 → 0.35.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/CHANGELOG.md +35 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/module.d.ts +2 -2
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +4 -5
- package/dist/module.js.map +1 -1
- package/dist/procedures/gh/shared.d.ts +3 -5
- package/dist/procedures/gh/shared.d.ts.map +1 -1
- package/dist/procedures/gh/shared.js +17 -29
- package/dist/procedures/gh/shared.js.map +1 -1
- package/package.json +4 -4
- package/src/module.ts +5 -5
- package/src/procedures/gh/shared.ts +19 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @procedures/gh
|
|
2
2
|
|
|
3
|
+
## 0.35.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cc80f74: PATCH: internal, no change to the public API. The procedure boilerplate of tracker item O65, after O58.
|
|
8
|
+
|
|
9
|
+
- The `src/module.ts` of 37 packages gives its module and its register function with `definePackage()`. Each export keeps its name, its type and its behavior. The root and `./module` register nothing. `./register` registers in the global registry, as before.
|
|
10
|
+
- The output schemas of `ics.parse`, `ics.fetch`, `json.query`, `json.patch`, `json.merge` and `yaml.parse` have the type of the declared output (`z.ZodType<T>`). The validation and the JSON Schema stay the same.
|
|
11
|
+
- The `described()` helper of `@procedures/mongo` uses `typed<T>()` instead of the deprecated `zodAdapter()`. Its schemas validate and describe the input as before.
|
|
12
|
+
- Updated dependencies [9f0405d]
|
|
13
|
+
- Updated dependencies [f5c2407]
|
|
14
|
+
- Updated dependencies [cc80f74]
|
|
15
|
+
- @procedures/client@0.35.1
|
|
16
|
+
- @procedures/shell@0.35.1
|
|
17
|
+
|
|
18
|
+
## 0.35.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 0b0cb42: One CLI-tool runner in `@procedures/shell` (dedupe review F2, tracker item O60).
|
|
23
|
+
|
|
24
|
+
PATCH: new exports `defineCliTool` and `./testing`, no break. Before 1.0.0, a feature raises the PATCH, and the fixed group shares one version.
|
|
25
|
+
|
|
26
|
+
- The new entry `@procedures/shell/cli` gives `defineCliTool({ name, resolve, error })`. Its runner has `run`, `runJson`, `output`, `json`, `arg` and `shellInput`. Each command goes as argv to `shell.run` through `ctx.client`, never as a shell string.
|
|
27
|
+
- The entry also gives `cliArg()`, `buildArgv()`, `parseJsonDocument()`, `parseJsonOutput()`, the shared result `CliToolOutput` with `cliToolOutputSchema()`, and the program lookup `nodeScript()`, `execPathProgram()` and `findInPath()`. The package root exports them too.
|
|
28
|
+
- The new entry `@procedures/shell/testing` gives `fakeShell(results)`: the shell procedures with their real schemas, effects and root rules, and handlers that record each input. Use `shell.module` in `createRegistry()`, or `shell.client` as `ctx.client`.
|
|
29
|
+
- gh, npm, pnpm, docker and `cli.run` run their program through `defineCliTool()`. Each procedure keeps its path, its schemas, its effects and its behavior. The exported helpers (`resolveNpm`, `resolvePnpm`, the output types and schemas) stay.
|
|
30
|
+
- `PnpmCommandOutput`, `NpmCommandOutput`, `DockerCommandOutput` and `CliRunOutput` extend `CliToolOutput`. Their schemas come from `cliToolOutputSchema()`. The `stderr` description of pnpm and `cli.run` now also names the error message when the program did not start.
|
|
31
|
+
- `@procedures/restic` and `@procedures/tailscale` re-export `buildArgv`, `parseJsonOutput`, `FLAG_NAME` and `ArgValue` from `@procedures/shell/cli`. The two copies of `argv.ts` are gone.
|
|
32
|
+
- `@procedures/vite` and `@procedures/vitest` use `cliArg()` for their argument guard.
|
|
33
|
+
- `SERVER-LAYERS.md` records the one run path of a CLI wrapper, and the reasons.
|
|
34
|
+
- Updated dependencies [0b0cb42]
|
|
35
|
+
- @procedures/shell@0.35.0
|
|
36
|
+
- @procedures/client@0.35.0
|
|
37
|
+
|
|
3
38
|
## 0.34.0
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|