@hediet/linkrpc-cli 0.0.3-next.20261028.3 → 0.0.3-next.20261028.4
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/README.md +3 -1
- package/dist/chunks/{cli-CuQ0wsuQ.js → cli-BO6R7w9u.js} +16 -8
- package/dist/chunks/cli-BO6R7w9u.js.map +1 -0
- package/dist/chunks/{runApprovalUi-BQsnQJZC.js → runApprovalUi-D4SEnOZ8.js} +7 -3
- package/dist/chunks/{runApprovalUi-BQsnQJZC.js.map → runApprovalUi-D4SEnOZ8.js.map} +1 -1
- package/dist/chunks/{runUi-CPf2r-fh.js → runUi-DxF1CsfS.js} +3 -3
- package/dist/chunks/{runUi-CPf2r-fh.js.map → runUi-DxF1CsfS.js.map} +1 -1
- package/dist/chunks/{scroll-flNV90LP.js → scroll-BrO3sNMh.js} +2 -2
- package/dist/chunks/{scroll-flNV90LP.js.map → scroll-BrO3sNMh.js.map} +1 -1
- package/dist/hub.js +1 -1
- package/dist/linkrpc.js +1 -1
- package/dist/rpc.js +1 -1
- package/package.json +7 -7
- package/dist/chunks/cli-CuQ0wsuQ.js.map +0 -1
package/README.md
CHANGED
|
@@ -843,7 +843,7 @@ The nonempty export token is separate from the source Hub credentials. Clients a
|
|
|
843
843
|
|
|
844
844
|
Alternatively, configure the listener token in the target URI as `listen:ws://127.0.0.1:8123?token=...`; this configuration syntax is independent of the accepted client query names. Readiness output never includes the token. Unknown routes return 404 and missing/invalid/ambiguous credentials return 401 without opening an upstream session. Anyone holding this token can access all configured routes using the export process's Hub identity; use a narrowly scoped identity and protect the token. Client credentials are consumed by the listener and never forwarded to the upstream factory.
|
|
845
845
|
|
|
846
|
-
Only `listen:ws://` TCP listeners are currently supported, not named pipes or TLS listeners. Bind loopback for local use. For remote access, terminate TLS in a trusted reverse proxy rather than sending tokens over unencrypted networks. The gateway limits connections to 100, frames to
|
|
846
|
+
Only `listen:ws://` TCP listeners are currently supported, not named pipes or TLS listeners. Bind loopback for local use. For remote access, terminate TLS in a trusted reverse proxy rather than sending tokens over unencrypted networks. The gateway limits connections to 100, frames to 100 MiB (104,857,600 bytes), and pending input per client to 200 MiB / 1024 frames; outgoing buffered data is also limited to 200 MiB. Slow consumers and failed upstreams close only their own connection. Factories must open within 30 seconds.
|
|
847
847
|
|
|
848
848
|
The command stays in the foreground until SIGINT/SIGTERM, then closes clients and the listener. Use the existing Hub daemon/service lifecycle to supervise it; this command neither installs a service nor starts remote AHP hosts. Diagnostics and the bound address (including an assigned port when using port 0) go to stderr.
|
|
849
849
|
|
|
@@ -1134,6 +1134,8 @@ only when the selected identity is a configured trusted root.
|
|
|
1134
1134
|
Discovery diagnostics are written to stderr, including every manifest source
|
|
1135
1135
|
and its pending-request count; `--json` stdout remains machine-readable.
|
|
1136
1136
|
|
|
1137
|
+
An unavailable child directory or manifest does not block requests and decisions from healthy sources. The listing reports partial results, and JSON output includes a `warnings` array when sources are unavailable. Directory warnings identify the failed service and the directories advertising it. Failed manifests contribute no cached requests; a failure of root discovery or the aggregate snapshot still fails the command rather than reporting a healthy empty inbox.
|
|
1138
|
+
|
|
1137
1139
|
Hub calls (`call`, `ls`, …) additionally present a self-issued capability for
|
|
1138
1140
|
every call. A Hub accepts it only where the identity is a configured trusted
|
|
1139
1141
|
root, so a root needs no approval for its own calls; elsewhere it is ignored
|
|
@@ -5563,17 +5563,25 @@ function createHubApprovalCommandClient(...args) {
|
|
|
5563
5563
|
runInteractive: (signal, prompt = createTerminalConsentPrompt()) => runInteractive(signal, prompt)
|
|
5564
5564
|
});
|
|
5565
5565
|
}
|
|
5566
|
-
function formatApprovalRequests(requests, principalId, json = false) {
|
|
5566
|
+
function formatApprovalRequests(requests, principalId, json = false, warnings = []) {
|
|
5567
5567
|
if (json) return formatJson({
|
|
5568
5568
|
version: 1,
|
|
5569
5569
|
principal: principalId,
|
|
5570
5570
|
requests: requests.map(({ id, request }) => ({
|
|
5571
5571
|
id,
|
|
5572
5572
|
request
|
|
5573
|
-
}))
|
|
5573
|
+
})),
|
|
5574
|
+
...warnings.length > 0 ? { warnings } : {}
|
|
5574
5575
|
});
|
|
5575
|
-
|
|
5576
|
-
|
|
5576
|
+
const lines = warnings.length > 0 ? [
|
|
5577
|
+
"Partial results: some approval sources are unavailable.",
|
|
5578
|
+
...warnings,
|
|
5579
|
+
""
|
|
5580
|
+
] : [];
|
|
5581
|
+
if (requests.length === 0) {
|
|
5582
|
+
lines.push(warnings.length > 0 ? `No pending approval requests found in available sources for ${principalId}.` : `No pending approval requests for ${principalId}.`);
|
|
5583
|
+
return lines.join("\n");
|
|
5584
|
+
}
|
|
5577
5585
|
for (const request of requests) {
|
|
5578
5586
|
const presentation = createApprovalPresentation(request);
|
|
5579
5587
|
lines.push(presentation.heading);
|
|
@@ -9664,7 +9672,7 @@ Batch options:
|
|
|
9664
9672
|
const approval = program.command("approval").description("Inspect and decide pending Hub access approval requests.");
|
|
9665
9673
|
approval.command("requests").description("List pending requests whose capability audience is this CLI identity.").option("--json", "stable machine-readable JSON output").action(async (opts) => {
|
|
9666
9674
|
await withApprovalClient(endpoint, getPrincipalSpec(), async (client) => {
|
|
9667
|
-
const out = formatApprovalRequests(await client.requests(), client.principalId, opts.json === true);
|
|
9675
|
+
const out = formatApprovalRequests(await client.requests(), client.principalId, opts.json === true, client.snapshot.get().warnings);
|
|
9668
9676
|
process.stdout.write(out + "\n");
|
|
9669
9677
|
});
|
|
9670
9678
|
});
|
|
@@ -9688,7 +9696,7 @@ Batch options:
|
|
|
9688
9696
|
process.once("SIGINT", onSignal);
|
|
9689
9697
|
process.once("SIGTERM", onSignal);
|
|
9690
9698
|
try {
|
|
9691
|
-
const { runApprovalUi } = await import("./runApprovalUi-
|
|
9699
|
+
const { runApprovalUi } = await import("./runApprovalUi-D4SEnOZ8.js");
|
|
9692
9700
|
await runApprovalUi({
|
|
9693
9701
|
client,
|
|
9694
9702
|
signal: stop.signal
|
|
@@ -9703,7 +9711,7 @@ Batch options:
|
|
|
9703
9711
|
registerViewCommands(program, (action) => withChannel(endpoint, getPrincipalSpec(), action));
|
|
9704
9712
|
program.command("ui").description("Launch the terminal UI (form-based browser of services + methods).").action(async () => {
|
|
9705
9713
|
const acquired = await acquireConnection(endpoint);
|
|
9706
|
-
const { runUi } = await import("./runUi-
|
|
9714
|
+
const { runUi } = await import("./runUi-DxF1CsfS.js");
|
|
9707
9715
|
try {
|
|
9708
9716
|
await runUi({
|
|
9709
9717
|
endpoint: acquired.ep,
|
|
@@ -10271,4 +10279,4 @@ function safeJson(value) {
|
|
|
10271
10279
|
//#endregion
|
|
10272
10280
|
export { formatCondition as _, formatCommandLegend as a, targetId as b, safeTerminalText as c, ObservablePromise as d, observableValue as f, resolveViewTarget as g, Disposable as h, dispatchHostKey as i, approvalDetailLines as l, derived as m, views as n, hostCommands as o, autorun as p, ViewFrame as r, matchesKey as s, runCli as t, ObservableLazyPromise as u, interfaceTarget as v, matchesTarget as y };
|
|
10273
10281
|
|
|
10274
|
-
//# sourceMappingURL=cli-
|
|
10282
|
+
//# sourceMappingURL=cli-BO6R7w9u.js.map
|