devframe 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_shared-C61zPwIz.mjs → _shared-BGb9aDxr.mjs} +6 -9
- package/dist/{_shared-Cm4iD0L3.d.mts → _shared-CnKu5myY.d.mts} +2 -4
- package/dist/adapters/build.d.mts +3 -5
- package/dist/adapters/build.mjs +7 -8
- package/dist/adapters/cac.d.mts +1 -3
- package/dist/adapters/cac.mjs +5 -7
- package/dist/adapters/dev.d.mts +6 -8
- package/dist/adapters/dev.mjs +2 -2
- package/dist/adapters/embedded.d.mts +2 -4
- package/dist/adapters/embedded.mjs +1 -2
- package/dist/adapters/initiate.d.mts +9 -9
- package/dist/adapters/initiate.mjs +1 -2
- package/dist/adapters/mcp.d.mts +2 -2
- package/dist/adapters/mcp.mjs +1 -2
- package/dist/{agentic-C6SCkdtj.d.mts → agentic-CCstJ5yv.d.mts} +1 -3
- package/dist/{browser-agent-Pu-FLk6I.mjs → browser-agent-DmAotroz.mjs} +1 -2
- package/dist/{browser-agent-rpc-KH4HHvHf.mjs → browser-agent-rpc-CS80Sphv.mjs} +3 -5
- package/dist/cli/main.d.mts +1 -3
- package/dist/cli/main.mjs +3 -4
- package/dist/client/index.d.mts +6 -30
- package/dist/client/index.mjs +47 -72
- package/dist/{client-agent-iBkMYxqn.mjs → client-agent-qNMgDUev.mjs} +7 -12
- package/dist/constants.d.mts +1 -5
- package/dist/constants.mjs +2 -3
- package/dist/{context-D_jSSdME.mjs → context-BTxC4QrJ.mjs} +4 -5
- package/dist/{context-CAJ5V017.mjs → context-C5FcbWQi.mjs} +25 -41
- package/dist/{context-BGJi0ITA.d.mts → context-CsdPs3po.d.mts} +1 -3
- package/dist/{context-BNxFOPbX.d.mts → context-WxTq6kqb.d.mts} +7 -41
- package/dist/{crypto-token-TVbGGFuj.mjs → crypto-token-CUhPE_ei.mjs} +1 -2
- package/dist/{define-BLWPsH6y.mjs → define-C8h-fyD3.mjs} +1 -2
- package/dist/{dev-BKBjIpX3.mjs → dev-DaHYh5YK.mjs} +9 -11
- package/dist/{diagnostics-E_PvUPsA.mjs → diagnostics-DC1-WcvN.mjs} +2 -3
- package/dist/{dist-CO98PBnQ.mjs → dist-BWGpvt-z.mjs} +1 -2
- package/dist/{dist-CZXfGEkd.mjs → dist-DJydMELP.mjs} +3 -10
- package/dist/{events-0wDwalmL.mjs → events-qWCKwD8-.mjs} +1 -2
- package/dist/{handler-DmaAfpGq.mjs → handler-DkLlj3-B.mjs} +3 -5
- package/dist/{hash-DdPnc4k3.mjs → hash-DHqpWeMO.mjs} +4 -8
- package/dist/{host-h3-BROI6SQ4.mjs → host-h3-D1uj5EM8.mjs} +1 -2
- package/dist/{import-runtime-module-BzlEQ9PI.mjs → import-runtime-module-DsdqJ1gK.mjs} +2 -3
- package/dist/in-page-channel/index.d.mts +2 -12
- package/dist/in-page-channel/index.mjs +10 -16
- package/dist/{index-CeEtxDmK.d.mts → index-BIRF0E5l.d.mts} +0 -2
- package/dist/{index-Bia1vKjL.d.mts → index-BKu9BxcT.d.mts} +0 -2
- package/dist/{index-DuEm0sDH.d.mts → index-D0qrBkhO.d.mts} +1 -15
- package/dist/{index-CxJatyA1.d.mts → index-HMJPlexc.d.mts} +2 -6
- package/dist/index.d.mts +6 -8
- package/dist/index.mjs +3 -4
- package/dist/{instance-registry-C_4PpB6N.mjs → instance-registry-CmZfF5u3.mjs} +4 -10
- package/dist/{instance-shell-GihbmXoF.d.mts → instance-shell-Bujp0BhE.d.mts} +5 -9
- package/dist/{instance-shell-m4sY2oTG.mjs → instance-shell-Dk2SejFT.mjs} +38 -17
- package/dist/{interactive-auth-DdDxs3WF.mjs → interactive-auth-BURwIAvE.mjs} +6 -8
- package/dist/internal/index.d.mts +9 -29
- package/dist/internal/index.mjs +13 -15
- package/dist/{mcp-content-QImBQO8e.d.mts → mcp-content-CQQBt2An.d.mts} +1 -3
- package/dist/{mcp-content-DN3O212x.mjs → mcp-content-CqU8yaF7.mjs} +1 -2
- package/dist/{mrmime-40h5OOIp.mjs → mrmime-y_XyiVcd.mjs} +1 -2
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/auth.mjs +2 -2
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/hub-internals.mjs +2 -2
- package/dist/node/index.d.mts +2 -6
- package/dist/node/index.mjs +2 -2
- package/dist/{nostics-DWvukRwa.d.mts → nostics-Dgwh7ytT.d.mts} +0 -2
- package/dist/{nostics-D0PvLZsn.mjs → nostics-InlX4tmd.mjs} +2 -4
- package/dist/{origin-DZit9g29.mjs → origin-Ck7mLbKU.mjs} +1 -2
- package/dist/{origin-CY6BBHOy.d.mts → origin-D5i7K_Zb.d.mts} +0 -2
- package/dist/recipes/interactive-auth.d.mts +3 -5
- package/dist/recipes/interactive-auth.mjs +1 -2
- package/dist/{remote-assets-eBvSKZMS.d.mts → remote-assets-5AQMHZnV.d.mts} +0 -2
- package/dist/{remote-assets-B-n83kUY.mjs → remote-assets-DhonNeo_.mjs} +5 -8
- package/dist/{revoke-CeQUo6KI.mjs → revoke-D6KA3vwr.mjs} +2 -3
- package/dist/{rolldown-runtime-B4iAMlE-.mjs → rolldown-runtime-DYf_mQCB.mjs} +2 -3
- package/dist/rpc/client.d.mts +2 -4
- package/dist/rpc/client.mjs +2 -3
- package/dist/rpc/dump.d.mts +3 -11
- package/dist/rpc/dump.mjs +1 -2
- package/dist/rpc/index.d.mts +3 -3
- package/dist/rpc/index.mjs +6 -8
- package/dist/rpc/server.d.mts +2 -4
- package/dist/rpc/server.mjs +2 -3
- package/dist/rpc/transports/sse-client.d.mts +1 -1
- package/dist/rpc/transports/sse-client.mjs +2 -3
- package/dist/rpc/transports/sse-server.d.mts +5 -7
- package/dist/rpc/transports/sse-server.mjs +4 -5
- package/dist/rpc/transports/ws-bun.d.mts +3 -5
- package/dist/rpc/transports/ws-bun.mjs +2 -3
- package/dist/rpc/transports/ws-client.d.mts +1 -1
- package/dist/rpc/transports/ws-client.mjs +2 -3
- package/dist/rpc/transports/ws-deno.d.mts +3 -5
- package/dist/rpc/transports/ws-deno.mjs +2 -3
- package/dist/rpc/transports/ws-server.d.mts +3 -3
- package/dist/rpc/transports/ws-server.mjs +5 -6
- package/dist/{rpc-core-BLc5hm9X.mjs → rpc-core-CDUizUQB.mjs} +4 -5
- package/dist/{rpc-core-CGTCla-R.d.mts → rpc-core-CFwyV10r.d.mts} +5 -7
- package/dist/{serialization-BhuOoL80.mjs → serialization-iiTQ7n21.mjs} +3 -5
- package/dist/{services-install-D5YUwFXW.mjs → services-install-DCuDzMJ-.mjs} +1 -2
- package/dist/{session-DPfj6zQG.mjs → session-BjvoLH3r.mjs} +1 -2
- package/dist/{session-r6PDixP6.d.mts → session-Y9R6tqg4.d.mts} +0 -2
- package/dist/{shared-state-Cc-Jrhma.mjs → shared-state-COV7NCbd.mjs} +4 -6
- package/dist/{sse-client-DNdscfu_.d.mts → sse-client-B2PrSz-H.d.mts} +2 -4
- package/dist/{state-W4wI6X5X.mjs → state-B_yjfeqo.mjs} +3 -5
- package/dist/{storage-CWI9PZ-5.mjs → storage-DpJ52UB_.mjs} +3 -5
- package/dist/{structured-clone-CbAV5rFI.mjs → structured-clone-B1N_XQvA.mjs} +2 -4
- package/dist/{structured-clone-CgtQ61SA.mjs → structured-clone-D1dOCZvc.mjs} +2 -4
- package/dist/{tool-input-CES3Pc4y.mjs → tool-input-CcCgJ8jq.mjs} +6 -12
- package/dist/types/index.d.mts +5 -5
- package/dist/{types-BmDbfHCx.d.mts → types-844OBepb.d.mts} +1 -5
- package/dist/utils/agent-tool-name.d.mts +1 -3
- package/dist/utils/agent-tool-name.mjs +1 -2
- package/dist/utils/colors.d.mts +1 -3
- package/dist/utils/colors.mjs +1 -2
- package/dist/utils/crypto-token.d.mts +1 -3
- package/dist/utils/crypto-token.mjs +1 -2
- package/dist/utils/debounce.d.mts +0 -2
- package/dist/utils/debounce.mjs +1 -2
- package/dist/utils/events.d.mts +2 -4
- package/dist/utils/events.mjs +1 -2
- package/dist/utils/get-port.d.mts +0 -2
- package/dist/utils/get-port.mjs +1 -2
- package/dist/utils/hash.d.mts +1 -3
- package/dist/utils/hash.mjs +1 -2
- package/dist/utils/launch-editor.d.mts +1 -3
- package/dist/utils/launch-editor.mjs +25 -37
- package/dist/utils/nanoid.d.mts +1 -3
- package/dist/utils/nanoid.mjs +1 -2
- package/dist/utils/nostics.d.mts +1 -1
- package/dist/utils/nostics.mjs +1 -2
- package/dist/utils/open.d.mts +1 -3
- package/dist/utils/open.mjs +1 -2
- package/dist/utils/origin.d.mts +1 -1
- package/dist/utils/origin.mjs +1 -2
- package/dist/utils/remote-assets.d.mts +2 -4
- package/dist/utils/remote-assets.mjs +1 -2
- package/dist/utils/serve-static.d.mts +2 -4
- package/dist/utils/serve-static.mjs +3 -4
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/shared-state.mjs +1 -2
- package/dist/utils/simple-schema.d.mts +1 -3
- package/dist/utils/simple-schema.mjs +1 -2
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/dist/utils/streaming-channel.mjs +1 -2
- package/dist/utils/structured-clone.d.mts +1 -3
- package/dist/utils/structured-clone.mjs +1 -2
- package/dist/utils/url.d.mts +1 -3
- package/dist/utils/url.mjs +1 -2
- package/dist/utils/when.d.mts +1 -3
- package/dist/utils/when.mjs +2 -4
- package/dist/{validation-CMfDAti3.mjs → validation-Cjy1P58H.mjs} +7 -13
- package/dist/{wire-codec-B1W3zH3L.mjs → wire-codec-BdngvzfH.mjs} +3 -4
- package/dist/{write-DK7rBUN3.mjs → write-3miSvPaD.mjs} +10 -16
- package/dist/{ws-client-6Mrz6eC4.d.mts → ws-client-lqOeANcn.d.mts} +2 -4
- package/dist/{ws-server-y2R76aSW.d.mts → ws-server-CYHkeyA-.d.mts} +3 -5
- package/package.json +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as diagnostics } from "./diagnostics-
|
|
1
|
+
import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
|
|
2
2
|
import { dirname } from "pathe";
|
|
3
3
|
import { createSharedState } from "devframe/utils/shared-state";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import process from "node:process";
|
|
6
|
-
|
|
6
|
+
// ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
|
|
7
7
|
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
8
8
|
/**
|
|
9
9
|
Debounce functions
|
|
@@ -89,8 +89,7 @@ function debounce(fn, wait = 25, options = {}) {
|
|
|
89
89
|
async function _applyPromised(fn, _this, args) {
|
|
90
90
|
return await fn.apply(_this, args);
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
//#region src/node/storage.ts
|
|
92
|
+
// src/node/storage.ts
|
|
94
93
|
function safeJsonParse(text) {
|
|
95
94
|
return JSON.parse(text, (key, value) => {
|
|
96
95
|
if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) return void 0;
|
|
@@ -133,5 +132,4 @@ function createStorage(options) {
|
|
|
133
132
|
}, debounceTime));
|
|
134
133
|
return state;
|
|
135
134
|
}
|
|
136
|
-
//#endregion
|
|
137
135
|
export { createStorage as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/structured-clone-es@2.0.1/node_modules/structured-clone-es/dist/index.mjs
|
|
2
2
|
const env = typeof self === "object" ? self : globalThis;
|
|
3
3
|
const SAFE_ERROR_NAMES = /* @__PURE__ */ new Set([
|
|
4
4
|
"Error",
|
|
@@ -218,8 +218,7 @@ function parse(str) {
|
|
|
218
218
|
function stringify(any) {
|
|
219
219
|
return $stringify(serialize(any, options));
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
//#region src/utils/structured-clone.ts
|
|
221
|
+
// src/utils/structured-clone.ts
|
|
223
222
|
/**
|
|
224
223
|
* Serialize a structured-cloneable value to a single string. Equivalent
|
|
225
224
|
* to `JSON.stringify(structuredCloneSerialize(value))`.
|
|
@@ -233,5 +232,4 @@ function structuredCloneStringify(value) {
|
|
|
233
232
|
function structuredCloneParse(value) {
|
|
234
233
|
return parse(value);
|
|
235
234
|
}
|
|
236
|
-
//#endregion
|
|
237
235
|
export { structuredCloneStringify as n, structuredCloneParse as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/structured-clone-es@2.0.1/node_modules/structured-clone-es/dist/index.mjs
|
|
2
2
|
const env = typeof self === "object" ? self : globalThis;
|
|
3
3
|
const SAFE_ERROR_NAMES = /* @__PURE__ */ new Set([
|
|
4
4
|
"Error",
|
|
@@ -218,8 +218,7 @@ function parse(str) {
|
|
|
218
218
|
function stringify(any) {
|
|
219
219
|
return $stringify(serialize(any, options));
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
//#region src/utils/structured-clone.ts
|
|
221
|
+
// src/utils/structured-clone.ts
|
|
223
222
|
/**
|
|
224
223
|
* Serialize a structured-cloneable value (`Map`, `Set`, `Date`, `BigInt`,
|
|
225
224
|
* cycles, class instances, …) into a JSON-safe records array.
|
|
@@ -246,5 +245,4 @@ function structuredCloneStringify(value) {
|
|
|
246
245
|
function structuredCloneParse(value) {
|
|
247
246
|
return parse(value);
|
|
248
247
|
}
|
|
249
|
-
//#endregion
|
|
250
248
|
export { structuredCloneStringify as i, structuredCloneParse as n, structuredCloneSerialize as r, structuredCloneDeserialize as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { colors } from "./utils/colors.mjs";
|
|
2
2
|
import { defineDiagnostics } from "nostics";
|
|
3
3
|
import { ansiFormatter } from "nostics/formatters/ansi";
|
|
4
|
-
|
|
4
|
+
// src/events.ts
|
|
5
5
|
/**
|
|
6
6
|
* Centralized registry of the core devframe event names: the node-side host
|
|
7
7
|
* bus events, the client RPC connection events, and the server→client
|
|
@@ -79,8 +79,7 @@ const DEVFRAME_EVENTS = {
|
|
|
79
79
|
inPageChannel: "devframe:in-page-channel"
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
|
|
83
|
-
//#region src/utils/nostics.ts
|
|
82
|
+
// src/utils/nostics.ts
|
|
84
83
|
const formatAnsi = ansiFormatter(colors);
|
|
85
84
|
/**
|
|
86
85
|
* The reporter every {@link defineDiagnostics} call below wires in ahead of
|
|
@@ -105,8 +104,7 @@ function defineDiagnostics$1(options) {
|
|
|
105
104
|
reporters: [devframeReporter, ...options.reporters ?? []]
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
|
-
|
|
109
|
-
//#region ../../node_modules/.pnpm/birpc@4.2.0/node_modules/birpc/dist/index.mjs
|
|
107
|
+
// ../../node_modules/.pnpm/birpc@4.2.0/node_modules/birpc/dist/index.mjs
|
|
110
108
|
function createPromiseWithResolvers() {
|
|
111
109
|
let resolve;
|
|
112
110
|
let reject;
|
|
@@ -302,8 +300,7 @@ function createBirpc($functions, options) {
|
|
|
302
300
|
_promiseInit = on(onMessage);
|
|
303
301
|
return rpc;
|
|
304
302
|
}
|
|
305
|
-
|
|
306
|
-
//#region src/agent/safety.ts
|
|
303
|
+
// src/agent/safety.ts
|
|
307
304
|
/**
|
|
308
305
|
* An agent tool's safety classification: the explicit `agent.safety`, else
|
|
309
306
|
* inferred from the function `type` (`static`/`query` are read-only, the rest
|
|
@@ -313,8 +310,7 @@ function resolveAgentSafety(type, agent) {
|
|
|
313
310
|
if (agent.safety) return agent.safety;
|
|
314
311
|
return type === "static" || type === "query" || type == null ? "read" : "action";
|
|
315
312
|
}
|
|
316
|
-
|
|
317
|
-
//#region src/agent/to-json-schema.ts
|
|
313
|
+
// src/agent/to-json-schema.ts
|
|
318
314
|
const FALLBACK_OBJECT_SCHEMA = Object.freeze({
|
|
319
315
|
type: "object",
|
|
320
316
|
additionalProperties: true
|
|
@@ -365,8 +361,7 @@ function argsToJsonSchema(args) {
|
|
|
365
361
|
additionalProperties: false
|
|
366
362
|
};
|
|
367
363
|
}
|
|
368
|
-
|
|
369
|
-
//#region src/tool-input.ts
|
|
364
|
+
// src/tool-input.ts
|
|
370
365
|
/**
|
|
371
366
|
* Convert an object-shaped tool input into positional arguments.
|
|
372
367
|
*
|
|
@@ -390,5 +385,4 @@ function collectPositionalArgs(input, argumentCount) {
|
|
|
390
385
|
function toolInputToRpcArgs(input, argumentCount) {
|
|
391
386
|
return collectPositionalArgs(input, argumentCount) ?? [input];
|
|
392
387
|
}
|
|
393
|
-
//#endregion
|
|
394
388
|
export { defineDiagnostics$1 as a, createBirpc as i, argsToJsonSchema as n, DEVFRAME_EVENTS as o, resolveAgentSafety as r, toolInputToRpcArgs as t };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as RpcFunctionAgentOptions } from "../types-
|
|
2
|
-
import { $ as DevframeServiceOf, $t as AgentToolProviderHandle, At as McpFetchHandler, B as DevframeSetupInfo, Ct as DevframeStorageScope, Dt as CreateMcpServerOptions, Et as CreateMcpFetchHandlerOptions, F as DevframeDefinition, Ft as McpResourceTemplate, G as McpAuthorization, Gt as AgentHandle, H as DevframeSnapshotRpcInputs, I as DevframeDeploymentKind, It as McpResourceTemplateContent, J as DevframeServiceDefinition, Jt as AgentResourceContent, K as McpRouteOptions, Kt as AgentManifest, L as DevframeDockDefaults, Lt as McpResourceTemplateEntry, Mt as McpPromptArgument, Nt as McpPromptMessage, Ot as McpConnectionInfo, P as DevframeCliOptions, Pt as McpPromptResult, Q as DevframeServiceMeta, Qt as AgentToolProvider, R as DevframeDuplicationStrategy, Rt as McpResourcesChangedHook, St as DevframeHost, Tt as DevframeDiagnosticsLogger, U as DevframeSseOptions, V as DevframeSnapshotRpcEntry, W as DevframeWsOptions, X as DevframeServiceId, Xt as AgentTool, Y as DevframeServiceDescriptor, Yt as AgentResourceInput, Z as DevframeServiceInput, Zt as AgentToolInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, en as DevframeAgentHost, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, in as EventsMap, it as DevframeServicesState, jt as McpPrompt, kt as McpContentBlock, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nn as EventEmitter, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, qt as AgentResource, r as ConnectionMetaWebsocket, rn as EventUnsubscribe, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tn as DevframeAgentHostEvents, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as McpServerHandle } from "../context-
|
|
3
|
-
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../session-
|
|
4
|
-
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "../remote-assets-
|
|
5
|
-
import { i as DevframeDefineDiagnosticsOptions } from "../nostics-
|
|
1
|
+
import { m as RpcFunctionAgentOptions } from "../types-844OBepb.mjs";
|
|
2
|
+
import { $ as DevframeServiceOf, $t as AgentToolProviderHandle, At as McpFetchHandler, B as DevframeSetupInfo, Ct as DevframeStorageScope, Dt as CreateMcpServerOptions, Et as CreateMcpFetchHandlerOptions, F as DevframeDefinition, Ft as McpResourceTemplate, G as McpAuthorization, Gt as AgentHandle, H as DevframeSnapshotRpcInputs, I as DevframeDeploymentKind, It as McpResourceTemplateContent, J as DevframeServiceDefinition, Jt as AgentResourceContent, K as McpRouteOptions, Kt as AgentManifest, L as DevframeDockDefaults, Lt as McpResourceTemplateEntry, Mt as McpPromptArgument, Nt as McpPromptMessage, Ot as McpConnectionInfo, P as DevframeCliOptions, Pt as McpPromptResult, Q as DevframeServiceMeta, Qt as AgentToolProvider, R as DevframeDuplicationStrategy, Rt as McpResourcesChangedHook, St as DevframeHost, Tt as DevframeDiagnosticsLogger, U as DevframeSseOptions, V as DevframeSnapshotRpcEntry, W as DevframeWsOptions, X as DevframeServiceId, Xt as AgentTool, Y as DevframeServiceDescriptor, Yt as AgentResourceInput, Z as DevframeServiceInput, Zt as AgentToolInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, en as DevframeAgentHost, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, in as EventsMap, it as DevframeServicesState, jt as McpPrompt, kt as McpContentBlock, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nn as EventEmitter, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, qt as AgentResource, r as ConnectionMetaWebsocket, rn as EventUnsubscribe, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tn as DevframeAgentHostEvents, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as McpServerHandle } from "../context-WxTq6kqb.mjs";
|
|
3
|
+
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../session-Y9R6tqg4.mjs";
|
|
4
|
+
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "../remote-assets-5AQMHZnV.mjs";
|
|
5
|
+
import { i as DevframeDefineDiagnosticsOptions } from "../nostics-Dgwh7ytT.mjs";
|
|
6
6
|
export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, AgentToolProvider, AgentToolProviderHandle, ConnectionMeta, ConnectionMetaSse, ConnectionMetaWebsocket, CreateMcpFetchHandlerOptions, CreateMcpServerOptions, DevframeAgentHost, DevframeAgentHostEvents, DevframeCapabilities, DevframeCliOptions, DevframeConnectionConfigsRegistry, type DevframeDefineDiagnosticsOptions, DevframeDefinition, DevframeDeploymentKind, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockDefaults, DevframeDuplicationStrategy, DevframeHost, DevframeNodeContext, DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, DevframeRpcClientFunctions, type DevframeRpcConnection, type DevframeRpcConnectionRequest, DevframeRpcOptions, DevframeRpcServerFunctions, DevframeRpcSharedStates, type DevframeRpcTransportKind, DevframeScopedNodeContext, DevframeScopedNodeRpc, DevframeScopedStreamingHost, DevframeServiceDefinition, DevframeServiceDescriptor, DevframeServiceId, DevframeServiceInput, DevframeServiceMeta, DevframeServiceOf, DevframeServiceScopeOf, DevframeServicesHost, DevframeServicesRegistry, DevframeServicesScopeRegistry, DevframeServicesState, DevframeSettings, DevframeSettingsRegistry, DevframeSettingsStore, DevframeSetupInfo, DevframeSnapshotRpcEntry, DevframeSnapshotRpcInputs, DevframeSseOptions, DevframeStorageScope, DevframeViewHost, DevframeWsOptions, type DevframeWsPeer, EventEmitter, EventUnsubscribe, EventsMap, McpAuthorization, McpConnectionInfo, McpContentBlock, McpFetchHandler, McpPrompt, McpPromptArgument, McpPromptMessage, McpPromptResult, McpResourceTemplate, McpResourceTemplateContent, McpResourceTemplateEntry, McpResourcesChangedHook, McpRouteOptions, McpServerHandle, McpSetting, RemoteAssets, RemoteAssetsErrorMessage, RemoteAssetsProvider, RemoteAssetsProviderCustom, RemoteAssetsStore, RpcBroadcastOptions, type RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, ScopedBroadcastOptions, ScopedClientFunctions, ScopedRpcFn, ScopedServerFunctions, ScopedSharedStates, SettingsForNamespace, StaticAssetsSource };
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { t as StandardSchemaV1 } from "./index-
|
|
2
|
-
//#region src/rpc/utils.d.ts
|
|
1
|
+
import { t as StandardSchemaV1 } from "./index-BIRF0E5l.mjs";
|
|
3
2
|
/** Infers a TypeScript argument tuple from a Standard Schema array */
|
|
4
3
|
type InferArgsType<S extends RpcArgsSchema | undefined> = S extends readonly [] ? [] : S extends readonly [infer H, ...infer T] ? H extends StandardSchemaV1 ? T extends readonly StandardSchemaV1[] ? [StandardSchemaV1.InferInput<H>, ...InferArgsType<T>] : never : never : never;
|
|
5
4
|
/** Infers a TypeScript return type from a Standard Schema */
|
|
6
5
|
type InferReturnType<S extends RpcReturnSchema | undefined> = S extends StandardSchemaV1 ? StandardSchemaV1.InferInput<S> : void;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/rpc/types.d.ts
|
|
9
6
|
type Thenable<T> = T | Promise<T>;
|
|
10
7
|
type EntriesToObject<T extends readonly [string, any][]> = { [K in T[number] as K[0]]: K[1]; };
|
|
11
8
|
/**
|
|
@@ -257,5 +254,4 @@ type RpcDefinitionsToFunctionsWithNamespace<NS extends string, T extends readonl
|
|
|
257
254
|
type RpcDefinitionsFilter<T extends readonly RpcFunctionDefinitionAny[], Type extends RpcFunctionType> = { [K in keyof T]: T[K] extends {
|
|
258
255
|
type: Type;
|
|
259
256
|
} ? T[K] : never; };
|
|
260
|
-
//#endregion
|
|
261
257
|
export { RpcFunctionType as C, InferArgsType as D, Thenable as E, InferReturnType as O, RpcFunctionSetupResult as S, RpcReturnSchema as T, RpcFunctionDefinitionAnyWithContext as _, RpcDefinitionsToFunctionsWithNamespace as a, RpcFunctionDefinitionWithSchemas as b, RpcDumpCollectionOptions as c, RpcDumpRecord as d, RpcDumpRecordError as f, RpcFunctionDefinitionAny as g, RpcFunctionDefinition as h, RpcDefinitionsToFunctions as i, RpcDumpDefinition as l, RpcFunctionAgentOptions as m, RpcArgsSchema as n, RpcDump as o, RpcDumpStore as p, RpcDefinitionsFilter as r, RpcDumpClientOptions as s, EntriesToObject as t, RpcDumpGetter as u, RpcFunctionDefinitionBase as v, RpcFunctionsCollector as w, RpcFunctionDefinitionWithoutSchemas as x, RpcFunctionDefinitionToFunction as y };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/agent-tool-name.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Derive the wire-safe agent tool name for an internal tool id.
|
|
4
3
|
*
|
|
@@ -19,5 +18,4 @@
|
|
|
19
18
|
* that display a tool's id (e.g. the inspect plugin's agent view) can
|
|
20
19
|
* import it too and show the name a client actually calls.
|
|
21
20
|
*/
|
|
22
|
-
export declare function toAgentToolName(id: string): string;
|
|
23
|
-
//#endregion
|
|
21
|
+
export declare function toAgentToolName(id: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/agent-tool-name.ts
|
|
2
2
|
/**
|
|
3
3
|
* Maximum tool-name length several MCP clients enforce (the Anthropic API
|
|
4
4
|
* pattern is `^[a-zA-Z0-9_-]{1,128}$`).
|
|
@@ -27,5 +27,4 @@ const MAX_TOOL_NAME_LENGTH = 128;
|
|
|
27
27
|
function toAgentToolName(id) {
|
|
28
28
|
return id.replace(/[^\w-]+/g, "_").slice(0, MAX_TOOL_NAME_LENGTH);
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { toAgentToolName };
|
package/dist/utils/colors.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/colors.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A colorizer, callable as a function (`colors.red('foo')`) or as a
|
|
4
3
|
* tagged template (``colors.red`foo ${bar}` ``).
|
|
@@ -23,5 +22,4 @@ export interface Colors {
|
|
|
23
22
|
reset: ColorFn;
|
|
24
23
|
underline: ColorFn;
|
|
25
24
|
}
|
|
26
|
-
export declare const colors: Colors;
|
|
27
|
-
//#endregion
|
|
25
|
+
export declare const colors: Colors;
|
package/dist/utils/colors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/colors.ts
|
|
2
2
|
function makeColor(open, close) {
|
|
3
3
|
const o = `\x1B[${open}m`;
|
|
4
4
|
const c = `\x1B[${close}m`;
|
|
@@ -27,5 +27,4 @@ const colors = {
|
|
|
27
27
|
reset: makeColor(0, 0),
|
|
28
28
|
underline: makeColor(4, 24)
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { colors };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/crypto-token.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Generate a high-entropy, URL-safe (hex) random token suitable for use as a
|
|
4
3
|
* bearer credential, e.g. the persistent client auth token or an ephemeral
|
|
@@ -19,5 +18,4 @@ export declare function randomDigits(length: number): string;
|
|
|
19
18
|
* Length is treated as public (it short-circuits on differing lengths), which
|
|
20
19
|
* is appropriate for fixed-length codes and tokens.
|
|
21
20
|
*/
|
|
22
|
-
export declare function timingSafeEqual(a: string, b: string): boolean;
|
|
23
|
-
//#endregion
|
|
21
|
+
export declare function timingSafeEqual(a: string, b: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/crypto-token.ts
|
|
2
2
|
const HEX = "0123456789abcdef";
|
|
3
3
|
/**
|
|
4
4
|
* Generate a high-entropy, URL-safe (hex) random token suitable for use as a
|
|
@@ -41,5 +41,4 @@ function timingSafeEqual(a, b) {
|
|
|
41
41
|
for (let i = 0; i < a.length; i++) mismatch |= a.charCodeAt(i) ^ b.charCodeAt(i);
|
|
42
42
|
return mismatch === 0;
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { randomDigits, randomToken, timingSafeEqual };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.d.mts
|
|
2
1
|
//#region src/index.d.ts
|
|
3
2
|
interface DebounceOptions {
|
|
4
3
|
/**
|
|
@@ -46,5 +45,4 @@ for (const number of [1, 2, 3]) {
|
|
|
46
45
|
```
|
|
47
46
|
*/
|
|
48
47
|
declare function debounce<ArgumentsT extends unknown[], ReturnT>(fn: (...args: ArgumentsT) => PromiseLike<ReturnT> | ReturnT, wait?: number, options?: DebounceOptions): DebouncedReturn<ArgumentsT, ReturnT>;
|
|
49
|
-
//#endregion
|
|
50
48
|
export { type DebounceOptions, type DebouncedReturn, debounce };
|
package/dist/utils/debounce.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
|
|
2
2
|
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
3
3
|
/**
|
|
4
4
|
Debounce functions
|
|
@@ -84,5 +84,4 @@ function debounce(fn, wait = 25, options = {}) {
|
|
|
84
84
|
async function _applyPromised(fn, _this, args) {
|
|
85
85
|
return await fn.apply(_this, args);
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { debounce };
|
package/dist/utils/events.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { in as EventsMap, nn as EventEmitter } from "../context-
|
|
2
|
-
//#region src/utils/events.d.ts
|
|
1
|
+
import { in as EventsMap, nn as EventEmitter } from "../context-WxTq6kqb.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Create event emitter.
|
|
5
4
|
*/
|
|
6
|
-
export declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
|
package/dist/utils/events.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.d.mts
|
|
2
1
|
interface GetPortOptions {
|
|
3
2
|
name: string;
|
|
4
3
|
random: boolean;
|
|
@@ -13,5 +12,4 @@ interface GetPortOptions {
|
|
|
13
12
|
type GetPortInput = Partial<GetPortOptions> | number | string;
|
|
14
13
|
type PortNumber = number;
|
|
15
14
|
declare function getPort(_userOptions?: GetPortInput): Promise<PortNumber>;
|
|
16
|
-
//#endregion
|
|
17
15
|
export { type GetPortInput, type GetPortOptions, getPort };
|
package/dist/utils/get-port.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { getPort };
|
|
1
|
+
export { n as getPort } from "../dist-DJydMELP.mjs";
|
package/dist/utils/hash.d.mts
CHANGED
package/dist/utils/hash.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { hash };
|
|
1
|
+
export { t as hash } from "../hash-DHqpWeMO.mjs";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/launch-editor.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Editor commands `launch-editor` recognizes with a tailored
|
|
4
3
|
* `file:line:column` invocation. Callers that gate an RPC surface's editor
|
|
@@ -16,5 +15,4 @@ export declare const KNOWN_EDITORS: KnownEditor[];
|
|
|
16
15
|
* `'subl'`) or absolute binary path. Otherwise the editor is auto-detected
|
|
17
16
|
* via the `LAUNCH_EDITOR` env var with a fallback to common defaults.
|
|
18
17
|
*/
|
|
19
|
-
export declare function launchEditor(target: string, editor?: string): void;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare function launchEditor(target: string, editor?: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as __toESM, r as __require, t as __commonJSMin } from "../rolldown-runtime-
|
|
2
|
-
|
|
1
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "../rolldown-runtime-DYf_mQCB.mjs";
|
|
2
|
+
// ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
3
3
|
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
let p = process || {};
|
|
5
5
|
let argv = p.argv || [];
|
|
@@ -68,8 +68,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
68
68
|
module.exports = createColors();
|
|
69
69
|
module.exports.createColors = createColors;
|
|
70
70
|
}));
|
|
71
|
-
|
|
72
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/quote.js
|
|
71
|
+
// ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/quote.js
|
|
73
72
|
var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
74
73
|
/** @import { ControlOperator } from './parse' */
|
|
75
74
|
/** @type {ControlOperator['op'][]} */
|
|
@@ -133,8 +132,7 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
133
132
|
}).join(" ");
|
|
134
133
|
};
|
|
135
134
|
}));
|
|
136
|
-
|
|
137
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/parse.js
|
|
135
|
+
// ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/parse.js
|
|
138
136
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139
137
|
/**
|
|
140
138
|
* @import {
|
|
@@ -401,14 +399,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
401
399
|
}, []);
|
|
402
400
|
};
|
|
403
401
|
}));
|
|
404
|
-
|
|
405
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/index.js
|
|
402
|
+
// ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/index.js
|
|
406
403
|
var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
407
404
|
exports.quote = require_quote();
|
|
408
405
|
exports.parse = require_parse();
|
|
409
406
|
}));
|
|
410
|
-
|
|
411
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/macos.js
|
|
407
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/macos.js
|
|
412
408
|
var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
413
409
|
module.exports = {
|
|
414
410
|
"/Applications/Atom.app/Contents/MacOS/Atom": "atom",
|
|
@@ -442,8 +438,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
442
438
|
"/Applications/Zed.app/Contents/MacOS/zed": "zed"
|
|
443
439
|
};
|
|
444
440
|
}));
|
|
445
|
-
|
|
446
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/linux.js
|
|
441
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/linux.js
|
|
447
442
|
var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
448
443
|
module.exports = {
|
|
449
444
|
atom: "atom",
|
|
@@ -476,8 +471,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
476
471
|
zed: "zed"
|
|
477
472
|
};
|
|
478
473
|
}));
|
|
479
|
-
|
|
480
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/windows.js
|
|
474
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/windows.js
|
|
481
475
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
482
476
|
module.exports = [
|
|
483
477
|
"Brackets.exe",
|
|
@@ -509,12 +503,11 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
509
503
|
"Antigravity.exe"
|
|
510
504
|
];
|
|
511
505
|
}));
|
|
512
|
-
|
|
513
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/guess.js
|
|
506
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/guess.js
|
|
514
507
|
var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
515
|
-
const path
|
|
508
|
+
const path = __require("path");
|
|
516
509
|
const shellQuote = require_shell_quote();
|
|
517
|
-
const childProcess
|
|
510
|
+
const childProcess = __require("child_process");
|
|
518
511
|
const COMMON_EDITORS_MACOS = require_macos();
|
|
519
512
|
const COMMON_EDITORS_LINUX = require_linux();
|
|
520
513
|
const COMMON_EDITORS_WIN = require_windows();
|
|
@@ -536,7 +529,7 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
536
529
|
const runningProcesses = output.split("\r\n");
|
|
537
530
|
for (let i = 0; i < runningProcesses.length; i++) {
|
|
538
531
|
const fullProcessPath = runningProcesses[i].trim();
|
|
539
|
-
const shortProcessName = path
|
|
532
|
+
const shortProcessName = path.win32.basename(fullProcessPath);
|
|
540
533
|
if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) return fullProcessPath;
|
|
541
534
|
}
|
|
542
535
|
}
|
|
@@ -553,21 +546,21 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
553
546
|
if (process.versions.webcontainer) return [process.env.EDITOR || "code"];
|
|
554
547
|
try {
|
|
555
548
|
if (process.platform === "darwin") {
|
|
556
|
-
const editor = getEditorFromMacProcesses(childProcess
|
|
549
|
+
const editor = getEditorFromMacProcesses(childProcess.execSync("ps x -o comm=", { stdio: [
|
|
557
550
|
"pipe",
|
|
558
551
|
"pipe",
|
|
559
552
|
"ignore"
|
|
560
553
|
] }).toString());
|
|
561
554
|
if (editor !== void 0) return [editor];
|
|
562
555
|
} else if (process.platform === "win32") {
|
|
563
|
-
const editor = getEditorFromWindowsProcesses(childProcess
|
|
556
|
+
const editor = getEditorFromWindowsProcesses(childProcess.execSync("powershell -NoProfile -Command \"[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\\"select executablepath from win32_process where executablepath is not null\\\" | % { $_.ExecutablePath }\"", { stdio: [
|
|
564
557
|
"pipe",
|
|
565
558
|
"pipe",
|
|
566
559
|
"ignore"
|
|
567
560
|
] }).toString());
|
|
568
561
|
if (editor !== void 0) return [editor];
|
|
569
562
|
} else if (process.platform === "linux") {
|
|
570
|
-
const editor = getEditorFromLinuxProcesses(childProcess
|
|
563
|
+
const editor = getEditorFromLinuxProcesses(childProcess.execSync("ps x --no-heading -o comm --sort=comm", { stdio: [
|
|
571
564
|
"pipe",
|
|
572
565
|
"pipe",
|
|
573
566
|
"ignore"
|
|
@@ -584,16 +577,15 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
584
577
|
module.exports.getEditorFromWindowsProcesses = getEditorFromWindowsProcesses;
|
|
585
578
|
module.exports.getEditorFromLinuxProcesses = getEditorFromLinuxProcesses;
|
|
586
579
|
}));
|
|
587
|
-
|
|
588
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/get-args.js
|
|
580
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/get-args.js
|
|
589
581
|
var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
590
582
|
const os = __require("os");
|
|
591
|
-
const path
|
|
583
|
+
const path = __require("path");
|
|
592
584
|
module.exports = function getArgumentsForFile(editor, fileName, lineNumber, columnNumber = 1) {
|
|
593
|
-
fileName = path
|
|
594
|
-
if (process.platform === "linux" && fileName.startsWith("/mnt/") && /Microsoft/i.test(os.release())) fileName = `./${path
|
|
585
|
+
fileName = path.resolve(fileName);
|
|
586
|
+
if (process.platform === "linux" && fileName.startsWith("/mnt/") && /Microsoft/i.test(os.release())) fileName = `./${path.relative("", fileName)}`;
|
|
595
587
|
if (!lineNumber) return [fileName];
|
|
596
|
-
switch (path
|
|
588
|
+
switch (path.basename(editor).replace(/\.(exe|cmd|bat)$/i, "")) {
|
|
597
589
|
case "atom":
|
|
598
590
|
case "Atom":
|
|
599
591
|
case "Atom Beta":
|
|
@@ -667,8 +659,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
667
659
|
return [fileName];
|
|
668
660
|
};
|
|
669
661
|
}));
|
|
670
|
-
|
|
671
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/construct-windows-launch-command.js
|
|
662
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/construct-windows-launch-command.js
|
|
672
663
|
var require_construct_windows_launch_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
673
664
|
function escapeCmdArgs(cmdArgs) {
|
|
674
665
|
return cmdArgs.replace(/([&|<>,;=^])/g, "^$1");
|
|
@@ -685,15 +676,14 @@ var require_construct_windows_launch_command = /* @__PURE__ */ __commonJSMin(((e
|
|
|
685
676
|
}
|
|
686
677
|
module.exports = constructWindowsLaunchCommand;
|
|
687
678
|
}));
|
|
688
|
-
|
|
689
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/parse-file.js
|
|
679
|
+
// ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/parse-file.js
|
|
690
680
|
var require_parse_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
691
|
-
const path
|
|
681
|
+
const path = __require("path");
|
|
692
682
|
const positionRE = /:(\d+)(:(\d+))?$/;
|
|
693
683
|
module.exports = function parseFile(file) {
|
|
694
684
|
if (file.startsWith("file://")) file = __require("url").fileURLToPath(file);
|
|
695
685
|
const unresolvedFileName = file.replace(positionRE, "");
|
|
696
|
-
const fileName = unresolvedFileName ? path
|
|
686
|
+
const fileName = unresolvedFileName ? path.resolve(unresolvedFileName) : "";
|
|
697
687
|
const match = file.match(positionRE);
|
|
698
688
|
return {
|
|
699
689
|
fileName,
|
|
@@ -702,8 +692,7 @@ var require_parse_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
702
692
|
};
|
|
703
693
|
};
|
|
704
694
|
}));
|
|
705
|
-
|
|
706
|
-
//#region src/utils/launch-editor.ts
|
|
695
|
+
// src/utils/launch-editor.ts
|
|
707
696
|
var import_launch_editor = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
708
697
|
/**
|
|
709
698
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
@@ -831,5 +820,4 @@ const KNOWN_EDITORS = [
|
|
|
831
820
|
function launchEditor(target, editor) {
|
|
832
821
|
(0, import_launch_editor.default)(target, editor);
|
|
833
822
|
}
|
|
834
|
-
//#endregion
|
|
835
823
|
export { KNOWN_EDITORS, launchEditor };
|
package/dist/utils/nanoid.d.mts
CHANGED
package/dist/utils/nanoid.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/nanoid.ts
|
|
2
2
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3
3
|
function nanoid(size = 21) {
|
|
4
4
|
let id = "";
|
|
@@ -6,5 +6,4 @@ function nanoid(size = 21) {
|
|
|
6
6
|
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
7
7
|
return id;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { nanoid };
|
package/dist/utils/nostics.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as formatDiagnostic, a as DevframeDiagnostics, c as DiagnosticDefinition, d as DiagnosticReporter, f as Diagnostics, g as defineProdDiagnostics, h as defineDiagnostics, i as DevframeDefineDiagnosticsOptions, l as DiagnosticHandle, m as createConsoleReporter, n as ConsoleMethod, o as Diagnostic, p as ansiFormatter, r as ConsoleReporterOptions, s as DiagnosticCallParams, t as AnyDiagnosticReporter, u as DiagnosticInit } from "../nostics-
|
|
1
|
+
import { _ as formatDiagnostic, a as DevframeDiagnostics, c as DiagnosticDefinition, d as DiagnosticReporter, f as Diagnostics, g as defineProdDiagnostics, h as defineDiagnostics, i as DevframeDefineDiagnosticsOptions, l as DiagnosticHandle, m as createConsoleReporter, n as ConsoleMethod, o as Diagnostic, p as ansiFormatter, r as ConsoleReporterOptions, s as DiagnosticCallParams, t as AnyDiagnosticReporter, u as DiagnosticInit } from "../nostics-Dgwh7ytT.mjs";
|
|
2
2
|
export { type AnyDiagnosticReporter, type ConsoleMethod, type ConsoleReporterOptions, DevframeDefineDiagnosticsOptions, DevframeDiagnostics, type Diagnostic, type DiagnosticCallParams, type DiagnosticDefinition, type DiagnosticHandle, type DiagnosticInit, type DiagnosticReporter, type Diagnostics, ansiFormatter, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic };
|
package/dist/utils/nostics.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Diagnostic, ansiFormatter, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic };
|
|
1
|
+
export { t as Diagnostic, n as ansiFormatter, r as createConsoleReporter, i as defineDiagnostics, a as defineProdDiagnostics, o as formatDiagnostic } from "../nostics-InlX4tmd.mjs";
|
package/dist/utils/open.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/utils/open.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Open a URL, file, or other target in its default OS handler
|
|
4
3
|
* (browser for URLs, Finder/Explorer for paths, etc.).
|
|
5
4
|
*/
|
|
6
|
-
export declare function open(target: string): Promise<void>;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function open(target: string): Promise<void>;
|
package/dist/utils/open.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
|
-
|
|
4
|
+
// src/utils/open.ts
|
|
5
5
|
/**
|
|
6
6
|
* Launches `command` detached from the current process and resolves once
|
|
7
7
|
* the OS has accepted the spawn (not once the launched app exits), the
|
|
@@ -53,5 +53,4 @@ async function open(target) {
|
|
|
53
53
|
}
|
|
54
54
|
return spawnDetached("xdg-open", [target]);
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { open };
|
package/dist/utils/origin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as validateOriginCandidate, n as isLoopbackAddress, r as isLoopbackHostname, t as isAllowedOrigin } from "../origin-
|
|
1
|
+
import { i as validateOriginCandidate, n as isLoopbackAddress, r as isLoopbackHostname, t as isAllowedOrigin } from "../origin-D5i7K_Zb.mjs";
|
|
2
2
|
export { isAllowedOrigin, isLoopbackAddress, isLoopbackHostname, validateOriginCandidate };
|
package/dist/utils/origin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/origin.ts
|
|
2
2
|
/**
|
|
3
3
|
* Origin and hostname predicates shared by the RPC transports (the WS upgrade,
|
|
4
4
|
* SSE, and MCP origin gates) and the instance shell's authentication-link
|
|
@@ -96,5 +96,4 @@ function validateOriginCandidate(candidate, allowedOrigins) {
|
|
|
96
96
|
if (canonical === "null") return void 0;
|
|
97
97
|
if (isLoopbackHostname(url.hostname) || allowedOrigins?.includes(canonical)) return canonical;
|
|
98
98
|
}
|
|
99
|
-
//#endregion
|
|
100
99
|
export { isAllowedOrigin, isLoopbackAddress, isLoopbackHostname, validateOriginCandidate };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-assets-
|
|
2
|
-
//#region src/utils/remote-assets.d.ts
|
|
1
|
+
import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-assets-5AQMHZnV.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Normalize a {@link StaticAssetsSource} into something servable: a local
|
|
5
4
|
* directory (strings pass through; a remote source short-circuits to a
|
|
@@ -16,5 +15,4 @@ import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-asset
|
|
|
16
15
|
* per-source string still wins and an explicit `null` still opts out of the
|
|
17
16
|
* installed-copy lookup.
|
|
18
17
|
*/
|
|
19
|
-
export declare function resolveStaticAssetsSource(source: StaticAssetsSource, projectStorageDir: string, defaultResolveFrom?: string | null): string | RemoteAssetsStore;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare function resolveStaticAssetsSource(source: StaticAssetsSource, projectStorageDir: string, defaultResolveFrom?: string | null): string | RemoteAssetsStore;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { resolveStaticAssetsSource };
|
|
1
|
+
export { t as resolveStaticAssetsSource } from "../remote-assets-DhonNeo_.mjs";
|