devframe 1.1.0 → 1.2.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/dist/{_shared-D1ebaX_J.d.mts → _shared-DjkowZKP.d.mts} +2 -2
- package/dist/adapters/build.d.mts +1 -1
- package/dist/adapters/cac.d.mts +1 -1
- package/dist/adapters/cac.mjs +1 -1
- package/dist/adapters/dev.d.mts +3 -3
- package/dist/adapters/dev.mjs +1 -1
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +2 -2
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +2 -2
- package/dist/{agentic-DLqHMOyN.d.mts → agentic-B8y_r5tQ.d.mts} +1 -1
- package/dist/client/index.d.mts +9 -1
- package/dist/client/index.mjs +6 -1
- package/dist/{context--tVkJw3W.d.mts → context-BvaYawdU.d.mts} +2 -0
- package/dist/{context-D3qBv0IX.d.mts → context-CNX8VDIJ.d.mts} +1 -1
- package/dist/{dev-IkdtaiLZ.mjs → dev-CInztvNK.mjs} +1 -1
- package/dist/in-page-channel/index.d.mts +1 -1
- package/dist/{index-D-2IdY1I.d.mts → index-LtvVaxSc.d.mts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/{instance-shell-kUeR59CR.mjs → instance-shell-C3VrwJRS.mjs} +14 -4
- package/dist/{instance-shell-Cpz5d2CI.d.mts → instance-shell-CM2nruNe.d.mts} +2 -2
- package/dist/internal/index.d.mts +5 -5
- package/dist/internal/index.mjs +1 -1
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/index.d.mts +1 -1
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/rpc/transports/ws-bun.d.mts +1 -1
- package/dist/rpc/transports/ws-deno.d.mts +1 -1
- package/dist/{rpc-core-B6n9MQsc.d.mts → rpc-core-CZ72-_vD.d.mts} +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/launch-editor.mjs +59 -14
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as DevframeDefinition, Q as McpSetting, V as DevframeDeploymentKind, Wt as DevframeAgentHost, X as McpAuthorization, t as ConnectionMeta } from "./context
|
|
2
|
-
import { t as AgenticMcpModule } from "./agentic-
|
|
1
|
+
import { B as DevframeDefinition, Q as McpSetting, V as DevframeDeploymentKind, Wt as DevframeAgentHost, X as McpAuthorization, t as ConnectionMeta } from "./context-BvaYawdU.mjs";
|
|
2
|
+
import { t as AgenticMcpModule } from "./agentic-B8y_r5tQ.mjs";
|
|
3
3
|
//#region src/adapters/_shared.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Resolve the mount base path for a devframe's SPA. Hosted adapters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DevframeDefinition, K as DevframeSnapshotRpcEntry, o as DevframeNodeContext } from "../context
|
|
1
|
+
import { B as DevframeDefinition, K as DevframeSnapshotRpcEntry, o as DevframeNodeContext } from "../context-BvaYawdU.mjs";
|
|
2
2
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
3
3
|
//#region src/adapters/build.d.ts
|
|
4
4
|
export interface CreateBuildOptions {
|
package/dist/adapters/cac.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DevframeDefinition, Mt as InferCliFlags, Nt as defineCliFlags, Pt as parseCliFlags, Q as McpSetting, jt as CliFlagsSchema } from "../context
|
|
1
|
+
import { B as DevframeDefinition, Mt as InferCliFlags, Nt as defineCliFlags, Pt as parseCliFlags, Q as McpSetting, jt as CliFlagsSchema } from "../context-BvaYawdU.mjs";
|
|
2
2
|
import { CAC } from "cac";
|
|
3
3
|
import { H3 } from "h3";
|
|
4
4
|
//#region src/adapters/cac.d.ts
|
package/dist/adapters/cac.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-D0PvLZsn.mjs";
|
|
2
2
|
import { i as resolveDevServerPort, s as importAgenticMcp } from "../_shared-B2PZsp-J.mjs";
|
|
3
3
|
import { createBuild } from "./build.mjs";
|
|
4
|
-
import { t as createDevServer } from "../dev-
|
|
4
|
+
import { t as createDevServer } from "../dev-CInztvNK.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import cac$1 from "cac";
|
|
7
7
|
//#region src/adapters/flags.ts
|
package/dist/adapters/dev.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { At as DevframeAuthHandler, B as DevframeDefinition, J as DevframeSseOptions, Q as McpSetting, Y as DevframeWsOptions, s as DevframeNodeRpcSession } from "../context
|
|
1
|
+
import { At as DevframeAuthHandler, B as DevframeDefinition, J as DevframeSseOptions, Q as McpSetting, Y as DevframeWsOptions, s as DevframeNodeRpcSession } from "../context-BvaYawdU.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
3
3
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
4
4
|
import { n as WsOriginRegistry } from "../ws-server-y2R76aSW.mjs";
|
|
5
|
-
import { c as StartedServer } from "../instance-shell-
|
|
6
|
-
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-
|
|
5
|
+
import { c as StartedServer } from "../instance-shell-CM2nruNe.mjs";
|
|
6
|
+
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-DjkowZKP.mjs";
|
|
7
7
|
import { H3 } from "h3";
|
|
8
8
|
//#region src/adapters/dev.d.ts
|
|
9
9
|
export interface CreateDevServerOptions {
|
package/dist/adapters/dev.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-B2PZsp-J.mjs";
|
|
2
|
-
import { t as createDevServer } from "../dev-
|
|
2
|
+
import { t as createDevServer } from "../dev-CInztvNK.mjs";
|
|
3
3
|
export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DevframeDefinition, o as DevframeNodeContext } from "../context
|
|
1
|
+
import { B as DevframeDefinition, o as DevframeNodeContext } from "../context-BvaYawdU.mjs";
|
|
2
2
|
//#region src/adapters/embedded.d.ts
|
|
3
3
|
export interface CreateEmbeddedOptions {
|
|
4
4
|
/** Target context the devframe is registered into. Required. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { At as DevframeAuthHandler, B as DevframeDefinition, Dt as DevframeStorageScope, J as DevframeSseOptions, Q as McpSetting, Y as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context
|
|
1
|
+
import { At as DevframeAuthHandler, B as DevframeDefinition, Dt as DevframeStorageScope, J as DevframeSseOptions, Q as McpSetting, Y as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context-BvaYawdU.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
3
3
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
4
4
|
import { n as WsOriginRegistry } from "../ws-server-y2R76aSW.mjs";
|
|
5
|
-
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-
|
|
5
|
+
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-CM2nruNe.mjs";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
8
8
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getInstanceInternals, r as initDevframe } from "../dev-
|
|
1
|
+
import { n as getInstanceInternals, r as initDevframe } from "../dev-CInztvNK.mjs";
|
|
2
2
|
export { getInstanceInternals, initDevframe };
|
package/dist/adapters/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as CreateMcpServerOptions, I as McpConnectionInfo, L as McpFetchHandler, P as CreateMcpFetchHandlerOptions, R as McpServerHandle } from "../context
|
|
2
|
-
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-
|
|
1
|
+
import { F as CreateMcpServerOptions, I as McpConnectionInfo, L as McpFetchHandler, P as CreateMcpFetchHandlerOptions, R as McpServerHandle } from "../context-BvaYawdU.mjs";
|
|
2
|
+
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-B8y_r5tQ.mjs";
|
|
3
3
|
import { createMcpFetchHandler, createMcpServer, mountMcpHttp } from "@devframes/agentic/mcp";
|
|
4
4
|
export { type CreateMcpFetchHandlerOptions, type CreateMcpServerOptions, type McpConnectionInfo, type McpFetchHandler, type McpServerHandle, type MountMcpHttpOptions, type MountedMcpHttp, createMcpFetchHandler, createMcpServer, mountMcpHttp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as DevframeDefinition, F as CreateMcpServerOptions, L as McpFetchHandler, P as CreateMcpFetchHandlerOptions, R as McpServerHandle, o as DevframeNodeContext } from "./context
|
|
1
|
+
import { B as DevframeDefinition, F as CreateMcpServerOptions, L as McpFetchHandler, P as CreateMcpFetchHandlerOptions, R as McpServerHandle, o as DevframeNodeContext } from "./context-BvaYawdU.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
//#region src/node/agentic.d.ts
|
|
4
4
|
/**
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as BirpcReturn, r as BirpcOptions } from "../index-Bia1vKjL.mjs";
|
|
2
2
|
import { f as RpcCacheManager, p as RpcCacheOptions } from "../index-DuEm0sDH.mjs";
|
|
3
3
|
import { h as RpcFunctionDefinition, w as RpcFunctionsCollector } from "../types-BmDbfHCx.mjs";
|
|
4
|
-
import { Ct as DevframeRpcClientFunctions, Kt as EventEmitter, at as DevframeServiceScopeOf, b as StreamSink, bt as ScopedSharedStates, d as RpcSharedStateHost, k as SharedState, lt as DevframeServicesState, pt as DevframeSettings, rt as DevframeServiceMeta, t as ConnectionMeta, u as RpcSharedStateGetOptions, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, y as StreamReader, yt as ScopedServerFunctions } from "../context
|
|
4
|
+
import { Ct as DevframeRpcClientFunctions, Kt as EventEmitter, at as DevframeServiceScopeOf, b as StreamSink, bt as ScopedSharedStates, d as RpcSharedStateHost, k as SharedState, lt as DevframeServicesState, pt as DevframeSettings, rt as DevframeServiceMeta, t as ConnectionMeta, u as RpcSharedStateGetOptions, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, y as StreamReader, yt as ScopedServerFunctions } from "../context-BvaYawdU.mjs";
|
|
5
5
|
import { t as SseRpcChannelOptions } from "../sse-client-DNdscfu_.mjs";
|
|
6
6
|
import { t as WsRpcChannelOptions } from "../ws-client-6Mrz6eC4.mjs";
|
|
7
7
|
//#region src/client/connection.d.ts
|
|
@@ -502,6 +502,14 @@ export interface DevframeRpcClientMode {
|
|
|
502
502
|
export declare function resolveClientTransport(requested: 'auto' | 'websocket' | 'sse', meta: ConnectionMeta): 'websocket' | 'sse' | 'static';
|
|
503
503
|
export declare function getDevframeRpcClient(options?: DevframeRpcClientOptions): Promise<DevframeRpcClient>;
|
|
504
504
|
//#endregion
|
|
505
|
+
//#region src/client/connection-storage.d.ts
|
|
506
|
+
/**
|
|
507
|
+
* Publish the connection on this window for same-origin frames to inherit.
|
|
508
|
+
* Call again after mutating `connection.connectionMeta` so the legacy meta
|
|
509
|
+
* copy below follows.
|
|
510
|
+
*/
|
|
511
|
+
export declare function storeConnection(connection: DevframeConnection): void;
|
|
512
|
+
//#endregion
|
|
505
513
|
//#region src/client/otp.d.ts
|
|
506
514
|
/**
|
|
507
515
|
* Read a one-time authentication code (OTP) from the current page URL's
|
package/dist/client/index.mjs
CHANGED
|
@@ -410,6 +410,11 @@ function readStoredAuthToken(userAuthToken) {
|
|
|
410
410
|
} catch {}
|
|
411
411
|
return readFromWindows(CONNECTION_AUTH_TOKEN_KEY);
|
|
412
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Publish the connection on this window for same-origin frames to inherit.
|
|
415
|
+
* Call again after mutating `connection.connectionMeta` so the legacy meta
|
|
416
|
+
* copy below follows.
|
|
417
|
+
*/
|
|
413
418
|
function storeConnection(connection) {
|
|
414
419
|
globalThis[DEVFRAME_CONNECTION_KEY] = connection;
|
|
415
420
|
globalThis[CONNECTION_META_KEY] = {
|
|
@@ -2002,4 +2007,4 @@ async function getDevframeRpcClient(options = {}) {
|
|
|
2002
2007
|
//#region src/client/index.ts
|
|
2003
2008
|
const connectDevframe = getDevframeRpcClient;
|
|
2004
2009
|
//#endregion
|
|
2005
|
-
export { DevframeConnectionError, authenticateWithUrlOtp, connectDevframe, consumeOtpFromUrl, createClientSettings, createRpcStreamingClientHost, createScopedClientContext, getDevframeConnection, getDevframeRpcClient, isCallableStatus, readOtpFromUrl, registerDevframeViewerOrigin, registerWebMcpTools, resolveClientTransport, resolveSseUrl, resolveWebMcpModelContext, resolveWsUrl, setupDevframeConnection };
|
|
2010
|
+
export { DevframeConnectionError, authenticateWithUrlOtp, connectDevframe, consumeOtpFromUrl, createClientSettings, createRpcStreamingClientHost, createScopedClientContext, getDevframeConnection, getDevframeRpcClient, isCallableStatus, readOtpFromUrl, registerDevframeViewerOrigin, registerWebMcpTools, resolveClientTransport, resolveSseUrl, resolveWebMcpModelContext, resolveWsUrl, setupDevframeConnection, storeConnection };
|
|
@@ -1376,6 +1376,8 @@ interface DevframeCliOptions {
|
|
|
1376
1376
|
interface DevframeDockDefaults {
|
|
1377
1377
|
/** Dock entry title. Defaults to the definition's `name`. */
|
|
1378
1378
|
title?: string;
|
|
1379
|
+
/** Translations of `title` by BCP 47 tag; see `@devframes/hub`'s `resolveTitle()`. */
|
|
1380
|
+
titleLocales?: Record<string, string>;
|
|
1379
1381
|
/** Dock entry icon. Defaults to the definition's `icon`. */
|
|
1380
1382
|
icon?: string | {
|
|
1381
1383
|
light: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as SharedState, o as DevframeNodeContext } from "./context
|
|
1
|
+
import { k as SharedState, o as DevframeNodeContext } from "./context-BvaYawdU.mjs";
|
|
2
2
|
//#region src/node/hub-internals/context.d.ts
|
|
3
3
|
interface InternalAnonymousAuthStorage {
|
|
4
4
|
trusted: Record<string, {
|
|
@@ -4,7 +4,7 @@ import { t as createHostContext } from "./context-BqpgC5tq.mjs";
|
|
|
4
4
|
import { t as resolveStaticAssetsSource } from "./remote-assets-B9MeWmW6.mjs";
|
|
5
5
|
import { a as resolveMcpConfig, c as joinURL, d as withoutLeadingSlash, i as resolveDevServerPort, l as withBase, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "./_shared-B2PZsp-J.mjs";
|
|
6
6
|
import { t as createH3DevframeHost } from "./host-h3-BROI6SQ4.mjs";
|
|
7
|
-
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, t as createInstanceShell } from "./instance-shell-
|
|
7
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, t as createInstanceShell } from "./instance-shell-C3VrwJRS.mjs";
|
|
8
8
|
import { open } from "./utils/open.mjs";
|
|
9
9
|
import { mountStaticHandler } from "./utils/serve-static.mjs";
|
|
10
10
|
import { resolve } from "pathe";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as InferArgsType, E as Thenable, O as InferReturnType, T as RpcReturnSchema, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import { Kt as EventEmitter, k as SharedState } from "../context
|
|
2
|
+
import { Kt as EventEmitter, k as SharedState } from "../context-BvaYawdU.mjs";
|
|
3
3
|
//#region src/in-page-channel/types.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The shared contract of one in-page channel, declared once (usually in a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as SharedState, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "./context
|
|
2
|
-
import { n as InternalAnonymousAuthStorage } from "./context-
|
|
1
|
+
import { k as SharedState, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "./context-BvaYawdU.mjs";
|
|
2
|
+
import { n as InternalAnonymousAuthStorage } from "./context-CNX8VDIJ.mjs";
|
|
3
3
|
//#region src/node/auth/revoke.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Flip `isTrusted` to false on any live WS clients connected with `token`
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as RpcFunctionType, T as RpcReturnSchema, h as RpcFunctionDefinition, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "./types-BmDbfHCx.mjs";
|
|
2
|
-
import { $ as DevframeServiceDefinition, B as DevframeDefinition, Bt as AgentTool, Ct as DevframeRpcClientFunctions, Dt as DevframeStorageScope, Et as DevframeHost, F as CreateMcpServerOptions, Ft as AgentHandle, G as DevframeSetupInfo, Gt as DevframeAgentHostEvents, H as DevframeDockDefaults, Ht as AgentToolProvider, I as McpConnectionInfo, It as AgentManifest, J as DevframeSseOptions, Jt as EventsMap, K as DevframeSnapshotRpcEntry, Kt as EventEmitter, L as McpFetchHandler, Lt as AgentResource, Ot as DevframeDiagnosticsHost, P as CreateMcpFetchHandlerOptions, Q as McpSetting, R as McpServerHandle, Rt as AgentResourceContent, St as DevframeViewHost, Tt as DevframeRpcSharedStates, U as DevframeDuplicationStrategy, Ut as AgentToolProviderHandle, V as DevframeDeploymentKind, Vt as AgentToolInput, W as DevframeRpcOptions, Wt as DevframeAgentHost, X as McpAuthorization, Y as DevframeWsOptions, Z as McpRouteOptions, _t as ScopedClientFunctions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceScopeOf, bt as ScopedSharedStates, c as RpcBroadcastOptions, ct as DevframeServicesScopeRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeRpc, et as DevframeServiceDescriptor, f as RpcStreamingChannel, ft as DevframeScopedStreamingHost, gt as ScopedBroadcastOptions, ht as DevframeSettingsStore, i as DevframeCapabilities, it as DevframeServiceOf, kt as DevframeDiagnosticsLogger, l as RpcFunctionsHost, lt as DevframeServicesState, m as RpcStreamingHost, mt as DevframeSettingsRegistry, n as ConnectionMetaSse, nt as DevframeServiceInput, o as DevframeNodeContext, ot as DevframeServicesHost, p as RpcStreamingChannelOptions, pt as DevframeSettings, q as DevframeSnapshotRpcInputs, qt as EventUnsubscribe, r as ConnectionMetaWebsocket, rt as DevframeServiceMeta, s as DevframeNodeRpcSession, st as DevframeServicesRegistry, t as ConnectionMeta, tt as DevframeServiceId, u as RpcSharedStateGetOptions, ut as DevframeScopedNodeContext, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, yt as ScopedServerFunctions, z as DevframeCliOptions, zt as AgentResourceInput } from "./context
|
|
2
|
+
import { $ as DevframeServiceDefinition, B as DevframeDefinition, Bt as AgentTool, Ct as DevframeRpcClientFunctions, Dt as DevframeStorageScope, Et as DevframeHost, F as CreateMcpServerOptions, Ft as AgentHandle, G as DevframeSetupInfo, Gt as DevframeAgentHostEvents, H as DevframeDockDefaults, Ht as AgentToolProvider, I as McpConnectionInfo, It as AgentManifest, J as DevframeSseOptions, Jt as EventsMap, K as DevframeSnapshotRpcEntry, Kt as EventEmitter, L as McpFetchHandler, Lt as AgentResource, Ot as DevframeDiagnosticsHost, P as CreateMcpFetchHandlerOptions, Q as McpSetting, R as McpServerHandle, Rt as AgentResourceContent, St as DevframeViewHost, Tt as DevframeRpcSharedStates, U as DevframeDuplicationStrategy, Ut as AgentToolProviderHandle, V as DevframeDeploymentKind, Vt as AgentToolInput, W as DevframeRpcOptions, Wt as DevframeAgentHost, X as McpAuthorization, Y as DevframeWsOptions, Z as McpRouteOptions, _t as ScopedClientFunctions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceScopeOf, bt as ScopedSharedStates, c as RpcBroadcastOptions, ct as DevframeServicesScopeRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeRpc, et as DevframeServiceDescriptor, f as RpcStreamingChannel, ft as DevframeScopedStreamingHost, gt as ScopedBroadcastOptions, ht as DevframeSettingsStore, i as DevframeCapabilities, it as DevframeServiceOf, kt as DevframeDiagnosticsLogger, l as RpcFunctionsHost, lt as DevframeServicesState, m as RpcStreamingHost, mt as DevframeSettingsRegistry, n as ConnectionMetaSse, nt as DevframeServiceInput, o as DevframeNodeContext, ot as DevframeServicesHost, p as RpcStreamingChannelOptions, pt as DevframeSettings, q as DevframeSnapshotRpcInputs, qt as EventUnsubscribe, r as ConnectionMetaWebsocket, rt as DevframeServiceMeta, s as DevframeNodeRpcSession, st as DevframeServicesRegistry, t as ConnectionMeta, tt as DevframeServiceId, u as RpcSharedStateGetOptions, ut as DevframeScopedNodeContext, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, yt as ScopedServerFunctions, z as DevframeCliOptions, zt as AgentResourceInput } from "./context-BvaYawdU.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-DWvukRwa.mjs";
|
|
@@ -7,6 +7,7 @@ import { n as createInteractiveAuth } from "./interactive-auth-BCa_iamv.mjs";
|
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { isIP } from "node:net";
|
|
10
|
+
import { Server } from "node:tls";
|
|
10
11
|
import { H3, defineHandler, toNodeHandler } from "h3";
|
|
11
12
|
//#region src/node/runtime.ts
|
|
12
13
|
/**
|
|
@@ -106,9 +107,17 @@ async function bindHttpAndWs(options) {
|
|
|
106
107
|
const address = httpServer.address();
|
|
107
108
|
const resolvedPort = typeof address === "object" && address ? address.port : port;
|
|
108
109
|
const origin = normalizeHttpServerUrl(bindHost, resolvedPort);
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
|
|
110
|
+
let wsUrl;
|
|
111
|
+
const publishWsEndpoint = () => {
|
|
112
|
+
const bound = httpServer.address();
|
|
113
|
+
if (!bound || typeof bound === "string") return;
|
|
114
|
+
wsUrl = `${httpServer instanceof Server ? "wss" : "ws"}://${formatHostForUrl(bindHost)}:${bound.port}${options.path ?? ""}`;
|
|
115
|
+
getInternalContext(context).setWsEndpoint({ url: wsUrl });
|
|
116
|
+
};
|
|
117
|
+
if (websocket) {
|
|
118
|
+
if (httpServer.listening) publishWsEndpoint();
|
|
119
|
+
else httpServer.once("listening", publishWsEndpoint);
|
|
120
|
+
}
|
|
112
121
|
return {
|
|
113
122
|
origin,
|
|
114
123
|
port: resolvedPort,
|
|
@@ -117,9 +126,10 @@ async function bindHttpAndWs(options) {
|
|
|
117
126
|
rpcGroup: core.rpcGroup,
|
|
118
127
|
connectionMeta: () => websocketConnectionMeta(rpcHost, options.path),
|
|
119
128
|
async close() {
|
|
129
|
+
httpServer.off("listening", publishWsEndpoint);
|
|
120
130
|
await closeWs();
|
|
121
131
|
if (ownsHttpServer) await new Promise((r) => httpServer.close(() => r()));
|
|
122
|
-
if (
|
|
132
|
+
if (wsUrl && getInternalContext(context).wsEndpoint?.url === wsUrl) getInternalContext(context).setWsEndpoint(void 0);
|
|
123
133
|
}
|
|
124
134
|
};
|
|
125
135
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BirpcGroup } from "./index-Bia1vKjL.mjs";
|
|
2
|
-
import { At as DevframeAuthHandler, Ct as DevframeRpcClientFunctions, J as DevframeSseOptions, Y as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, wt as DevframeRpcServerFunctions } from "./context
|
|
2
|
+
import { At as DevframeAuthHandler, Ct as DevframeRpcClientFunctions, J as DevframeSseOptions, Y as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, wt as DevframeRpcServerFunctions } from "./context-BvaYawdU.mjs";
|
|
3
3
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
4
4
|
import { n as WsOriginRegistry } from "./ws-server-y2R76aSW.mjs";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-LtvVaxSc.mjs";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { NodeAdapter } from "crossws/adapters/node";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as StandardSchemaV1 } from "../index-CeEtxDmK.mjs";
|
|
2
2
|
import { g as RpcFunctionDefinitionAny } from "../types-BmDbfHCx.mjs";
|
|
3
|
-
import { Bt as AgentTool, Et as DevframeHost, Ft as AgentHandle, Gt as DevframeAgentHostEvents, Ht as AgentToolProvider, It as AgentManifest, Kt as EventEmitter, Lt as AgentResource, Rt as AgentResourceContent, Ut as AgentToolProviderHandle, Vt as AgentToolInput, Wt as DevframeAgentHost$1, o as DevframeNodeContext, zt as AgentResourceInput } from "../context
|
|
3
|
+
import { Bt as AgentTool, Et as DevframeHost, Ft as AgentHandle, Gt as DevframeAgentHostEvents, Ht as AgentToolProvider, It as AgentManifest, Kt as EventEmitter, Lt as AgentResource, Rt as AgentResourceContent, Ut as AgentToolProviderHandle, Vt as AgentToolInput, Wt as DevframeAgentHost$1, o as DevframeNodeContext, zt as AgentResourceInput } from "../context-BvaYawdU.mjs";
|
|
4
4
|
import { a as RemoteAssetsStore } from "../remote-assets-eBvSKZMS.mjs";
|
|
5
|
-
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, g as registerDevframeInstance, h as probeDevframeOrigin, 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-
|
|
6
|
-
import { i as importAgenticMcp, n as MountMcpHttpOptions, r as MountedMcpHttp, t as AgenticMcpModule } from "../agentic-
|
|
7
|
-
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-
|
|
8
|
-
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-
|
|
5
|
+
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, g as registerDevframeInstance, h as probeDevframeOrigin, 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-CM2nruNe.mjs";
|
|
6
|
+
import { i as importAgenticMcp, n as MountMcpHttpOptions, r as MountedMcpHttp, t as AgenticMcpModule } from "../agentic-B8y_r5tQ.mjs";
|
|
7
|
+
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-DjkowZKP.mjs";
|
|
8
|
+
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-CZ72-_vD.mjs";
|
|
9
9
|
//#region src/agent/stringify.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* JSON-coercing serializer for MCP text payloads.
|
package/dist/internal/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { a as resolveMcpConfig, n as normalizeBasePath, r as resolveBasePath, s
|
|
|
6
6
|
import { t as importRuntimeModule } from "../import-runtime-module-BzlEQ9PI.mjs";
|
|
7
7
|
import { t as createH3DevframeHost } from "../host-h3-BROI6SQ4.mjs";
|
|
8
8
|
import { i as registerDevframeInstance, n as listLiveDevframeInstances, r as probeDevframeOrigin } from "../instance-registry-C-nC0By7.mjs";
|
|
9
|
-
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-
|
|
9
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-C3VrwJRS.mjs";
|
|
10
10
|
import { t as createContextRpcServer } from "../rpc-core-BXyMjbKG.mjs";
|
|
11
11
|
//#region src/agent/stringify.ts
|
|
12
12
|
/**
|
package/dist/node/auth.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { At 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 { At as DevframeAuthHandler } from "../context-BvaYawdU.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-LtvVaxSc.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-CNX8VDIJ.mjs";
|
|
2
|
+
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-DjkowZKP.mjs";
|
|
3
3
|
export { type DevframeInternalContext, type InternalAnonymousAuthStorage, type RemoteTokenRecord, getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as RpcFunctionDefinitionAny } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import { Et as DevframeHost, k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext } from "../context
|
|
2
|
+
import { Et as DevframeHost, k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext } from "../context-BvaYawdU.mjs";
|
|
3
3
|
//#region src/node/context.d.ts
|
|
4
4
|
export interface CreateHostContextOptions {
|
|
5
5
|
cwd: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context
|
|
2
|
-
import "../index-
|
|
1
|
+
import { At as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-BvaYawdU.mjs";
|
|
2
|
+
import "../index-LtvVaxSc.mjs";
|
|
3
3
|
import { ColorFn } from "../utils/colors.mjs";
|
|
4
4
|
//#region src/recipes/interactive-auth.d.ts
|
|
5
5
|
export interface CreateInteractiveAuthOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-CZ72-_vD.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-bun.d.ts
|
|
4
4
|
export interface AttachBunWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-CZ72-_vD.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-deno.d.ts
|
|
4
4
|
export interface AttachDenoWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BirpcGroup, o as EventOptions } from "./index-Bia1vKjL.mjs";
|
|
2
|
-
import { At as DevframeAuthHandler, Ct as DevframeRpcClientFunctions, o as DevframeNodeContext, s as DevframeNodeRpcSession, wt as DevframeRpcServerFunctions } from "./context
|
|
2
|
+
import { At as DevframeAuthHandler, Ct as DevframeRpcClientFunctions, o as DevframeNodeContext, s as DevframeNodeRpcSession, wt as DevframeRpcServerFunctions } from "./context-BvaYawdU.mjs";
|
|
3
3
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
4
4
|
import "./ws-server-y2R76aSW.mjs";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-LtvVaxSc.mjs";
|
|
6
6
|
//#region src/node/rpc-core.d.ts
|
|
7
7
|
interface CreateContextRpcServerOptions {
|
|
8
8
|
context: DevframeNodeContext;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as RpcFunctionAgentOptions } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import { $ as DevframeServiceDefinition, B as DevframeDefinition, Bt as AgentTool, Ct as DevframeRpcClientFunctions, Dt as DevframeStorageScope, Et as DevframeHost, F as CreateMcpServerOptions, Ft as AgentHandle, G as DevframeSetupInfo, Gt as DevframeAgentHostEvents, H as DevframeDockDefaults, Ht as AgentToolProvider, I as McpConnectionInfo, It as AgentManifest, J as DevframeSseOptions, Jt as EventsMap, K as DevframeSnapshotRpcEntry, Kt as EventEmitter, L as McpFetchHandler, Lt as AgentResource, Ot as DevframeDiagnosticsHost, P as CreateMcpFetchHandlerOptions, Q as McpSetting, R as McpServerHandle, Rt as AgentResourceContent, St as DevframeViewHost, Tt as DevframeRpcSharedStates, U as DevframeDuplicationStrategy, Ut as AgentToolProviderHandle, V as DevframeDeploymentKind, Vt as AgentToolInput, W as DevframeRpcOptions, Wt as DevframeAgentHost, X as McpAuthorization, Y as DevframeWsOptions, Z as McpRouteOptions, _t as ScopedClientFunctions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceScopeOf, bt as ScopedSharedStates, c as RpcBroadcastOptions, ct as DevframeServicesScopeRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeRpc, et as DevframeServiceDescriptor, f as RpcStreamingChannel, ft as DevframeScopedStreamingHost, gt as ScopedBroadcastOptions, ht as DevframeSettingsStore, i as DevframeCapabilities, it as DevframeServiceOf, kt as DevframeDiagnosticsLogger, l as RpcFunctionsHost, lt as DevframeServicesState, m as RpcStreamingHost, mt as DevframeSettingsRegistry, n as ConnectionMetaSse, nt as DevframeServiceInput, o as DevframeNodeContext, ot as DevframeServicesHost, p as RpcStreamingChannelOptions, pt as DevframeSettings, q as DevframeSnapshotRpcInputs, qt as EventUnsubscribe, r as ConnectionMetaWebsocket, rt as DevframeServiceMeta, s as DevframeNodeRpcSession, st as DevframeServicesRegistry, t as ConnectionMeta, tt as DevframeServiceId, u as RpcSharedStateGetOptions, ut as DevframeScopedNodeContext, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, yt as ScopedServerFunctions, z as DevframeCliOptions, zt as AgentResourceInput } from "../context
|
|
2
|
+
import { $ as DevframeServiceDefinition, B as DevframeDefinition, Bt as AgentTool, Ct as DevframeRpcClientFunctions, Dt as DevframeStorageScope, Et as DevframeHost, F as CreateMcpServerOptions, Ft as AgentHandle, G as DevframeSetupInfo, Gt as DevframeAgentHostEvents, H as DevframeDockDefaults, Ht as AgentToolProvider, I as McpConnectionInfo, It as AgentManifest, J as DevframeSseOptions, Jt as EventsMap, K as DevframeSnapshotRpcEntry, Kt as EventEmitter, L as McpFetchHandler, Lt as AgentResource, Ot as DevframeDiagnosticsHost, P as CreateMcpFetchHandlerOptions, Q as McpSetting, R as McpServerHandle, Rt as AgentResourceContent, St as DevframeViewHost, Tt as DevframeRpcSharedStates, U as DevframeDuplicationStrategy, Ut as AgentToolProviderHandle, V as DevframeDeploymentKind, Vt as AgentToolInput, W as DevframeRpcOptions, Wt as DevframeAgentHost, X as McpAuthorization, Y as DevframeWsOptions, Z as McpRouteOptions, _t as ScopedClientFunctions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceScopeOf, bt as ScopedSharedStates, c as RpcBroadcastOptions, ct as DevframeServicesScopeRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeRpc, et as DevframeServiceDescriptor, f as RpcStreamingChannel, ft as DevframeScopedStreamingHost, gt as ScopedBroadcastOptions, ht as DevframeSettingsStore, i as DevframeCapabilities, it as DevframeServiceOf, kt as DevframeDiagnosticsLogger, l as RpcFunctionsHost, lt as DevframeServicesState, m as RpcStreamingHost, mt as DevframeSettingsRegistry, n as ConnectionMetaSse, nt as DevframeServiceInput, o as DevframeNodeContext, ot as DevframeServicesHost, p as RpcStreamingChannelOptions, pt as DevframeSettings, q as DevframeSnapshotRpcInputs, qt as EventUnsubscribe, r as ConnectionMetaWebsocket, rt as DevframeServiceMeta, s as DevframeNodeRpcSession, st as DevframeServicesRegistry, t as ConnectionMeta, tt as DevframeServiceId, u as RpcSharedStateGetOptions, ut as DevframeScopedNodeContext, vt as ScopedRpcFn, wt as DevframeRpcServerFunctions, xt as SettingsForNamespace, yt as ScopedServerFunctions, z as DevframeCliOptions, zt as AgentResourceInput } from "../context-BvaYawdU.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-DWvukRwa.mjs";
|
package/dist/utils/events.d.mts
CHANGED
|
@@ -69,7 +69,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
69
69
|
module.exports.createColors = createColors;
|
|
70
70
|
}));
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.
|
|
72
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.11.0/node_modules/shell-quote/quote.js
|
|
73
73
|
var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
74
74
|
/** @import { ControlOperator } from './parse' */
|
|
75
75
|
/** @type {ControlOperator['op'][]} */
|
|
@@ -92,15 +92,18 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
92
92
|
">"
|
|
93
93
|
];
|
|
94
94
|
var LINE_TERMINATORS = /[\n\r\u2028\u2029]/;
|
|
95
|
-
var GLOB_SHELL_SPECIAL = /[\s#!"$&'()
|
|
95
|
+
var GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|~]/g;
|
|
96
96
|
/** @type {typeof import('./quote')} */
|
|
97
97
|
module.exports = function quote(xs) {
|
|
98
|
+
var sawComment = false;
|
|
98
99
|
return xs.map(function(s) {
|
|
100
|
+
if (sawComment && typeof s === "string" && LINE_TERMINATORS.test(s)) throw new TypeError("a token after a `comment` must not contain line terminators");
|
|
99
101
|
if (s === "") return "''";
|
|
100
102
|
if (s && typeof s === "object") {
|
|
101
103
|
if ("op" in s && s.op === "glob") {
|
|
102
104
|
if (typeof s.pattern !== "string") throw new TypeError("glob token requires a string `pattern`");
|
|
103
105
|
if (LINE_TERMINATORS.test(s.pattern)) throw new TypeError("glob `pattern` must not contain line terminators");
|
|
106
|
+
if (s.pattern === "") return "''";
|
|
104
107
|
return s.pattern.replace(GLOB_SHELL_SPECIAL, "\\$&");
|
|
105
108
|
}
|
|
106
109
|
if ("op" in s && typeof s.op === "string") {
|
|
@@ -109,18 +112,20 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
109
112
|
}
|
|
110
113
|
if ("comment" in s && typeof s.comment === "string") {
|
|
111
114
|
if (LINE_TERMINATORS.test(s.comment)) throw new TypeError("`comment` must not contain line terminators");
|
|
115
|
+
sawComment = true;
|
|
112
116
|
return "#" + s.comment;
|
|
113
117
|
}
|
|
114
118
|
throw new TypeError("unrecognized object token shape");
|
|
115
119
|
}
|
|
116
|
-
if (/
|
|
117
|
-
if (/["
|
|
120
|
+
if (/'/.test(s) && /!/.test(s)) return "'" + s.replace(/'/g, "'\"'\"'") + "'";
|
|
121
|
+
if (/["\s\\]/.test(s) && !/'/.test(s)) return "'" + s + "'";
|
|
122
|
+
if (/["'\s]/.test(s)) return "\"" + s.replace(/(["\\$`])/g, "\\$1") + "\"";
|
|
118
123
|
return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g, "$1\\$2");
|
|
119
124
|
}).join(" ");
|
|
120
125
|
};
|
|
121
126
|
}));
|
|
122
127
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.
|
|
128
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.11.0/node_modules/shell-quote/parse.js
|
|
124
129
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
125
130
|
/**
|
|
126
131
|
* @import {
|
|
@@ -144,7 +149,11 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
144
149
|
var controlRE = new RegExp("^" + CONTROL + "$");
|
|
145
150
|
var META = "|&;()<> \\t";
|
|
146
151
|
var SINGLE_QUOTE = "'([^']*?)'";
|
|
147
|
-
var
|
|
152
|
+
var ANSI_C_BODY = "(?:\\\\[\\s\\S]|[^\\\\'])*?";
|
|
153
|
+
var ANSI_C_QUOTE = "\\$'" + ANSI_C_BODY + "'";
|
|
154
|
+
var ansiCAt = new RegExp("\\$'" + ANSI_C_BODY + "(?:(')|\\\\?$)", "g");
|
|
155
|
+
var ANSI_C_LETTERS = "abeEfnrtv";
|
|
156
|
+
var ANSI_C_CHARS = "\x07\b\x1B\x1B\f\n\r \v";
|
|
148
157
|
var hash = /^#$/;
|
|
149
158
|
var SQ = "'";
|
|
150
159
|
var DQ = "\"";
|
|
@@ -180,6 +189,38 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
180
189
|
if (typeof r === "object") return pre + TOKEN + JSON.stringify(r) + TOKEN;
|
|
181
190
|
return pre + r;
|
|
182
191
|
}
|
|
192
|
+
var ansiCEscape = /\\([0-7]{1,3}|x[\dA-Fa-f]{1,2}|u[\dA-Fa-f]{1,4}|U[\dA-Fa-f]{1,8}|c(?:\\\\|[\s\S])|[abeEfnrtv\\'"?])/g;
|
|
193
|
+
/**
|
|
194
|
+
* @param {string} m
|
|
195
|
+
* @param {string} escape
|
|
196
|
+
*/
|
|
197
|
+
function expandAnsiCEscape(m, escape) {
|
|
198
|
+
var kind = escape.charAt(0);
|
|
199
|
+
if (kind === "c") {
|
|
200
|
+
var ctrl = escape.charAt(1);
|
|
201
|
+
return ctrl === "?" ? "" : String.fromCharCode(ctrl.charCodeAt(0) & 31);
|
|
202
|
+
}
|
|
203
|
+
if (kind === "x" || kind === "u" || kind === "U") {
|
|
204
|
+
var cp = parseInt(escape.slice(1), 16);
|
|
205
|
+
if (cp > 1114111) return m;
|
|
206
|
+
return String.fromCharCode.apply(null, cp > 65535 ? [55232 + (cp >> 10), 56320 + (cp & 1023)] : [cp]);
|
|
207
|
+
}
|
|
208
|
+
if (kind >= "0" && kind <= "7") return String.fromCharCode(parseInt(escape, 8) & 255);
|
|
209
|
+
var letter = ANSI_C_LETTERS.indexOf(escape);
|
|
210
|
+
return letter < 0 ? escape : ANSI_C_CHARS.charAt(letter);
|
|
211
|
+
}
|
|
212
|
+
/** @param {string} body */
|
|
213
|
+
function expandAnsiC(body) {
|
|
214
|
+
return body.replace(ansiCEscape, expandAnsiCEscape).split("\0")[0];
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @param {string} s
|
|
218
|
+
* @param {number} i
|
|
219
|
+
*/
|
|
220
|
+
function closesAnsiC(s, i) {
|
|
221
|
+
ansiCAt.lastIndex = i;
|
|
222
|
+
return !!ansiCAt.exec(s)[1];
|
|
223
|
+
}
|
|
183
224
|
/**
|
|
184
225
|
* @param {string} string
|
|
185
226
|
* @param {Env} [env]
|
|
@@ -190,8 +231,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
231
|
if (!opts) opts = {};
|
|
191
232
|
var BS = opts.escape || "\\";
|
|
192
233
|
var ifs = opts.splitUnquoted === true ? " \n" : typeof opts.splitUnquoted === "string" ? opts.splitUnquoted : "";
|
|
193
|
-
var BAREWORD = "(\\" + BS + "['\"" + META + "]|[^\\s'\"" + META + "])+";
|
|
194
|
-
var
|
|
234
|
+
var BAREWORD = "(\\" + BS + "['\"$\\" + BS + META + "]|\\$\\$|\\$(?!" + ANSI_C_QUOTE.slice(2) + ")|[^\\s'\"$" + META + "])+";
|
|
235
|
+
var DOUBLE_QUOTE = "\"(?:\\" + BS + "[\\s\\S]|[^\"\\" + BS + "])*\"";
|
|
236
|
+
var matches = matchAll(string, new RegExp(["(" + CONTROL + ")", "(" + ANSI_C_QUOTE + "|" + BAREWORD + "|" + DOUBLE_QUOTE + "|" + SINGLE_QUOTE + ")+"].join("|"), "g"));
|
|
195
237
|
if (matches.length === 0) return [];
|
|
196
238
|
if (!env) env = {};
|
|
197
239
|
var commented = false;
|
|
@@ -232,10 +274,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
232
274
|
varend -= 1;
|
|
233
275
|
varname = s.slice(i, varend);
|
|
234
276
|
i = varend;
|
|
235
|
-
} else if (/[
|
|
236
|
-
|
|
237
|
-
i += 1;
|
|
238
|
-
} else {
|
|
277
|
+
} else if (/[*@#?$!-]/.test(char)) varname = char;
|
|
278
|
+
else {
|
|
239
279
|
var slicedFromI = s.slice(i);
|
|
240
280
|
varend = slicedFromI.match(/[^\w\d_]/);
|
|
241
281
|
if (!varend) {
|
|
@@ -289,7 +329,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
289
329
|
if (out.length) return [out, commentObj];
|
|
290
330
|
return [commentObj];
|
|
291
331
|
} else if (c === BS) esc = true;
|
|
292
|
-
else if (c === DS) {
|
|
332
|
+
else if (c === DS && s.charAt(i + 1) === SQ && closesAnsiC(s, i)) {
|
|
333
|
+
flushRun();
|
|
334
|
+
sawQuote = true;
|
|
335
|
+
out += expandAnsiC(s.slice(i + 2, ansiCAt.lastIndex - 1));
|
|
336
|
+
i = ansiCAt.lastIndex - 1;
|
|
337
|
+
} else if (c === DS) {
|
|
293
338
|
var value = parseEnvVar();
|
|
294
339
|
if (!ifs) out += value;
|
|
295
340
|
else for (var vi = 0; vi < value.length; vi += 1) {
|
|
@@ -346,7 +391,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
346
391
|
};
|
|
347
392
|
}));
|
|
348
393
|
//#endregion
|
|
349
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.
|
|
394
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.11.0/node_modules/shell-quote/index.js
|
|
350
395
|
var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
351
396
|
exports.quote = require_quote();
|
|
352
397
|
exports.parse = require_parse();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SharedStateEvents, D as ImmutableObject, E as ImmutableMap, M as SharedStatePatch, N as createSharedState, O as ImmutableSet, T as ImmutableArray, j as SharedStateOptions, k as SharedState, w as Immutable } from "../context
|
|
1
|
+
import { A as SharedStateEvents, D as ImmutableObject, E as ImmutableMap, M as SharedStatePatch, N as createSharedState, O as ImmutableSet, T as ImmutableArray, j as SharedStateOptions, k as SharedState, w as Immutable } from "../context-BvaYawdU.mjs";
|
|
2
2
|
export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as createStreamSink, S as createStreamReader, _ as CreateStreamSinkOptions, b as StreamSink, g as CreateStreamReaderOptions, h as BufferedChunk, v as StreamErrorPayload, x as StreamSinkEvents, y as StreamReader } from "../context
|
|
1
|
+
import { C as createStreamSink, S as createStreamReader, _ as CreateStreamSinkOptions, b as StreamSink, g as CreateStreamReaderOptions, h as BufferedChunk, v as StreamErrorPayload, x as StreamSinkEvents, y as StreamReader } from "../context-BvaYawdU.mjs";
|
|
2
2
|
export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devframe",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "Framework for building one portable devtool integration that runs in any viewer.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"skills"
|
|
78
78
|
],
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@devframes/agentic": "1.
|
|
80
|
+
"@devframes/agentic": "1.2.0",
|
|
81
81
|
"cac": "^7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"pathe": "^2.0.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@devframes/agentic": "1.
|
|
98
|
+
"@devframes/agentic": "1.2.0",
|
|
99
99
|
"@standard-schema/spec": "^1.1.0",
|
|
100
100
|
"birpc": "^4.2.0",
|
|
101
101
|
"cac": "^7.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"ua-parser-modern": "^0.1.1",
|
|
116
116
|
"valibot": "^1.5.0",
|
|
117
117
|
"whenexpr": "^0.1.2",
|
|
118
|
-
"ws": "^8.
|
|
118
|
+
"ws": "^8.22.0"
|
|
119
119
|
},
|
|
120
120
|
"scripts": {
|
|
121
121
|
"build": "tsdown",
|