@procedures/mark 0.41.1 → 0.43.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.
- package/CHANGELOG.md +50 -0
- package/README.md +7 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/args.d.ts +1 -1
- package/dist/args.d.ts.map +1 -1
- package/dist/args.js.map +1 -1
- package/dist/auto-warm.d.ts +133 -0
- package/dist/auto-warm.d.ts.map +1 -0
- package/dist/auto-warm.js +230 -0
- package/dist/auto-warm.js.map +1 -0
- package/dist/cli.d.ts +7 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +54 -6
- package/dist/cli.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/server-mode.d.ts +5 -0
- package/dist/server-mode.d.ts.map +1 -1
- package/dist/server-mode.js +6 -0
- package/dist/server-mode.js.map +1 -1
- package/package.json +51 -51
- package/src/args.ts +2 -1
- package/src/auto-warm.ts +302 -0
- package/src/cli.ts +64 -7
- package/src/server-mode.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @procedures/mark
|
|
2
2
|
|
|
3
|
+
## 0.43.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @procedures/cli-kit@0.43.0
|
|
8
|
+
- @procedures/client@0.43.0
|
|
9
|
+
- @procedures/cli-run@0.43.0
|
|
10
|
+
- @procedures/fs@0.43.0
|
|
11
|
+
- @procedures/lib@0.43.0
|
|
12
|
+
- @procedures/pnpm@0.43.0
|
|
13
|
+
- @procedures/procedure@0.43.0
|
|
14
|
+
- @procedures/peer@0.43.0
|
|
15
|
+
- @procedures/shell@0.43.0
|
|
16
|
+
- @procedures/vitest@0.43.0
|
|
17
|
+
- @procedures/mcp-dev-tools@0.43.0
|
|
18
|
+
- @procedures/server@0.43.0
|
|
19
|
+
|
|
20
|
+
## 0.42.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- e4cb0cf: The release train: the ranges of @mark1russell7/algebra, @mark1russell7/service change to a version outside the old range.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 10d58a3: The optional auto-warm of `mark` (CLI-27): a cold command can start the background host, so the next command is warm.
|
|
29
|
+
|
|
30
|
+
- The setting is `MARK_AUTO_WARM`, with the values `never` and `after-cold`. The default is `never`, so the behavior does not change.
|
|
31
|
+
- With `after-cold`, a cold command starts `mark --server --idle-timeout <ms>` before it exits. The command starts no host when a warm host runs, when another command starts one, or when the port is in use.
|
|
32
|
+
- `MARK_IDLE_TIMEOUT_MS` gives the idle time of that host (the default is 10 minutes). `MARK_AUTO_WARM_PORT` gives its port (the default is 3000).
|
|
33
|
+
- `mark --server` has the new option `--idle-timeout <ms>`. Without it, the server has no idle stop, as before.
|
|
34
|
+
- The auto-warm does not change the result or the exit code of a command.
|
|
35
|
+
- Updated dependencies [10d58a3]
|
|
36
|
+
- Updated dependencies [10d58a3]
|
|
37
|
+
- Updated dependencies [7ca9953]
|
|
38
|
+
- Updated dependencies [226ae02]
|
|
39
|
+
- Updated dependencies [e4cb0cf]
|
|
40
|
+
- @procedures/lib@0.42.0
|
|
41
|
+
- @procedures/server@0.42.0
|
|
42
|
+
- @procedures/client@0.42.0
|
|
43
|
+
- @procedures/mcp-dev-tools@0.42.0
|
|
44
|
+
- @procedures/peer@0.42.0
|
|
45
|
+
- @procedures/cli-kit@0.42.0
|
|
46
|
+
- @procedures/cli-run@0.42.0
|
|
47
|
+
- @procedures/fs@0.42.0
|
|
48
|
+
- @procedures/pnpm@0.42.0
|
|
49
|
+
- @procedures/procedure@0.42.0
|
|
50
|
+
- @procedures/shell@0.42.0
|
|
51
|
+
- @procedures/vitest@0.42.0
|
|
52
|
+
|
|
3
53
|
## 0.41.1
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ The package provides a `mark` binary for command-line usage.
|
|
|
132
132
|
mark [global options] <path...> [positional...] [--options]
|
|
133
133
|
mark serve [--procedures pkgs] [--port N] [--token T | --no-token] [--expose patterns] [--events topics] [--fs-root folder] [--probe-port N]
|
|
134
134
|
mark mcp [--bundles list] [--tool-timeout ms] [--read-only] [--http port] [--max-sessions n] [--fs-root folder] [--debug]
|
|
135
|
-
mark --server [--port N] [--host H] [--transport http|websocket|both] [--events topics] [--probe-port N]
|
|
135
|
+
mark --server [--port N] [--host H] [--transport http|websocket|both] [--events topics] [--probe-port N] [--idle-timeout ms]
|
|
136
136
|
mark -i
|
|
137
137
|
mark --fs-root <folder> <command | --server | -i | serve | mcp>
|
|
138
138
|
```
|
|
@@ -163,6 +163,12 @@ Each command that runs a procedure is a service of one request (CLI-26, decision
|
|
|
163
163
|
- **A second Ctrl-C.** A second signal during the stop ends the process at once, with the exit code 1.
|
|
164
164
|
- **The exit.** After the command, the runner ends the process with the exit code of the command. A timer or a socket that a procedure left open does not keep the process alive.
|
|
165
165
|
- **The REPL.** `mark -i` starts each line in the cold mode, without the signals: the REPL keeps its process.
|
|
166
|
+
- **The auto-warm (CLI-27).** With `MARK_AUTO_WARM=after-cold`, a cold command starts a background CLI server before it exits. The next command in this folder is then warm. The default is `never`.
|
|
167
|
+
- The server stops by itself after `MARK_IDLE_TIMEOUT_MS` with no call. The default is 600000 (10 minutes). An open stream is a call until its end.
|
|
168
|
+
- `mark --server --idle-timeout <ms>` gives the same idle stop to a server that you start. Without it, the server has no idle stop.
|
|
169
|
+
- `MARK_AUTO_WARM_PORT` gives the port of the server. The default is 3000.
|
|
170
|
+
- The command starts no server when a warm server operates, when another command starts one, or when another program holds the port.
|
|
171
|
+
- `--verbose` shows the decision. The auto-warm does not change the result or the exit code of the command at any time.
|
|
166
172
|
|
|
167
173
|
```mermaid
|
|
168
174
|
graph LR
|