nofax 0.2.42 → 0.2.43
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 +9 -0
- package/package.json +1 -1
- package/src/cli.mjs +1 -1
- package/src/mcp-server.mjs +1 -1
- package/src/mcp-tools.mjs +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,15 @@ Local Nofax `0.2.x` behavior is unchanged by these removals.
|
|
|
42
42
|
- The capability-path form is normalized to `/mcp` before MCP protocol handling.
|
|
43
43
|
- Remote read operations perform no external messaging/provider calls; only explicit `nofax_notify` invokes ntfy.
|
|
44
44
|
|
|
45
|
+
## 0.2.43 - 2026-09-24
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- CLI value-taking flags now reject a following `--flag` token as a missing value instead of consuming that flag as data and potentially reaching a notification side effect under malformed arguments.
|
|
50
|
+
- `nofax_wait_for_response` now performs a final authoritative durable-state check before reporting pending, so a terminal first-wins response already persisted by another waiter/process is returned instead of stale pending.
|
|
51
|
+
|
|
52
|
+
Pending, timeout, disconnect, setup/config failure, ambiguous transport failure, and notification delivery still never mean approval. Explicit Allow/Deny behavior, durable first-terminal-wins semantics, response-topic secrecy, notification authority, and the narrower remote Worker boundary are unchanged.
|
|
53
|
+
|
|
45
54
|
## 0.2.42 - 2026-09-24
|
|
46
55
|
|
|
47
56
|
### Changed
|
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -30,7 +30,7 @@ function parseArgs(args, allowedFlags = []) {
|
|
|
30
30
|
if (['--title', '--server', '--topic', '--timeout'].includes(value)) {
|
|
31
31
|
if (!allowedFlags.includes(value)) throw new Error(`NOFAX_UNKNOWN_FLAG:${value}`);
|
|
32
32
|
const next = args[index + 1];
|
|
33
|
-
if (next === undefined) throw new Error(`NOFAX_FLAG_VALUE:${value}`);
|
|
33
|
+
if (next === undefined || next.startsWith('--')) throw new Error(`NOFAX_FLAG_VALUE:${value}`);
|
|
34
34
|
flags[value.slice(2)] = next;
|
|
35
35
|
index += 1;
|
|
36
36
|
continue;
|
package/src/mcp-server.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const LIST_PENDING_OUTPUT_SCHEMA = z.object({
|
|
|
74
74
|
|
|
75
75
|
export function buildMcpServer({ handlers = createMcpToolHandlers() } = {}) {
|
|
76
76
|
const server = new McpServer(
|
|
77
|
-
{ name: 'nofax', version: '0.2.
|
|
77
|
+
{ name: 'nofax', version: '0.2.43' },
|
|
78
78
|
{ instructions: SERVER_INSTRUCTIONS }
|
|
79
79
|
);
|
|
80
80
|
|
package/src/mcp-tools.mjs
CHANGED
|
@@ -294,6 +294,8 @@ export function createMcpToolHandlers(overrides = {}) {
|
|
|
294
294
|
if (remaining <= 0) break;
|
|
295
295
|
await deps.sleepImpl(Math.min(1000, remaining));
|
|
296
296
|
}
|
|
297
|
+
request = await deps.loadRequestImpl({ home: deps.home, env: deps.env, requestId });
|
|
298
|
+
if (request.status === 'resolved') return terminalResult(request);
|
|
297
299
|
return pendingResult(request.requestId);
|
|
298
300
|
},
|
|
299
301
|
|