@hediet/linkrpc-cli 0.0.3-next.20261031.1 → 0.0.3-next.20261102.2
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 +71 -14
- package/dist/chunks/{cli-DQr3bq_u.js → cli-BY9fXhpJ.js} +149 -67
- package/dist/chunks/cli-BY9fXhpJ.js.map +1 -0
- package/dist/chunks/{runApprovalUi-CHLl-QDw.js → runApprovalUi-5soIqxOS.js} +3 -3
- package/dist/chunks/{runApprovalUi-CHLl-QDw.js.map → runApprovalUi-5soIqxOS.js.map} +1 -1
- package/dist/chunks/{runComplete-C__MHMiO.js → runComplete-BWhPmSgi.js} +228 -36
- package/dist/chunks/runComplete-BWhPmSgi.js.map +1 -0
- package/dist/chunks/{runUi-CtNlZncr.js → runUi-Dkm-6D6s.js} +5 -5
- package/dist/chunks/{runUi-CtNlZncr.js.map → runUi-Dkm-6D6s.js.map} +1 -1
- package/dist/chunks/{scroll-B_5Pakou.js → scroll-rkdCKbaP.js} +2 -2
- package/dist/chunks/{scroll-B_5Pakou.js.map → scroll-rkdCKbaP.js.map} +1 -1
- package/dist/chunks/{src-CAZT8apO.js → src-DIsGc3Ft.js} +2 -2
- package/dist/chunks/{src-CAZT8apO.js.map → src-DIsGc3Ft.js.map} +1 -1
- package/dist/hub.js +1 -1
- package/dist/index.js +1 -1
- package/dist/linkrpc.js +1 -1
- package/dist/rpc.js +1 -1
- package/package.json +6 -6
- package/dist/chunks/cli-DQr3bq_u.js.map +0 -1
- package/dist/chunks/runComplete-C__MHMiO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as formatCondition, a as formatCommandLegend, b as targetId, c as safeTerminalText, d as ObservablePromise, f as observableValue, g as resolveViewTarget, h as Disposable, i as dispatchHostKey, m as derived, n as views, o as hostCommands, p as autorun, r as ViewFrame, s as matchesKey, u as ObservableLazyPromise, v as interfaceTarget, y as matchesTarget } from "./cli-
|
|
3
|
-
import { n as useObservable, t as useScroll } from "./scroll-
|
|
1
|
+
import { W as withStaticHubReflection, dt as formatPrincipalSource, it as fetchSchema, nt as setupSigning, pt as connect, rt as fetchDefaults, st as walkHubDetailed, xt as validateValueAgainstSchema } from "./runComplete-BWhPmSgi.js";
|
|
2
|
+
import { _ as formatCondition, a as formatCommandLegend, b as targetId, c as safeTerminalText, d as ObservablePromise, f as observableValue, g as resolveViewTarget, h as Disposable, i as dispatchHostKey, m as derived, n as views, o as hostCommands, p as autorun, r as ViewFrame, s as matchesKey, u as ObservableLazyPromise, v as interfaceTarget, y as matchesTarget } from "./cli-BY9fXhpJ.js";
|
|
3
|
+
import { n as useObservable, t as useScroll } from "./scroll-rkdCKbaP.js";
|
|
4
4
|
import { ChannelConnector, RpcError, SigningSender } from "@hediet/linkrpc";
|
|
5
5
|
import { isHubEndpoint, openHubChannel } from "@hediet/linkrpc/node";
|
|
6
6
|
import { emitKeypressEvents } from "node:readline";
|
|
@@ -1593,7 +1593,7 @@ async function runUi(opts) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
/** Non-Hub endpoints: a single connection, no redial. */
|
|
1595
1595
|
async function _runUiOnce(endpoint, principalSpec, schema, profile) {
|
|
1596
|
-
const conn = await connect(endpoint);
|
|
1596
|
+
const conn = await connect(endpoint, void 0, { cmdEnvLocalHub: profile === "hub" });
|
|
1597
1597
|
const identity = _isRawEndpoint(endpoint) || profile === "rpc" ? "unsigned (raw endpoint)" : _formatIdentity(await setupSigning(conn.channel, conn.signing, principalSpec, { negotiateHubCaps: false }));
|
|
1598
1598
|
const model = new UiModel(schema ? withStaticHubReflection(conn.channel, schema) : conn.channel);
|
|
1599
1599
|
model.identity.set(identity, void 0);
|
|
@@ -1686,4 +1686,4 @@ var SwappableSender = class {
|
|
|
1686
1686
|
//#endregion
|
|
1687
1687
|
export { runUi };
|
|
1688
1688
|
|
|
1689
|
-
//# sourceMappingURL=runUi-
|
|
1689
|
+
//# sourceMappingURL=runUi-Dkm-6D6s.js.map
|