devframe 0.9.17 → 0.9.19
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/dist/{_shared-CkLpdx6I.d.mts → _shared-BIUet_Jh.d.mts} +1 -1
- package/dist/adapters/build.d.mts +1 -1
- package/dist/adapters/build.mjs +3 -3
- package/dist/adapters/cac.d.mts +1 -1
- package/dist/adapters/cac.mjs +1 -1
- package/dist/adapters/dev.d.mts +4 -4
- package/dist/adapters/dev.mjs +1 -1
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +3 -3
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.mjs +1 -1
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.mjs +66 -54
- package/dist/{context-3y_PeZKl.d.mts → context-BA5FPz7K.d.mts} +1 -1
- package/dist/{context-DLzIyQCZ.d.mts → context-BLHBDQcZ.d.mts} +2 -2
- package/dist/{context-Cdj9z9m2.mjs → context-BLXXjoBW.mjs} +3 -3
- package/dist/{dev-DpfkCVqo.mjs → dev-DbWecpjA.mjs} +2 -2
- package/dist/{host-agent-CKqSTEX9.mjs → host-agent-C3MBpNCd.mjs} +30 -31
- package/dist/in-page-channel/index.d.mts +4 -4
- package/dist/in-page-channel/index.mjs +32 -22
- package/dist/{index-pIVt92jP.d.mts → index-CiA6C705.d.mts} +2 -2
- package/dist/{index-Ces7aTOQ.d.mts → index-r6NstVmM.d.mts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/{instance-shell-BQXr8n68.d.mts → instance-shell-C6Vg97lg.d.mts} +3 -3
- package/dist/internal/index.d.mts +13 -33
- package/dist/internal/index.mjs +3 -3
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.mjs +1 -1
- package/dist/recipes/common-rpc-functions.d.mts +5 -62
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/{remote-assets-DMFzLSoH.mjs → remote-assets-D0StJVLp.mjs} +17 -16
- package/dist/rpc/dump.d.mts +1 -1
- package/dist/rpc/dump.mjs +1 -1
- package/dist/rpc/index.d.mts +3 -3
- package/dist/rpc/index.mjs +8 -11
- package/dist/rpc/transports/sse-client.d.mts +1 -1
- package/dist/rpc/transports/sse-client.mjs +1 -1
- package/dist/rpc/transports/sse-server.d.mts +2 -2
- package/dist/rpc/transports/sse-server.mjs +1 -1
- package/dist/rpc/transports/ws-bun.d.mts +2 -2
- package/dist/rpc/transports/ws-client.d.mts +1 -1
- package/dist/rpc/transports/ws-client.mjs +1 -1
- package/dist/rpc/transports/ws-deno.d.mts +2 -2
- package/dist/rpc/transports/ws-server.d.mts +1 -1
- package/dist/rpc/transports/ws-server.mjs +1 -1
- package/dist/{rpc-core-Clo3kHfo.d.mts → rpc-core-BlL-Ip8n.d.mts} +3 -3
- package/dist/{serialization-DFg5sUt6.mjs → serialization-BhuOoL80.mjs} +2 -2
- package/dist/{sse-client-BQ4jS3eO.d.mts → sse-client-BcbYwXdD.d.mts} +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/{types-Dq4i156u.d.mts → types-D2vGd7-2.d.mts} +52 -113
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/remote-assets.mjs +1 -1
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/dist/{validation-CfV1s0SF.mjs → validation-BzxTTYaV.mjs} +15 -2
- package/dist/{wire-codec-BHGt0sSs.mjs → wire-codec-B1W3zH3L.mjs} +1 -1
- package/dist/{write-D2AJqVT8.mjs → write-DoXJzGUH.mjs} +3 -2
- package/dist/{ws-client-Xpxt0oPA.d.mts → ws-client-CNpP6Ium.d.mts} +1 -1
- package/dist/{ws-server-9ztvkeJ0.d.mts → ws-server-BB8jhxeT.d.mts} +1 -1
- package/package.json +3 -3
- package/skills/devframe/SKILL.md +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "./context-
|
|
1
|
+
import "./index-CiA6C705.mjs";
|
|
2
|
+
import { D as RpcReturnSchema, T as RpcFunctionType, _ as RpcFunctionDefinition, g as RpcFunctionAgentOptions, i as RpcArgsSchema } from "./types-D2vGd7-2.mjs";
|
|
3
|
+
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "./context-BLHBDQcZ.mjs";
|
|
4
4
|
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
5
5
|
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "./remote-assets-eBvSKZMS.mjs";
|
|
6
6
|
import { i as DevframeDefineDiagnosticsOptions } from "./nostics-0sKe5HIj.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-
|
|
1
|
+
import { Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-BLHBDQcZ.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
3
|
-
import { n as WsOriginRegistry } from "./ws-server-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { n as WsOriginRegistry } from "./ws-server-BB8jhxeT.mjs";
|
|
4
|
+
import "./index-r6NstVmM.mjs";
|
|
5
5
|
import { BirpcGroup } from "birpc";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { NodeAdapter } from "crossws/adapters/node";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as RpcFunctionDefinitionAny } from "../types-
|
|
2
|
-
import { At as AgentHandle, Bt as DevframeAgentHostEvents, F as DevframeDefinition, Ft as AgentTool, It as AgentToolInput, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, Pt as AgentResourceInput, Rt as AgentToolProviderHandle, Vt as EventEmitter, jt as AgentManifest, o as DevframeNodeContext, xt as DevframeHost, zt as DevframeAgentHost$1 } from "../context-
|
|
1
|
+
import { v as RpcFunctionDefinitionAny } from "../types-D2vGd7-2.mjs";
|
|
2
|
+
import { At as AgentHandle, Bt as DevframeAgentHostEvents, F as DevframeDefinition, Ft as AgentTool, It as AgentToolInput, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, Pt as AgentResourceInput, Rt as AgentToolProviderHandle, Vt as EventEmitter, jt as AgentManifest, o as DevframeNodeContext, xt as DevframeHost, zt as DevframeAgentHost$1 } from "../context-BLHBDQcZ.mjs";
|
|
3
3
|
import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
4
|
-
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, h as registerDevframeInstance, i as InstanceShellApi, l as createInstanceShell, m as listLiveDevframeInstances, n as InstanceRegisterConfig, o as InstanceShellInternals, p as DevframeInstanceRegistration, r as InstanceShell, s as InstanceWsTier, t as CreateInstanceShellOptions, u as resolveInstanceRegister } from "../instance-shell-
|
|
5
|
-
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-
|
|
6
|
-
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-
|
|
4
|
+
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, h as registerDevframeInstance, i as InstanceShellApi, l as createInstanceShell, m as listLiveDevframeInstances, n as InstanceRegisterConfig, o as InstanceShellInternals, p as DevframeInstanceRegistration, r as InstanceShell, s as InstanceWsTier, t as CreateInstanceShellOptions, u as resolveInstanceRegister } from "../instance-shell-C6Vg97lg.mjs";
|
|
5
|
+
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-BIUet_Jh.mjs";
|
|
6
|
+
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-BlL-Ip8n.mjs";
|
|
7
7
|
//#region src/client-assets.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Resolve a definition's client assets source: the built SPA served as its
|
|
@@ -17,34 +17,6 @@ import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as C
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function resolveClientAssets(d: DevframeDefinition): StaticAssetsSource | undefined;
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region src/node/agent-args.d.ts
|
|
21
|
-
/**
|
|
22
|
-
* How {@link coerceAgentPositionalArgs} treats an args object that carries
|
|
23
|
-
* neither declared schemas nor `arg0`/`arg1`/… keys:
|
|
24
|
-
*
|
|
25
|
-
* - `'wrap'`: pass the object itself as the single positional argument.
|
|
26
|
-
* RPC-backed tools use this: an untyped RPC may take one raw object.
|
|
27
|
-
* - `'drop'`: call with zero arguments. Command-backed tools use this:
|
|
28
|
-
* a handler's positional parameters come solely from its declared
|
|
29
|
-
* `agent.args` schemas, so undeclared payload is ignored.
|
|
30
|
-
*/
|
|
31
|
-
type AgentArgsFallback = 'wrap' | 'drop';
|
|
32
|
-
/**
|
|
33
|
-
* Map the args payload an agent surface receives (MCP sends an object
|
|
34
|
-
* keyed `arg0`/`arg1`/…, matching the schema the adapter advertises) onto
|
|
35
|
-
* a handler's positional parameters. Shared by the agent host's RPC
|
|
36
|
-
* bridge and the hub's command-derived tools so the coercion cannot
|
|
37
|
-
* drift between them.
|
|
38
|
-
*
|
|
39
|
-
* - an array passes through as-is
|
|
40
|
-
* - `null`/`undefined` become a zero-argument call
|
|
41
|
-
* - with declared schemas, each schema reads its own `argN` key, in order
|
|
42
|
-
* - without schemas, `arg0`/`arg1`/… keys are collected when present
|
|
43
|
-
* - an empty object becomes a zero-argument call
|
|
44
|
-
* - anything else follows the {@link AgentArgsFallback}
|
|
45
|
-
*/
|
|
46
|
-
export declare function coerceAgentPositionalArgs(args: unknown, schemas: readonly unknown[] | undefined, fallback?: AgentArgsFallback): unknown[];
|
|
47
|
-
//#endregion
|
|
48
20
|
//#region src/node/diagnostics.d.ts
|
|
49
21
|
/**
|
|
50
22
|
* DF00xx codes are allocated across packages (e.g. @devframes/json-render
|
|
@@ -478,4 +450,12 @@ export declare function peekRpcWireFrame(raw: string): {
|
|
|
478
450
|
i?: string;
|
|
479
451
|
};
|
|
480
452
|
//#endregion
|
|
453
|
+
//#region src/tool-input.d.ts
|
|
454
|
+
/** Convert tool input for a command, whose arguments must be declared. */
|
|
455
|
+
export declare function toolInputToCommandArgs(input: unknown, argumentCount?: number): unknown[];
|
|
456
|
+
/** @deprecated Use {@link toolInputToRpcArgs} or {@link toolInputToCommandArgs}. */
|
|
457
|
+
type AgentArgsFallback = 'wrap' | 'drop';
|
|
458
|
+
/** @deprecated Use {@link toolInputToRpcArgs} or {@link toolInputToCommandArgs}. */
|
|
459
|
+
export declare function coerceAgentPositionalArgs(input: unknown, schemas: readonly unknown[] | undefined, fallback?: AgentArgsFallback): unknown[];
|
|
460
|
+
//#endregion
|
|
481
461
|
export { type AgentArgsFallback, type ContextRpcServer, type CreateContextRpcServerOptions, type CreateInstanceShellOptions, type DevframeInstanceRecord, type DevframeInstanceRegistration, type InstanceRegisterConfig, type InstanceShell, type InstanceShellApi, type InstanceShellInit, type InstanceShellInternals, type InstanceWsTier, type ResolvedMcpConfig, type RpcWireCodec, type StartedServer, createContextRpcServer, createInstanceShell, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, resolveMcpConfig, samePath };
|
package/dist/internal/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as resolveClientAssets } from "../client-assets-DNdhagGm.mjs";
|
|
2
|
-
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-
|
|
2
|
+
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-B1W3zH3L.mjs";
|
|
3
3
|
import { t as diagnostics } from "../diagnostics-DZA6KQ_Z.mjs";
|
|
4
|
-
import { n as coerceAgentPositionalArgs, t as DevframeAgentHost } from "../host-agent-
|
|
4
|
+
import { n as coerceAgentPositionalArgs, r as toolInputToCommandArgs, t as DevframeAgentHost } from "../host-agent-C3MBpNCd.mjs";
|
|
5
5
|
import { a as resolveMcpConfig, n as normalizeBasePath, r as resolveBasePath, s as importRuntimeModule, t as loadAutoMcpAdapter } from "../_shared-U8D-xzrp.mjs";
|
|
6
6
|
import { t as createH3DevframeHost } from "../host-h3-BROI6SQ4.mjs";
|
|
7
7
|
import { i as registerDevframeInstance, n as listLiveDevframeInstances } from "../instance-registry-DCq762YJ.mjs";
|
|
8
8
|
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-370Oee9K.mjs";
|
|
9
9
|
import { t as createContextRpcServer } from "../rpc-core-CvkU23bQ.mjs";
|
|
10
|
-
export { DevframeAgentHost, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, importRuntimeModule, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveBasePath, resolveClientAssets, resolveInstanceRegister, resolveMcpConfig, samePath };
|
|
10
|
+
export { DevframeAgentHost, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, importRuntimeModule, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveBasePath, resolveClientAssets, resolveInstanceRegister, resolveMcpConfig, samePath, toolInputToCommandArgs };
|
package/dist/node/auth.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Tt as DevframeAuthHandler } from "../context-
|
|
2
|
-
import { a as getTempAuthCodeInfo, c as revokeActiveConnectionsForToken, i as getTempAuthCode, l as revokeAuthToken, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../index-
|
|
1
|
+
import { Tt as DevframeAuthHandler } from "../context-BLHBDQcZ.mjs";
|
|
2
|
+
import { a as getTempAuthCodeInfo, c as revokeActiveConnectionsForToken, i as getTempAuthCode, l as revokeAuthToken, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../index-r6NstVmM.mjs";
|
|
3
3
|
export { DevframeAuthHandler, buildOtpAuthUrl, describeUA, exchangeTempAuthCode, getTempAuthCode, getTempAuthCodeInfo, refreshTempAuthCode, revokeActiveConnectionsForToken, revokeAuthToken, verifyAuthToken };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-
|
|
2
|
-
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-
|
|
1
|
+
import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-BA5FPz7K.mjs";
|
|
2
|
+
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-BIUet_Jh.mjs";
|
|
3
3
|
export { type DevframeInternalContext, type InternalAnonymousAuthStorage, type RemoteTokenRecord, getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { v as RpcFunctionDefinitionAny } from "../types-
|
|
3
|
-
import { k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext, xt as DevframeHost } from "../context-
|
|
1
|
+
import "../index-CiA6C705.mjs";
|
|
2
|
+
import { v as RpcFunctionDefinitionAny } from "../types-D2vGd7-2.mjs";
|
|
3
|
+
import { k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext, xt as DevframeHost } from "../context-BLHBDQcZ.mjs";
|
|
4
4
|
import { BirpcGroup } from "birpc";
|
|
5
5
|
//#region src/node/context.d.ts
|
|
6
6
|
export interface CreateHostContextOptions {
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import {
|
|
3
|
-
import "../context-DLzIyQCZ.mjs";
|
|
1
|
+
import "../index-CiA6C705.mjs";
|
|
2
|
+
import { S as RpcFunctionDefinitionWithSchemas } from "../types-D2vGd7-2.mjs";
|
|
4
3
|
import { SimpleSchema } from "../utils/simple-schema.mjs";
|
|
5
4
|
//#region src/recipes/common-rpc-functions.d.ts
|
|
6
5
|
/**
|
|
@@ -38,21 +37,7 @@ export declare const KNOWN_EDITORS: KnownEditor[];
|
|
|
38
37
|
* host-level installation shared by every plugin and feature-detectable from
|
|
39
38
|
* clients, with workspace-root path containment on top of the editor gating.
|
|
40
39
|
*/
|
|
41
|
-
export declare const openInEditor:
|
|
42
|
-
name: "devframe:open-in-editor";
|
|
43
|
-
type?: "action" | undefined;
|
|
44
|
-
cacheable?: boolean;
|
|
45
|
-
args: readonly [SimpleSchema<string, string>, SimpleSchema<KnownEditor | undefined, KnownEditor | undefined>];
|
|
46
|
-
returns: SimpleSchema<void, void>;
|
|
47
|
-
jsonSerializable?: boolean;
|
|
48
|
-
agent?: RpcFunctionAgentOptions;
|
|
49
|
-
setup?: ((context: undefined) => Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>>) | undefined;
|
|
50
|
-
handler?: ((args_0: string, args_1: KnownEditor | undefined) => Thenable<void>) | undefined;
|
|
51
|
-
dump?: RpcDump<[string, KnownEditor | undefined], Thenable<void>, undefined> | undefined;
|
|
52
|
-
snapshot?: boolean;
|
|
53
|
-
__cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>>> | undefined;
|
|
54
|
-
__promise?: Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>> | undefined;
|
|
55
|
-
};
|
|
40
|
+
export declare const openInEditor: RpcFunctionDefinitionWithSchemas<"devframe:open-in-editor", "action", readonly [SimpleSchema<string, string>, SimpleSchema<KnownEditor | undefined, KnownEditor | undefined>], SimpleSchema<void, void>, undefined>;
|
|
56
41
|
/**
|
|
57
42
|
* Prebuilt RPC action that reveals a path in the OS file explorer.
|
|
58
43
|
*
|
|
@@ -68,21 +53,7 @@ export declare const openInEditor: {
|
|
|
68
53
|
* host-level installation shared by every plugin and feature-detectable from
|
|
69
54
|
* clients, with workspace-root path containment.
|
|
70
55
|
*/
|
|
71
|
-
export declare const openInFinder:
|
|
72
|
-
name: "devframe:open-in-finder";
|
|
73
|
-
type?: "action" | undefined;
|
|
74
|
-
cacheable?: boolean;
|
|
75
|
-
args: readonly [SimpleSchema<string, string>];
|
|
76
|
-
returns: SimpleSchema<void, void>;
|
|
77
|
-
jsonSerializable?: boolean;
|
|
78
|
-
agent?: RpcFunctionAgentOptions;
|
|
79
|
-
setup?: ((context: undefined) => Thenable<RpcFunctionSetupResult<[string], Thenable<void>>>) | undefined;
|
|
80
|
-
handler?: ((args_0: string) => Thenable<void>) | undefined;
|
|
81
|
-
dump?: RpcDump<[string], Thenable<void>, undefined> | undefined;
|
|
82
|
-
snapshot?: boolean;
|
|
83
|
-
__cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<[string], Thenable<void>>>> | undefined;
|
|
84
|
-
__promise?: Thenable<RpcFunctionSetupResult<[string], Thenable<void>>> | undefined;
|
|
85
|
-
};
|
|
56
|
+
export declare const openInFinder: RpcFunctionDefinitionWithSchemas<"devframe:open-in-finder", "action", readonly [SimpleSchema<string, string>], SimpleSchema<void, void>, undefined>;
|
|
86
57
|
/**
|
|
87
58
|
* Convenience array bundling both helpers so callers can register them
|
|
88
59
|
* in a single `forEach`.
|
|
@@ -95,33 +66,5 @@ export declare const openInFinder: {
|
|
|
95
66
|
*
|
|
96
67
|
* @deprecated Use the `@devframes/service-open` wire service instead.
|
|
97
68
|
*/
|
|
98
|
-
export declare const commonRpcFunctions: readonly [
|
|
99
|
-
name: "devframe:open-in-editor";
|
|
100
|
-
type?: "action" | undefined;
|
|
101
|
-
cacheable?: boolean;
|
|
102
|
-
args: readonly [SimpleSchema<string, string>, SimpleSchema<KnownEditor | undefined, KnownEditor | undefined>];
|
|
103
|
-
returns: SimpleSchema<void, void>;
|
|
104
|
-
jsonSerializable?: boolean;
|
|
105
|
-
agent?: RpcFunctionAgentOptions;
|
|
106
|
-
setup?: ((context: undefined) => Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>>) | undefined;
|
|
107
|
-
handler?: ((args_0: string, args_1: KnownEditor | undefined) => Thenable<void>) | undefined;
|
|
108
|
-
dump?: RpcDump<[string, KnownEditor | undefined], Thenable<void>, undefined> | undefined;
|
|
109
|
-
snapshot?: boolean;
|
|
110
|
-
__cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>>> | undefined;
|
|
111
|
-
__promise?: Thenable<RpcFunctionSetupResult<[string, KnownEditor | undefined], Thenable<void>>> | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
name: "devframe:open-in-finder";
|
|
114
|
-
type?: "action" | undefined;
|
|
115
|
-
cacheable?: boolean;
|
|
116
|
-
args: readonly [SimpleSchema<string, string>];
|
|
117
|
-
returns: SimpleSchema<void, void>;
|
|
118
|
-
jsonSerializable?: boolean;
|
|
119
|
-
agent?: RpcFunctionAgentOptions;
|
|
120
|
-
setup?: ((context: undefined) => Thenable<RpcFunctionSetupResult<[string], Thenable<void>>>) | undefined;
|
|
121
|
-
handler?: ((args_0: string) => Thenable<void>) | undefined;
|
|
122
|
-
dump?: RpcDump<[string], Thenable<void>, undefined> | undefined;
|
|
123
|
-
snapshot?: boolean;
|
|
124
|
-
__cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<[string], Thenable<void>>>> | undefined;
|
|
125
|
-
__promise?: Thenable<RpcFunctionSetupResult<[string], Thenable<void>>> | undefined;
|
|
126
|
-
}];
|
|
69
|
+
export declare const commonRpcFunctions: readonly [RpcFunctionDefinitionWithSchemas<"devframe:open-in-editor", "action", readonly [SimpleSchema<string, string>, SimpleSchema<KnownEditor | undefined, KnownEditor | undefined>], SimpleSchema<void, void>, undefined>, RpcFunctionDefinitionWithSchemas<"devframe:open-in-finder", "action", readonly [SimpleSchema<string, string>], SimpleSchema<void, void>, undefined>];
|
|
127
70
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { Tt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-BLHBDQcZ.mjs";
|
|
2
|
+
import "../index-r6NstVmM.mjs";
|
|
3
3
|
import { ColorFn } from "../utils/colors.mjs";
|
|
4
4
|
//#region src/recipes/interactive-auth.d.ts
|
|
5
5
|
export interface CreateInteractiveAuthOptions {
|
|
@@ -8,7 +8,7 @@ import { createReadStream, existsSync } from "node:fs";
|
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
import { lookup } from "mrmime";
|
|
11
|
-
//#region ../../node_modules/.pnpm/obug@
|
|
11
|
+
//#region ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/core.js
|
|
12
12
|
/**
|
|
13
13
|
* Coerce `value`.
|
|
14
14
|
*/
|
|
@@ -37,15 +37,16 @@ function matchesTemplate(search, template) {
|
|
|
37
37
|
let templateIndex = 0;
|
|
38
38
|
let starIndex = -1;
|
|
39
39
|
let matchIndex = 0;
|
|
40
|
-
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*"))
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
41
|
+
if (template[templateIndex] === "*") {
|
|
42
|
+
starIndex = templateIndex;
|
|
43
|
+
matchIndex = searchIndex;
|
|
44
|
+
templateIndex++;
|
|
45
|
+
} else {
|
|
46
|
+
searchIndex++;
|
|
47
|
+
templateIndex++;
|
|
48
|
+
}
|
|
49
|
+
} else if (starIndex !== -1) {
|
|
49
50
|
templateIndex = starIndex + 1;
|
|
50
51
|
matchIndex++;
|
|
51
52
|
searchIndex = matchIndex;
|
|
@@ -63,7 +64,7 @@ function createDebug$1(namespace, options) {
|
|
|
63
64
|
let enableOverride;
|
|
64
65
|
let namespacesCache;
|
|
65
66
|
let enabledCache;
|
|
66
|
-
const debug = (...args) => {
|
|
67
|
+
const debug = ((...args) => {
|
|
67
68
|
if (!debug.enabled) return;
|
|
68
69
|
const curr = Date.now();
|
|
69
70
|
const diff = curr - (prevTime || curr);
|
|
@@ -85,7 +86,7 @@ function createDebug$1(namespace, options) {
|
|
|
85
86
|
});
|
|
86
87
|
options.formatArgs.call(debug, diff, args);
|
|
87
88
|
debug.log(...args);
|
|
88
|
-
};
|
|
89
|
+
});
|
|
89
90
|
debug.extend = function(namespace, delimiter = ":") {
|
|
90
91
|
return createDebug$1(this.namespace + delimiter + namespace, {
|
|
91
92
|
useColors: this.useColors,
|
|
@@ -135,7 +136,7 @@ function enabled(name) {
|
|
|
135
136
|
return false;
|
|
136
137
|
}
|
|
137
138
|
//#endregion
|
|
138
|
-
//#region ../../node_modules/.pnpm/obug@
|
|
139
|
+
//#region ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/ansi.js
|
|
139
140
|
let env = {};
|
|
140
141
|
try {
|
|
141
142
|
process.env.DEBUG;
|
|
@@ -254,10 +255,10 @@ function formatArgs(diff, args) {
|
|
|
254
255
|
const { namespace: name, useColors } = this;
|
|
255
256
|
if (useColors) {
|
|
256
257
|
const c = this.color;
|
|
257
|
-
const colorCode = `\
|
|
258
|
-
const prefix = ` ${colorCode};1m${name} \
|
|
258
|
+
const colorCode = `\u{1B}[3${c < 8 ? c : `8;5;${c}`}`;
|
|
259
|
+
const prefix = ` ${colorCode};1m${name} \u{1B}[0m`;
|
|
259
260
|
args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
|
|
260
|
-
args.push(`${colorCode}m+${this.humanize(diff)}\
|
|
261
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\u{1B}[0m`);
|
|
261
262
|
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
262
263
|
}
|
|
263
264
|
function log(...args) {
|
package/dist/rpc/dump.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as RpcDumpStore, l as RpcDumpClientOptions, m as RpcDumpRecordError, n as BirpcReturn, o as RpcDefinitionsToFunctions, u as RpcDumpCollectionOptions, v as RpcFunctionDefinitionAny } from "../types-
|
|
1
|
+
import { h as RpcDumpStore, l as RpcDumpClientOptions, m as RpcDumpRecordError, n as BirpcReturn, o as RpcDefinitionsToFunctions, u as RpcDumpCollectionOptions, v as RpcFunctionDefinitionAny } from "../types-D2vGd7-2.mjs";
|
|
2
2
|
//#region src/rpc/dump/collect.d.ts
|
|
3
3
|
export declare function dumpFunctions<T extends readonly RpcFunctionDefinitionAny[]>(definitions: T, context?: any, options?: RpcDumpCollectionOptions): Promise<RpcDumpStore<RpcDefinitionsToFunctions<T>>>;
|
|
4
4
|
/**
|
package/dist/rpc/dump.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getDefinitionsWithDumps, i as dumpFunctions, n as collectStaticRpcDump, o as reviveDumpError, r as createClientFromDump, s as serializeDumpError, t as writeStaticRpcDump } from "../write-
|
|
1
|
+
import { a as getDefinitionsWithDumps, i as dumpFunctions, n as collectStaticRpcDump, o as reviveDumpError, r as createClientFromDump, s as serializeDumpError, t as writeStaticRpcDump } from "../write-DoXJzGUH.mjs";
|
|
2
2
|
export { collectStaticRpcDump, createClientFromDump, dumpFunctions, getDefinitionsWithDumps, reviveDumpError, serializeDumpError, writeStaticRpcDump };
|
package/dist/rpc/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as STRUCTURED_CLONE_PREFIX, c as getRpcResolvedSetupResult, d as RpcFunctionsCollectorBase, f as RpcCacheManager, i as validateRpcReturn, l as createDefineWrapperWithContext, n as validateDefinitions, o as strictJsonStringify, p as RpcCacheOptions, r as validateRpcArgs, s as getRpcHandler, t as validateDefinition, u as defineRpcFunction } from "../index-
|
|
2
|
-
import { C as
|
|
3
|
-
export { type BirpcFn, type BirpcReturn, EntriesToObject, RpcArgsSchema, RpcCacheManager, RpcCacheOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcDefinitionsToFunctionsWithNamespace, RpcDump, RpcDumpClientOptions, RpcDumpCollectionOptions, RpcDumpDefinition, RpcDumpGetter, RpcDumpRecord, RpcDumpRecordError, RpcDumpStore, RpcFunctionAgentOptions, RpcFunctionDefinition, RpcFunctionDefinitionAny, RpcFunctionDefinitionAnyWithContext, RpcFunctionDefinitionBase, RpcFunctionDefinitionToFunction, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, Thenable, createDefineWrapperWithContext, defineRpcFunction, getRpcHandler, getRpcResolvedSetupResult, strictJsonStringify, validateDefinition, validateDefinitions, validateRpcArgs, validateRpcReturn };
|
|
1
|
+
import { a as STRUCTURED_CLONE_PREFIX, c as getRpcResolvedSetupResult, d as RpcFunctionsCollectorBase, f as RpcCacheManager, i as validateRpcReturn, l as createDefineWrapperWithContext, n as validateDefinitions, o as strictJsonStringify, p as RpcCacheOptions, r as validateRpcArgs, s as getRpcHandler, t as validateDefinition, u as defineRpcFunction } from "../index-CiA6C705.mjs";
|
|
2
|
+
import { C as RpcFunctionDefinitionWithoutSchemas, D as RpcReturnSchema, E as RpcFunctionsCollector, O as Thenable, S as RpcFunctionDefinitionWithSchemas, T as RpcFunctionType, _ as RpcFunctionDefinition, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionBase, c as RpcDump, d as RpcDumpDefinition, f as RpcDumpGetter, g as RpcFunctionAgentOptions, h as RpcDumpStore, i as RpcArgsSchema, l as RpcDumpClientOptions, m as RpcDumpRecordError, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecord, r as EntriesToObject, s as RpcDefinitionsToFunctionsWithNamespace, t as BirpcFn, u as RpcDumpCollectionOptions, v as RpcFunctionDefinitionAny, w as RpcFunctionSetupResult, x as RpcFunctionDefinitionToFunction, y as RpcFunctionDefinitionAnyWithContext } from "../types-D2vGd7-2.mjs";
|
|
3
|
+
export { type BirpcFn, type BirpcReturn, EntriesToObject, RpcArgsSchema, RpcCacheManager, RpcCacheOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcDefinitionsToFunctionsWithNamespace, RpcDump, RpcDumpClientOptions, RpcDumpCollectionOptions, RpcDumpDefinition, RpcDumpGetter, RpcDumpRecord, RpcDumpRecordError, RpcDumpStore, RpcFunctionAgentOptions, RpcFunctionDefinition, RpcFunctionDefinitionAny, RpcFunctionDefinitionAnyWithContext, RpcFunctionDefinitionBase, RpcFunctionDefinitionToFunction, RpcFunctionDefinitionWithSchemas, RpcFunctionDefinitionWithoutSchemas, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, Thenable, createDefineWrapperWithContext, defineRpcFunction, getRpcHandler, getRpcResolvedSetupResult, strictJsonStringify, validateDefinition, validateDefinitions, validateRpcArgs, validateRpcReturn };
|
package/dist/rpc/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as validateRpcArgs, i as getRpcResolvedSetupResult, n as validateDefinitions, o as validateRpcReturn, r as getRpcHandler, s as
|
|
2
|
-
import { n as strictJsonStringify, r as diagnostics, t as STRUCTURED_CLONE_PREFIX } from "../serialization-
|
|
1
|
+
import { a as validateRpcArgs, c as hash, i as getRpcResolvedSetupResult, n as validateDefinitions, o as validateRpcReturn, r as getRpcHandler, s as ensureAgentJsonSerializable, t as validateDefinition } from "../validation-BzxTTYaV.mjs";
|
|
2
|
+
import { n as strictJsonStringify, r as diagnostics, t as STRUCTURED_CLONE_PREFIX } from "../serialization-BhuOoL80.mjs";
|
|
3
3
|
import { n as defineRpcFunction, t as createDefineWrapperWithContext } from "../define-BLWPsH6y.mjs";
|
|
4
4
|
//#region src/rpc/cache.ts
|
|
5
5
|
/**
|
|
@@ -71,15 +71,15 @@ var RpcFunctionsCollectorBase = class {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
register(
|
|
75
|
-
if (this.definitions.has(
|
|
76
|
-
|
|
77
|
-
this.definitions.set(
|
|
78
|
-
this._onChanged.forEach((cb) => cb(
|
|
74
|
+
register(fnDef, force = false) {
|
|
75
|
+
if (this.definitions.has(fnDef.name) && !force) throw diagnostics.DF0021({ name: fnDef.name });
|
|
76
|
+
ensureAgentJsonSerializable(fnDef);
|
|
77
|
+
this.definitions.set(fnDef.name, fnDef);
|
|
78
|
+
this._onChanged.forEach((cb) => cb(fnDef.name));
|
|
79
79
|
}
|
|
80
80
|
update(fn, force = false) {
|
|
81
81
|
if (!this.definitions.has(fn.name) && !force) throw diagnostics.DF0022({ name: fn.name });
|
|
82
|
-
|
|
82
|
+
ensureAgentJsonSerializable(fn);
|
|
83
83
|
this.definitions.set(fn.name, fn);
|
|
84
84
|
this._onChanged.forEach((cb) => cb(fn.name));
|
|
85
85
|
}
|
|
@@ -111,8 +111,5 @@ var RpcFunctionsCollectorBase = class {
|
|
|
111
111
|
return Array.from(this.definitions.keys());
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
function assertAgentJsonSerializable(fn) {
|
|
115
|
-
if (fn.agent && fn.jsonSerializable !== true) throw diagnostics.DF0019({ name: fn.name });
|
|
116
|
-
}
|
|
117
114
|
//#endregion
|
|
118
115
|
export { RpcCacheManager, RpcFunctionsCollectorBase, STRUCTURED_CLONE_PREFIX, createDefineWrapperWithContext, defineRpcFunction, getRpcHandler, getRpcResolvedSetupResult, strictJsonStringify, validateDefinition, validateDefinitions, validateRpcArgs, validateRpcReturn };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createSseRpcChannel, t as SseRpcChannelOptions } from "../../sse-client-
|
|
1
|
+
import { n as createSseRpcChannel, t as SseRpcChannelOptions } from "../../sse-client-BcbYwXdD.mjs";
|
|
2
2
|
export { SseRpcChannelOptions, createSseRpcChannel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEVFRAME_AUTH_TOKEN_QUERY_PARAM, DEVFRAME_SSE_SESSION_HEADER } from "../../constants.mjs";
|
|
2
|
-
import { t as createRpcWireCodec } from "../../wire-codec-
|
|
2
|
+
import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
|
|
3
3
|
//#region src/rpc/transports/sse-client.ts
|
|
4
4
|
function NOOP() {}
|
|
5
5
|
/** Split the next complete SSE frame (up to a blank line) off the buffer. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { v as RpcFunctionDefinitionAny } from "../../types-
|
|
1
|
+
import { v as RpcFunctionDefinitionAny } from "../../types-D2vGd7-2.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../../session-r6PDixP6.mjs";
|
|
3
|
-
import { n as WsOriginRegistry } from "../../ws-server-
|
|
3
|
+
import { n as WsOriginRegistry } from "../../ws-server-BB8jhxeT.mjs";
|
|
4
4
|
import { BirpcGroup } from "birpc";
|
|
5
5
|
//#region src/rpc/transports/sse-server.d.ts
|
|
6
6
|
export interface SseRpcTransportOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEVFRAME_SSE_SESSION_HEADER } from "../../constants.mjs";
|
|
2
|
-
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../../wire-codec-
|
|
2
|
+
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
|
|
3
3
|
import { t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
|
|
4
4
|
import { t as createRpcSessionMeta } from "../../session-DPfj6zQG.mjs";
|
|
5
5
|
//#region src/rpc/transports/sse-server.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as WsOriginRegistry } from "../../ws-server-
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
1
|
+
import { n as WsOriginRegistry } from "../../ws-server-BB8jhxeT.mjs";
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-BlL-Ip8n.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-bun.d.ts
|
|
4
4
|
export interface AttachBunWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-
|
|
1
|
+
import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-CNpP6Ium.mjs";
|
|
2
2
|
export { WsRpcChannelOptions, createWsRpcChannel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEVFRAME_AUTH_TOKEN_QUERY_PARAM } from "../../constants.mjs";
|
|
2
|
-
import { t as createRpcWireCodec } from "../../wire-codec-
|
|
2
|
+
import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-client.ts
|
|
4
4
|
function NOOP() {}
|
|
5
5
|
const EMPTY_DEFS = /* @__PURE__ */ new Map();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as WsOriginRegistry } from "../../ws-server-
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
1
|
+
import { n as WsOriginRegistry } from "../../ws-server-BB8jhxeT.mjs";
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-BlL-Ip8n.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-deno.d.ts
|
|
4
4
|
export interface AttachDenoWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../../session-r6PDixP6.mjs";
|
|
2
2
|
import { n as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-DGDH8BI9.mjs";
|
|
3
|
-
import { a as attachWsRpcTransport, i as WsRpcTransportOptions, n as WsOriginRegistry, o as createWsOriginRegistry, r as WsRpcTransport, s as createWsRpcPeerHooks, t as CreateWsOriginRegistryOptions } from "../../ws-server-
|
|
3
|
+
import { a as attachWsRpcTransport, i as WsRpcTransportOptions, n as WsOriginRegistry, o as createWsOriginRegistry, r as WsRpcTransport, s as createWsRpcPeerHooks, t as CreateWsOriginRegistryOptions } from "../../ws-server-BB8jhxeT.mjs";
|
|
4
4
|
export { CreateWsOriginRegistryOptions, type DevframeNodeRpcSessionMeta, type DevframeRpcConnection, type DevframeRpcConnectionRequest, type DevframeRpcTransportKind, type DevframeWsPeer, WsOriginRegistry, WsRpcTransport, WsRpcTransportOptions, attachWsRpcTransport, createWsOriginRegistry, createWsRpcPeerHooks, isAllowedOrigin, isLoopbackHostname };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../constants.mjs";
|
|
2
|
-
import { t as createRpcWireCodec } from "../../wire-codec-
|
|
2
|
+
import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
|
|
3
3
|
import { n as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
|
|
4
4
|
import { t as createRpcSessionMeta } from "../../session-DPfj6zQG.mjs";
|
|
5
5
|
import { n as randomToken, r as timingSafeEqual } from "../../crypto-token-TVbGGFuj.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Tt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-
|
|
1
|
+
import { Tt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-BLHBDQcZ.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
3
|
-
import "./ws-server-
|
|
4
|
-
import "./index-
|
|
3
|
+
import "./ws-server-BB8jhxeT.mjs";
|
|
4
|
+
import "./index-r6NstVmM.mjs";
|
|
5
5
|
import { BirpcGroup, EventOptions } from "birpc";
|
|
6
6
|
//#region src/node/rpc-core.d.ts
|
|
7
7
|
interface CreateContextRpcServerOptions {
|
|
@@ -4,8 +4,8 @@ const diagnostics = defineDiagnostics({
|
|
|
4
4
|
docsBase: "https://devfra.me/errors",
|
|
5
5
|
codes: {
|
|
6
6
|
DF0019: {
|
|
7
|
-
why: (p) => `RPC function "${p.name}" has \`agent\` set but \`jsonSerializable\` is
|
|
8
|
-
fix: "
|
|
7
|
+
why: (p) => `RPC function "${p.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,
|
|
8
|
+
fix: "Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."
|
|
9
9
|
},
|
|
10
10
|
DF0020: {
|
|
11
11
|
why: (p) => `RPC function "${p.name}" declares \`jsonSerializable: true\` but the value at "${p.path}" is a ${p.type}.`,
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as RpcFunctionAgentOptions } from "../types-
|
|
2
|
-
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "../context-
|
|
1
|
+
import { g as RpcFunctionAgentOptions } from "../types-D2vGd7-2.mjs";
|
|
2
|
+
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "../context-BLHBDQcZ.mjs";
|
|
3
3
|
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
4
4
|
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "../remote-assets-eBvSKZMS.mjs";
|
|
5
5
|
import { i as DevframeDefineDiagnosticsOptions } from "../nostics-0sKe5HIj.mjs";
|