@procedures/mark 0.2.3 → 0.3.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 +63 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +50 -8
- package/dist/cli.js.map +1 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +20 -16
- package/dist/manifest.js.map +1 -1
- package/dist/manifest.json +24335 -8068
- package/dist/server-mode.d.ts.map +1 -1
- package/dist/server-mode.js +19 -2
- package/dist/server-mode.js.map +1 -1
- package/package.json +46 -26
- package/src/cli.ts +43 -7
- package/src/manifest.ts +15 -11
- package/src/server-mode.ts +17 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @procedures/mark
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3d24d5b: MCP over Streamable HTTP (roadmap R26), the HTTP transport of the current MCP specification. `McpServerTransport` takes `transport: "http"` and `httpOptions` (port, host, path, token, allowed origins, or an HTTP server of its own). Each client gets a session with an MCP server of its own, and so gets the progress of a tool call and the `list_changed` notifications. The endpoint listens on loopback by default, refuses a web page of another host or origin, and with a token refuses a request without the token. `mark mcp --http <port> [--host <host>] [--token <token>]` (or `MCP_HTTP_PORT`, `MCP_HTTP_HOST`, `MCP_HTTP_TOKEN`) serves the dev tools over it. Before, the package had only stdio, and its SSE transport only threw.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 381ce3a: Cancellation scopes and a graceful stop (roadmap R14). `ProcedureServer.stop({ grace })` refuses new calls with a retryable `UNAVAILABLE` and lets the calls in flight end until the grace time ends, then aborts them (`peer.stop({ grace })` passes it; `mark --server` and the `server` bin give 5 seconds). The signal of each call joins its request and the server, and `callsInFlight` counts the calls, streams included. `exec()` and `execStream()` take a `signal`. `LocalTransport` takes `interceptors`, `capability` and `clearanceOrder`, and gives a call the deadline that its client sends, so a client timeout ends a local handler too. `mark` aborts a command in its own process on the first Ctrl+C. A remote leaf of `route()` and `server.call` send the deadline of their caller, and `server.call` relays the signal.
|
|
12
|
+
- 956e88b: One manifest type (roadmap R17). `describeRegistry(registry, { expose })` and `describeProcedure` (exported as `describeProcedureEntry`) describe each procedure: the path, the description, the tags, the effects, the JSON Schemas of the input and the output, the calls, an unbounded stream, the command-line metadata, and a hash of the manifest (`procedures.manifest/1`). The new procedure `procedure.manifest` gives it, and it is an MCP tool of the dev tools (63 tools). `procedure.get` gives the JSON Schemas and the effects. The context of a handler has the expose rule of its host (`ctx.expose`), and `procedure.get`, `procedure.list`, `procedure.manifest`, `procedure.export`, `client.lookup`, `mcp.list-tools`, `manifest.generate` and `_discovery.announce` show only the exposed procedures: before, an MCP tool could list the procedures that the host hides. `_discovery.announce` gives the JSON Schemas, and `manifest.generate`, `getProcedureInfos` and the manifest of `mark` use the one description.
|
|
13
|
+
- aaa7462: The peer accepts a bare JSON value and obeys `bodyLimit` (roadmap R5). Before, its strict JSON parser refused a number, a string or `null` with 400, and its limit of 100 kB replaced `bodyLimit`. The HTTP transport config of the peer takes `bodyLimit`. `peer.stop()` closes the HTTP server that the peer made for its WebSocket transport, so the port is free again. `mark --server` and the `server` bin stop the peer before they exit, with a limit of 10 seconds, and a second signal exits at once.
|
|
14
|
+
- Updated dependencies [ddea529]
|
|
15
|
+
- Updated dependencies [b2a3e3a]
|
|
16
|
+
- Updated dependencies [a8c47f1]
|
|
17
|
+
- Updated dependencies [381ce3a]
|
|
18
|
+
- Updated dependencies [0c627f8]
|
|
19
|
+
- Updated dependencies [ae7f05f]
|
|
20
|
+
- Updated dependencies [7873940]
|
|
21
|
+
- Updated dependencies [29a7b29]
|
|
22
|
+
- Updated dependencies [a70d445]
|
|
23
|
+
- Updated dependencies [c66f0c4]
|
|
24
|
+
- Updated dependencies [bc70357]
|
|
25
|
+
- Updated dependencies [07cc998]
|
|
26
|
+
- Updated dependencies [a6b01a9]
|
|
27
|
+
- Updated dependencies [c799cdd]
|
|
28
|
+
- Updated dependencies [1779d96]
|
|
29
|
+
- Updated dependencies [4d3ff39]
|
|
30
|
+
- Updated dependencies [3d24d5b]
|
|
31
|
+
- Updated dependencies [540f8d9]
|
|
32
|
+
- Updated dependencies [b6daaec]
|
|
33
|
+
- Updated dependencies [5b9264e]
|
|
34
|
+
- Updated dependencies [956e88b]
|
|
35
|
+
- Updated dependencies [ff62281]
|
|
36
|
+
- Updated dependencies [aaa7462]
|
|
37
|
+
- Updated dependencies [6e4de6c]
|
|
38
|
+
- Updated dependencies [14d85fe]
|
|
39
|
+
- Updated dependencies [d81d0ed]
|
|
40
|
+
- Updated dependencies [f5ed492]
|
|
41
|
+
- Updated dependencies [aa67cc7]
|
|
42
|
+
- Updated dependencies [061fa22]
|
|
43
|
+
- Updated dependencies [5b7b673]
|
|
44
|
+
- Updated dependencies [cfb9d69]
|
|
45
|
+
- Updated dependencies [43f7de5]
|
|
46
|
+
- Updated dependencies [b07bb50]
|
|
47
|
+
- Updated dependencies [4a3bfa1]
|
|
48
|
+
- Updated dependencies [bd0b626]
|
|
49
|
+
- Updated dependencies [a6be873]
|
|
50
|
+
- Updated dependencies [fb30718]
|
|
51
|
+
- Updated dependencies [c5528e4]
|
|
52
|
+
- Updated dependencies [fee5d9c]
|
|
53
|
+
- Updated dependencies [21f7743]
|
|
54
|
+
- Updated dependencies [31a0b46]
|
|
55
|
+
- @procedures/client@0.3.0
|
|
56
|
+
- @procedures/peer@0.3.0
|
|
57
|
+
- @procedures/server@0.3.0
|
|
58
|
+
- @procedures/mcp-dev-tools@0.3.0
|
|
59
|
+
- @procedures/lib@0.3.0
|
|
60
|
+
- @procedures/procedure@0.3.0
|
|
61
|
+
- @procedures/pnpm@0.3.0
|
|
62
|
+
- @procedures/shell@0.3.0
|
|
63
|
+
- @procedures/cli-run@0.3.0
|
|
64
|
+
- @procedures/vitest@0.3.0
|
|
65
|
+
|
|
3
66
|
## 0.2.3
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|