devframe 0.2.1 → 0.2.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.
Files changed (57) hide show
  1. package/dist/adapters/build.d.mts +1 -1
  2. package/dist/adapters/build.mjs +3 -3
  3. package/dist/adapters/cli.d.mts +1 -1
  4. package/dist/adapters/cli.mjs +2 -2
  5. package/dist/adapters/dev.d.mts +2 -2
  6. package/dist/adapters/dev.mjs +1 -1
  7. package/dist/adapters/embedded.d.mts +1 -1
  8. package/dist/adapters/mcp.d.mts +1 -1
  9. package/dist/adapters/mcp.mjs +3 -3
  10. package/dist/client/index.d.mts +4 -4
  11. package/dist/client/index.mjs +2 -2
  12. package/dist/{context-BaX-SZti.d.mts → context-BDpuScNZ.d.mts} +1 -1
  13. package/dist/{dev-CA0-8Amw.mjs → dev-CZ9ZQkuO.mjs} +4 -4
  14. package/dist/{devframe-BXZUBuy6.d.mts → devframe-DAfZWnpI.d.mts} +2 -2
  15. package/dist/{diagnostics-Cg9ycFIM.mjs → diagnostics-DNxVjo6X.mjs} +1 -1
  16. package/dist/helpers/vite.d.mts +1 -1
  17. package/dist/helpers/vite.mjs +3 -3
  18. package/dist/{host-h3-CpYkiCIU.mjs → host-h3-DEfOpa0j.mjs} +3 -3
  19. package/dist/{index-BO4daMzR.d.mts → index-BNAsgVNz.d.mts} +1 -1
  20. package/dist/index.d.mts +3 -3
  21. package/dist/{launch-editor-1dAC7Uk5.mjs → launch-editor-BbNhtg7b.mjs} +25 -1
  22. package/dist/node/auth.d.mts +2 -2
  23. package/dist/node/auth.mjs +2 -2
  24. package/dist/node/index.d.mts +5 -5
  25. package/dist/node/index.mjs +3 -3
  26. package/dist/node/internal.d.mts +2 -2
  27. package/dist/node/internal.mjs +4 -4
  28. package/dist/recipes/open-helpers.d.mts +1 -1
  29. package/dist/recipes/open-helpers.mjs +2 -2
  30. package/dist/rpc/index.d.mts +2 -2
  31. package/dist/rpc/transports/ws-client.d.mts +1 -1
  32. package/dist/rpc/transports/ws-server.d.mts +1 -1
  33. package/dist/{server-CgqyJG9m.d.mts → server-BGSrxsQb.d.mts} +1 -1
  34. package/dist/{storage-BaLJK6e_.mjs → storage-D-jLaxDA.mjs} +2 -2
  35. package/dist/types/index.d.mts +3 -3
  36. package/dist/utils/colors.mjs +30 -1
  37. package/dist/utils/events.d.mts +1 -1
  38. package/dist/utils/human-id.d.mts +1 -1
  39. package/dist/utils/human-id.mjs +768 -1
  40. package/dist/utils/launch-editor.mjs +1 -1
  41. package/dist/utils/open.mjs +1 -1
  42. package/dist/utils/shared-state.d.mts +1 -1
  43. package/dist/utils/shared-state.mjs +1 -1
  44. package/dist/utils/streaming-channel.d.mts +1 -1
  45. package/dist/{ws-client-DFUf-xgm.d.mts → ws-client-CrLsflnY.d.mts} +1 -1
  46. package/dist/{ws-server-kW8RZXTw.d.mts → ws-server-DKlqI8XP.d.mts} +1 -1
  47. package/package.json +1 -5
  48. package/dist/chunk-e9Ob2GDo.mjs +0 -26
  49. package/dist/colors-DS7k8ljB.mjs +0 -123
  50. package/dist/human-id-mPh1HcFO.mjs +0 -852
  51. /package/dist/{_shared-C_yZKUmx.mjs → _shared-CUFqO4kJ.mjs} +0 -0
  52. /package/dist/{open-CWL4Zasd.mjs → open-DiQn6zCH.mjs} +0 -0
  53. /package/dist/{revoke-CWSPBbJH.mjs → revoke-DDa7VSJa.mjs} +0 -0
  54. /package/dist/{server-G1ymmN3_.mjs → server-BO8IDVsJ.mjs} +0 -0
  55. /package/dist/{shared-state-q9-1EOSX.mjs → shared-state-BJXkPxtf.mjs} +0 -0
  56. /package/dist/{transports-BLwT342H.mjs → transports-DTFoMUbE.mjs} +0 -0
  57. /package/dist/{types-ip8THGH1.d.mts → types-DmcujDa5.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
1
+ import { r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
2
 
3
3
  //#region src/adapters/build.d.ts
4
4
  interface CreateBuildOptions {
@@ -2,9 +2,9 @@ import { t as collectStaticRpcDump } from "../rpc-BlVCyk9W.mjs";
2
2
  import { n as strictJsonStringify } from "../serialization-CwO31axa.mjs";
3
3
  import { DEVTOOLS_CONNECTION_META_FILENAME, DEVTOOLS_RPC_DUMP_DIRNAME, DEVTOOLS_RPC_DUMP_MANIFEST_FILENAME } from "../constants.mjs";
4
4
  import { i as structuredCloneStringify } from "../structured-clone-CD2l4fI3.mjs";
5
- import { t as colors } from "../colors-DS7k8ljB.mjs";
6
- import { n as createHostContext, t as createH3DevToolsHost } from "../host-h3-CpYkiCIU.mjs";
7
- import { n as resolveBasePath } from "../_shared-C_yZKUmx.mjs";
5
+ import { colors } from "../utils/colors.mjs";
6
+ import { n as createHostContext, t as createH3DevToolsHost } from "../host-h3-DEfOpa0j.mjs";
7
+ import { n as resolveBasePath } from "../_shared-CUFqO4kJ.mjs";
8
8
  import { existsSync } from "node:fs";
9
9
  import process from "node:process";
10
10
  import { dirname, resolve } from "pathe";
@@ -1,4 +1,4 @@
1
- import { ct as CliFlagsSchema, dt as parseCliFlags, lt as InferCliFlags, r as DevframeDefinition, ut as defineCliFlags } from "../devframe-BXZUBuy6.mjs";
1
+ import { ct as CliFlagsSchema, dt as parseCliFlags, lt as InferCliFlags, r as DevframeDefinition, ut as defineCliFlags } from "../devframe-DAfZWnpI.mjs";
2
2
  import { H3 } from "h3";
3
3
  import { CAC } from "cac";
4
4
 
@@ -1,6 +1,6 @@
1
- import { t as colors } from "../colors-DS7k8ljB.mjs";
1
+ import { colors } from "../utils/colors.mjs";
2
2
  import { createBuild } from "./build.mjs";
3
- import { n as resolveDevServerPort, t as createDevServer } from "../dev-CA0-8Amw.mjs";
3
+ import { n as resolveDevServerPort, t as createDevServer } from "../dev-CZ9ZQkuO.mjs";
4
4
  import process from "node:process";
5
5
  import cac from "cac";
6
6
  import { safeParse } from "valibot";
@@ -1,5 +1,5 @@
1
- import { r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
2
- import { n as StartedServer } from "../server-CgqyJG9m.mjs";
1
+ import { r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
+ import { n as StartedServer } from "../server-BGSrxsQb.mjs";
3
3
  import { H3 } from "h3";
4
4
 
5
5
  //#region src/adapters/dev.d.ts
@@ -1,2 +1,2 @@
1
- import { n as resolveDevServerPort, t as createDevServer } from "../dev-CA0-8Amw.mjs";
1
+ import { n as resolveDevServerPort, t as createDevServer } from "../dev-CZ9ZQkuO.mjs";
2
2
  export { createDevServer, resolveDevServerPort };
@@ -1,4 +1,4 @@
1
- import { d as DevToolsNodeContext, r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
1
+ import { d as DevToolsNodeContext, r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
2
 
3
3
  //#region src/adapters/embedded.d.ts
4
4
  interface CreateEmbeddedOptions {
@@ -1,4 +1,4 @@
1
- import { r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
1
+ import { r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
2
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
3
 
4
4
  //#region src/adapters/mcp/build-server.d.ts
@@ -1,5 +1,5 @@
1
- import { n as logger } from "../diagnostics-Cg9ycFIM.mjs";
2
- import { n as createHostContext } from "../host-h3-CpYkiCIU.mjs";
1
+ import { n as logger } from "../diagnostics-DNxVjo6X.mjs";
2
+ import { n as createHostContext } from "../host-h3-DEfOpa0j.mjs";
3
3
  import { homedir } from "node:os";
4
4
  import process from "node:process";
5
5
  import { join } from "pathe";
@@ -204,7 +204,7 @@ async function createMcpServer(definition, options = {}) {
204
204
  serverVersion: options.serverVersion ?? definition.version ?? "0.0.0",
205
205
  exposeSharedState: options.exposeSharedState ?? true
206
206
  });
207
- const { startStdioTransport } = await import("../transports-BLwT342H.mjs");
207
+ const { startStdioTransport } = await import("../transports-DTFoMUbE.mjs");
208
208
  let stop;
209
209
  try {
210
210
  stop = await startStdioTransport(server);
@@ -1,7 +1,7 @@
1
- import { T as StreamSink, U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, at as EventEmitter, g as RpcSharedStateHost, l as ConnectionMeta, w as StreamReader } from "../devframe-BXZUBuy6.mjs";
2
- import { C as RpcCacheManager, w as RpcCacheOptions } from "../index-BO4daMzR.mjs";
3
- import { C as RpcFunctionsCollector } from "../types-ip8THGH1.mjs";
4
- import { t as WsRpcChannelOptions } from "../ws-client-DFUf-xgm.mjs";
1
+ import { T as StreamSink, U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, at as EventEmitter, g as RpcSharedStateHost, l as ConnectionMeta, w as StreamReader } from "../devframe-DAfZWnpI.mjs";
2
+ import { C as RpcCacheManager, w as RpcCacheOptions } from "../index-BNAsgVNz.mjs";
3
+ import { C as RpcFunctionsCollector } from "../types-DmcujDa5.mjs";
4
+ import { t as WsRpcChannelOptions } from "../ws-client-CrLsflnY.mjs";
5
5
  import { BirpcOptions, BirpcReturn } from "birpc";
6
6
 
7
7
  //#region src/client/rpc-streaming.d.ts
@@ -5,9 +5,9 @@ import { createRpcClient } from "../rpc/client.mjs";
5
5
  import { t as structuredCloneDeserialize } from "../structured-clone-CD2l4fI3.mjs";
6
6
  import { createWsRpcChannel } from "../rpc/transports/ws-client.mjs";
7
7
  import { createEventEmitter } from "../utils/events.mjs";
8
- import { t as createSharedState } from "../shared-state-q9-1EOSX.mjs";
8
+ import { t as createSharedState } from "../shared-state-BJXkPxtf.mjs";
9
9
  import { createStreamReader, createStreamSink } from "../utils/streaming-channel.mjs";
10
- import { t as humanId } from "../human-id-mPh1HcFO.mjs";
10
+ import { humanId } from "../utils/human-id.mjs";
11
11
  import { promiseWithResolver } from "../utils/promise.mjs";
12
12
  //#region src/client/rpc-shared-state.ts
13
13
  function createRpcSharedStateClientHost(rpc) {
@@ -1,4 +1,4 @@
1
- import { P as SharedState, d as DevToolsNodeContext } from "./devframe-BXZUBuy6.mjs";
1
+ import { P as SharedState, d as DevToolsNodeContext } from "./devframe-DAfZWnpI.mjs";
2
2
 
3
3
  //#region src/node/internal/context.d.ts
4
4
  interface InternalAnonymousAuthStorage {
@@ -1,8 +1,8 @@
1
1
  import { DEVTOOLS_CONNECTION_META_FILENAME } from "./constants.mjs";
2
- import { n as createHostContext, t as createH3DevToolsHost } from "./host-h3-CpYkiCIU.mjs";
3
- import { t as startHttpAndWs } from "./server-G1ymmN3_.mjs";
4
- import { n as resolveBasePath, t as normalizeBasePath } from "./_shared-C_yZKUmx.mjs";
5
- import { t as open } from "./open-CWL4Zasd.mjs";
2
+ import { n as createHostContext, t as createH3DevToolsHost } from "./host-h3-DEfOpa0j.mjs";
3
+ import { t as startHttpAndWs } from "./server-BO8IDVsJ.mjs";
4
+ import { n as resolveBasePath, t as normalizeBasePath } from "./_shared-CUFqO4kJ.mjs";
5
+ import { t as open } from "./open-DiQn6zCH.mjs";
6
6
  import { mountStaticHandler } from "./utils/serve-static.mjs";
7
7
  import { networkInterfaces } from "node:os";
8
8
  import process$1 from "node:process";
@@ -1,5 +1,5 @@
1
- import { S as RpcFunctionsCollectorBase } from "./index-BO4daMzR.mjs";
2
- import { t as DevToolsNodeRpcSessionMeta } from "./ws-server-kW8RZXTw.mjs";
1
+ import { S as RpcFunctionsCollectorBase } from "./index-BNAsgVNz.mjs";
2
+ import { t as DevToolsNodeRpcSessionMeta } from "./ws-server-DKlqI8XP.mjs";
3
3
  import { Logger, createLogger, defineDiagnostics } from "logs-sdk";
4
4
  import { BirpcReturn } from "birpc";
5
5
  import { CAC } from "cac";
@@ -1,4 +1,4 @@
1
- import { t as colors } from "./colors-DS7k8ljB.mjs";
1
+ import { colors } from "./utils/colors.mjs";
2
2
  import { consoleReporter, createLogger, defineDiagnostics } from "logs-sdk";
3
3
  import { ansiFormatter } from "logs-sdk/formatters/ansi";
4
4
  //#region src/node/diagnostics.ts
@@ -1,4 +1,4 @@
1
- import { r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
1
+ import { r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
2
 
3
3
  //#region src/helpers/vite.d.ts
4
4
  interface ViteDevBridgeOptions {
@@ -1,8 +1,8 @@
1
1
  import { DEVTOOLS_CONNECTION_META_FILENAME } from "../constants.mjs";
2
- import { n as logger } from "../diagnostics-Cg9ycFIM.mjs";
3
- import { n as resolveBasePath } from "../_shared-C_yZKUmx.mjs";
2
+ import { n as logger } from "../diagnostics-DNxVjo6X.mjs";
3
+ import { n as resolveBasePath } from "../_shared-CUFqO4kJ.mjs";
4
4
  import { serveStaticNodeMiddleware } from "../utils/serve-static.mjs";
5
- import { n as resolveDevServerPort, t as createDevServer } from "../dev-CA0-8Amw.mjs";
5
+ import { n as resolveDevServerPort, t as createDevServer } from "../dev-CZ9ZQkuO.mjs";
6
6
  import { resolve } from "pathe";
7
7
  //#region src/helpers/vite.ts
8
8
  /**
@@ -1,10 +1,10 @@
1
1
  import { l as RpcFunctionsCollectorBase } from "./rpc-BlVCyk9W.mjs";
2
2
  import { r as diagnostics } from "./serialization-CwO31axa.mjs";
3
3
  import { defineRpcFunction } from "./index.mjs";
4
- import { t as colors$1 } from "./colors-DS7k8ljB.mjs";
5
- import { n as logger, t as diagnostics$1 } from "./diagnostics-Cg9ycFIM.mjs";
4
+ import { colors as colors$1 } from "./utils/colors.mjs";
5
+ import { n as logger, t as diagnostics$1 } from "./diagnostics-DNxVjo6X.mjs";
6
6
  import { createEventEmitter } from "./utils/events.mjs";
7
- import { t as createSharedState } from "./shared-state-q9-1EOSX.mjs";
7
+ import { t as createSharedState } from "./shared-state-BJXkPxtf.mjs";
8
8
  import { createStreamReader, createStreamSink } from "./utils/streaming-channel.mjs";
9
9
  import { consoleReporter, createLogger, defineDiagnostics } from "logs-sdk";
10
10
  import { ansiFormatter } from "logs-sdk/formatters/ansi";
@@ -1,4 +1,4 @@
1
- import { C as RpcFunctionsCollector, S as RpcFunctionType, _ as RpcFunctionDefinitionAny, c as RpcDumpClientOptions, g as RpcFunctionDefinition, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, w as RpcReturnSchema, x as RpcFunctionSetupResult } from "./types-ip8THGH1.mjs";
1
+ import { C as RpcFunctionsCollector, S as RpcFunctionType, _ as RpcFunctionDefinitionAny, c as RpcDumpClientOptions, g as RpcFunctionDefinition, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, w as RpcReturnSchema, x as RpcFunctionSetupResult } from "./types-DmcujDa5.mjs";
2
2
 
3
3
  //#region src/rpc/cache.d.ts
4
4
  interface RpcCacheOptions {
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as AgentResourceContent, B as EntriesToObject, G as DevToolsRpcSharedStates, H as Thenable, J as DevToolsDiagnosticsHost, K as DevToolsHost, Q as AgentResource, U as DevToolsRpcClientFunctions, V as PartialWithoutId, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, _ as RpcStreamingChannel, a as DevframeRuntime, at as EventEmitter, c as defineDevframe, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, it as DevToolsAgentHostEvents, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, nt as AgentToolInput, o as DevframeSetupInfo, ot as EventUnsubscribe, p as RpcBroadcastOptions, q as DevToolsDiagnosticsDefinition, r as DevframeDefinition, rt as DevToolsAgentHost, s as DevframeSpaOptions, st as EventsMap, t as DevframeBrowserContext, tt as AgentTool, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, y as RpcStreamingHost, z as DevToolsViewHost } from "./devframe-BXZUBuy6.mjs";
2
- import { S as RpcFunctionType, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, w as RpcReturnSchema } from "./types-ip8THGH1.mjs";
3
- import { t as DevToolsNodeRpcSessionMeta } from "./ws-server-kW8RZXTw.mjs";
1
+ import { $ as AgentResourceContent, B as EntriesToObject, G as DevToolsRpcSharedStates, H as Thenable, J as DevToolsDiagnosticsHost, K as DevToolsHost, Q as AgentResource, U as DevToolsRpcClientFunctions, V as PartialWithoutId, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, _ as RpcStreamingChannel, a as DevframeRuntime, at as EventEmitter, c as defineDevframe, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, it as DevToolsAgentHostEvents, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, nt as AgentToolInput, o as DevframeSetupInfo, ot as EventUnsubscribe, p as RpcBroadcastOptions, q as DevToolsDiagnosticsDefinition, r as DevframeDefinition, rt as DevToolsAgentHost, s as DevframeSpaOptions, st as EventsMap, t as DevframeBrowserContext, tt as AgentTool, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, y as RpcStreamingHost, z as DevToolsViewHost } from "./devframe-DAfZWnpI.mjs";
2
+ import { S as RpcFunctionType, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, w as RpcReturnSchema } from "./types-DmcujDa5.mjs";
3
+ import { t as DevToolsNodeRpcSessionMeta } from "./ws-server-DKlqI8XP.mjs";
4
4
 
5
5
  //#region src/define.d.ts
6
6
  declare const defineRpcFunction: <NAME extends string, TYPE extends RpcFunctionType, ARGS extends any[], RETURN = void, const AS extends RpcArgsSchema | undefined = undefined, const RS extends RpcReturnSchema | undefined = undefined>(definition: RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevToolsNodeContext>) => RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevToolsNodeContext>;
@@ -1,4 +1,28 @@
1
- import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-e9Ob2GDo.mjs";
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
21
+ value: mod,
22
+ enumerable: true
23
+ }) : target, mod));
24
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
25
+ //#endregion
2
26
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
3
27
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
28
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -1,5 +1,5 @@
1
- import { P as SharedState, d as DevToolsNodeContext, f as DevToolsNodeRpcSession } from "../devframe-BXZUBuy6.mjs";
2
- import { n as InternalAnonymousAuthStorage } from "../context-BaX-SZti.mjs";
1
+ import { P as SharedState, d as DevToolsNodeContext, f as DevToolsNodeRpcSession } from "../devframe-DAfZWnpI.mjs";
2
+ import { n as InternalAnonymousAuthStorage } from "../context-BDpuScNZ.mjs";
3
3
 
4
4
  //#region src/node/auth/revoke.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-CWSPBbJH.mjs";
2
- import { t as humanId } from "../human-id-mPh1HcFO.mjs";
1
+ import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-DDa7VSJa.mjs";
2
+ import { humanId } from "../utils/human-id.mjs";
3
3
  //#region src/node/auth/state.ts
4
4
  let pendingAuth = null;
5
5
  let tempAuthToken = generateTempId();
@@ -1,8 +1,8 @@
1
- import { $ as AgentResourceContent, J as DevToolsDiagnosticsHost$1, K as DevToolsHost, P as SharedState, Q as AgentResource, U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, at as EventEmitter, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, it as DevToolsAgentHostEvents, m as RpcFunctionsHost$1, nt as AgentToolInput, p as RpcBroadcastOptions, rt as DevToolsAgentHost$1, tt as AgentTool, y as RpcStreamingHost, z as DevToolsViewHost$1 } from "../devframe-BXZUBuy6.mjs";
2
- import { S as RpcFunctionsCollectorBase } from "../index-BO4daMzR.mjs";
3
- import { _ as RpcFunctionDefinitionAny } from "../types-ip8THGH1.mjs";
4
- import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-kW8RZXTw.mjs";
5
- import { n as StartedServer, r as startHttpAndWs, t as StartHttpAndWsOptions } from "../server-CgqyJG9m.mjs";
1
+ import { $ as AgentResourceContent, J as DevToolsDiagnosticsHost$1, K as DevToolsHost, P as SharedState, Q as AgentResource, U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, at as EventEmitter, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, it as DevToolsAgentHostEvents, m as RpcFunctionsHost$1, nt as AgentToolInput, p as RpcBroadcastOptions, rt as DevToolsAgentHost$1, tt as AgentTool, y as RpcStreamingHost, z as DevToolsViewHost$1 } from "../devframe-DAfZWnpI.mjs";
2
+ import { S as RpcFunctionsCollectorBase } from "../index-BNAsgVNz.mjs";
3
+ import { _ as RpcFunctionDefinitionAny } from "../types-DmcujDa5.mjs";
4
+ import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-DKlqI8XP.mjs";
5
+ import { n as StartedServer, r as startHttpAndWs, t as StartHttpAndWsOptions } from "../server-BGSrxsQb.mjs";
6
6
  import { createLogger, defineDiagnostics } from "logs-sdk";
7
7
  import { BirpcGroup } from "birpc";
8
8
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1,6 +1,6 @@
1
- import { a as createRpcStreamingServerHost, c as DevToolsAgentHost, i as RpcFunctionsHost, n as createHostContext, o as createRpcSharedStateServerHost, r as DevToolsViewHost, s as DevToolsDiagnosticsHost, t as createH3DevToolsHost } from "../host-h3-CpYkiCIU.mjs";
2
- import { t as startHttpAndWs } from "../server-G1ymmN3_.mjs";
3
- import { t as createStorage } from "../storage-BaLJK6e_.mjs";
1
+ import { a as createRpcStreamingServerHost, c as DevToolsAgentHost, i as RpcFunctionsHost, n as createHostContext, o as createRpcSharedStateServerHost, r as DevToolsViewHost, s as DevToolsDiagnosticsHost, t as createH3DevToolsHost } from "../host-h3-DEfOpa0j.mjs";
2
+ import { t as startHttpAndWs } from "../server-BO8IDVsJ.mjs";
3
+ import { t as createStorage } from "../storage-D-jLaxDA.mjs";
4
4
  import { isIP } from "node:net";
5
5
  //#region src/node/utils.ts
6
6
  function isObject(value) {
@@ -1,5 +1,5 @@
1
- import { i as DevframeDeploymentKind, r as DevframeDefinition } from "../devframe-BXZUBuy6.mjs";
2
- import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevToolsInternalContext } from "../context-BaX-SZti.mjs";
1
+ import { i as DevframeDeploymentKind, r as DevframeDefinition } from "../devframe-DAfZWnpI.mjs";
2
+ import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevToolsInternalContext } from "../context-BDpuScNZ.mjs";
3
3
 
4
4
  //#region src/adapters/_shared.d.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { t as createStorage } from "../storage-BaLJK6e_.mjs";
2
- import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-CWSPBbJH.mjs";
3
- import { t as humanId } from "../human-id-mPh1HcFO.mjs";
4
- import { n as resolveBasePath, t as normalizeBasePath } from "../_shared-C_yZKUmx.mjs";
1
+ import { t as createStorage } from "../storage-D-jLaxDA.mjs";
2
+ import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-DDa7VSJa.mjs";
3
+ import { humanId } from "../utils/human-id.mjs";
4
+ import { n as resolveBasePath, t as normalizeBasePath } from "../_shared-CUFqO4kJ.mjs";
5
5
  import { join } from "pathe";
6
6
  //#region src/node/internal/context.ts
7
7
  const internalContextMap = /* @__PURE__ */ new WeakMap();
@@ -1,4 +1,4 @@
1
- import { T as Thenable, h as RpcFunctionAgentOptions, s as RpcDump, x as RpcFunctionSetupResult } from "../types-ip8THGH1.mjs";
1
+ import { T as Thenable, h as RpcFunctionAgentOptions, s as RpcDump, x as RpcFunctionSetupResult } from "../types-DmcujDa5.mjs";
2
2
  import * as v from "valibot";
3
3
 
4
4
  //#region src/recipes/open-helpers.d.ts
@@ -1,6 +1,6 @@
1
+ import { t as launchEditor } from "../launch-editor-BbNhtg7b.mjs";
1
2
  import { n as defineRpcFunction } from "../define-CW9gLnyG.mjs";
2
- import { t as launchEditor } from "../launch-editor-1dAC7Uk5.mjs";
3
- import { t as open } from "../open-CWL4Zasd.mjs";
3
+ import { t as open } from "../open-DiQn6zCH.mjs";
4
4
  import * as v from "valibot";
5
5
  //#region src/recipes/open-helpers.ts
6
6
  /**
@@ -1,3 +1,3 @@
1
- import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as createClientFromDump, a as getRpcHandler, b as createDefineWrapperWithContext, c as StaticRpcDumpFile, d as StaticRpcDumpManifestStaticEntry, f as StaticRpcDumpManifestValue, g as serializeDumpError, h as reviveDumpError, i as strictJsonStringify, l as StaticRpcDumpManifest, m as collectStaticRpcDump, n as validateDefinitions, o as getRpcResolvedSetupResult, p as StaticRpcDumpSerialization, r as STRUCTURED_CLONE_PREFIX, s as StaticRpcDumpCollection, t as validateDefinition, u as StaticRpcDumpManifestQueryEntry, v as dumpFunctions, w as RpcCacheOptions, x as defineRpcFunction, y as getDefinitionsWithDumps } from "../index-BO4daMzR.mjs";
2
- import { C as RpcFunctionsCollector, S as RpcFunctionType, T as Thenable, _ as RpcFunctionDefinitionAny, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionToFunction, c as RpcDumpClientOptions, d as RpcDumpGetter, f as RpcDumpRecord, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, r as EntriesToObject, s as RpcDump, t as BirpcFn, u as RpcDumpDefinition, v as RpcFunctionDefinitionAnyWithContext, w as RpcReturnSchema, x as RpcFunctionSetupResult, y as RpcFunctionDefinitionBase } from "../types-ip8THGH1.mjs";
1
+ import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as createClientFromDump, a as getRpcHandler, b as createDefineWrapperWithContext, c as StaticRpcDumpFile, d as StaticRpcDumpManifestStaticEntry, f as StaticRpcDumpManifestValue, g as serializeDumpError, h as reviveDumpError, i as strictJsonStringify, l as StaticRpcDumpManifest, m as collectStaticRpcDump, n as validateDefinitions, o as getRpcResolvedSetupResult, p as StaticRpcDumpSerialization, r as STRUCTURED_CLONE_PREFIX, s as StaticRpcDumpCollection, t as validateDefinition, u as StaticRpcDumpManifestQueryEntry, v as dumpFunctions, w as RpcCacheOptions, x as defineRpcFunction, y as getDefinitionsWithDumps } from "../index-BNAsgVNz.mjs";
2
+ import { C as RpcFunctionsCollector, S as RpcFunctionType, T as Thenable, _ as RpcFunctionDefinitionAny, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionToFunction, c as RpcDumpClientOptions, d as RpcDumpGetter, f as RpcDumpRecord, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, r as EntriesToObject, s as RpcDump, t as BirpcFn, u as RpcDumpDefinition, v as RpcFunctionDefinitionAnyWithContext, w as RpcReturnSchema, x as RpcFunctionSetupResult, y as RpcFunctionDefinitionBase } from "../types-DmcujDa5.mjs";
3
3
  export { BirpcFn, BirpcReturn, EntriesToObject, RpcArgsSchema, RpcCacheManager, RpcCacheOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcDump, RpcDumpClientOptions, RpcDumpCollectionOptions, RpcDumpDefinition, RpcDumpGetter, RpcDumpRecord, RpcDumpRecordError, RpcDumpStore, RpcFunctionAgentOptions, RpcFunctionDefinition, RpcFunctionDefinitionAny, RpcFunctionDefinitionAnyWithContext, RpcFunctionDefinitionBase, RpcFunctionDefinitionToFunction, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, StaticRpcDumpCollection, StaticRpcDumpFile, StaticRpcDumpManifest, StaticRpcDumpManifestQueryEntry, StaticRpcDumpManifestStaticEntry, StaticRpcDumpManifestValue, StaticRpcDumpSerialization, Thenable, collectStaticRpcDump, createClientFromDump, createDefineWrapperWithContext, defineRpcFunction, dumpFunctions, getDefinitionsWithDumps, getRpcHandler, getRpcResolvedSetupResult, reviveDumpError, serializeDumpError, strictJsonStringify, validateDefinition, validateDefinitions };
@@ -1,2 +1,2 @@
1
- import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-DFUf-xgm.mjs";
1
+ import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-CrLsflnY.mjs";
2
2
  export { WsRpcChannelOptions, createWsRpcChannel };
@@ -1,2 +1,2 @@
1
- import { n as WsRpcTransportOptions, r as attachWsRpcTransport, t as DevToolsNodeRpcSessionMeta } from "../../ws-server-kW8RZXTw.mjs";
1
+ import { n as WsRpcTransportOptions, r as attachWsRpcTransport, t as DevToolsNodeRpcSessionMeta } from "../../ws-server-DKlqI8XP.mjs";
2
2
  export { DevToolsNodeRpcSessionMeta, WsRpcTransportOptions, attachWsRpcTransport };
@@ -1,4 +1,4 @@
1
- import { U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, d as DevToolsNodeContext } from "./devframe-BXZUBuy6.mjs";
1
+ import { U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, d as DevToolsNodeContext } from "./devframe-DAfZWnpI.mjs";
2
2
  import { BirpcGroup } from "birpc";
3
3
  import { WebSocketServer } from "ws";
4
4
  import { H3 } from "h3";
@@ -1,5 +1,5 @@
1
- import { n as logger } from "./diagnostics-Cg9ycFIM.mjs";
2
- import { t as createSharedState } from "./shared-state-q9-1EOSX.mjs";
1
+ import { n as logger } from "./diagnostics-DNxVjo6X.mjs";
2
+ import { t as createSharedState } from "./shared-state-BJXkPxtf.mjs";
3
3
  import fs from "node:fs";
4
4
  import { dirname } from "pathe";
5
5
  //#region ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
@@ -1,4 +1,4 @@
1
- import { $ as AgentResourceContent, B as EntriesToObject, G as DevToolsRpcSharedStates, H as Thenable, J as DevToolsDiagnosticsHost, K as DevToolsHost, Q as AgentResource, U as DevToolsRpcClientFunctions, V as PartialWithoutId, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, _ as RpcStreamingChannel, a as DevframeRuntime, at as EventEmitter, c as defineDevframe, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, it as DevToolsAgentHostEvents, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, nt as AgentToolInput, o as DevframeSetupInfo, ot as EventUnsubscribe, p as RpcBroadcastOptions, q as DevToolsDiagnosticsDefinition, r as DevframeDefinition, rt as DevToolsAgentHost, s as DevframeSpaOptions, st as EventsMap, t as DevframeBrowserContext, tt as AgentTool, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, y as RpcStreamingHost, z as DevToolsViewHost } from "../devframe-BXZUBuy6.mjs";
2
- import { h as RpcFunctionAgentOptions } from "../types-ip8THGH1.mjs";
3
- import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-kW8RZXTw.mjs";
1
+ import { $ as AgentResourceContent, B as EntriesToObject, G as DevToolsRpcSharedStates, H as Thenable, J as DevToolsDiagnosticsHost, K as DevToolsHost, Q as AgentResource, U as DevToolsRpcClientFunctions, V as PartialWithoutId, W as DevToolsRpcServerFunctions, X as AgentHandle, Y as DevToolsDiagnosticsLogger, Z as AgentManifest, _ as RpcStreamingChannel, a as DevframeRuntime, at as EventEmitter, c as defineDevframe, d as DevToolsNodeContext, et as AgentResourceInput, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, it as DevToolsAgentHostEvents, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, nt as AgentToolInput, o as DevframeSetupInfo, ot as EventUnsubscribe, p as RpcBroadcastOptions, q as DevToolsDiagnosticsDefinition, r as DevframeDefinition, rt as DevToolsAgentHost, s as DevframeSpaOptions, st as EventsMap, t as DevframeBrowserContext, tt as AgentTool, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, y as RpcStreamingHost, z as DevToolsViewHost } from "../devframe-DAfZWnpI.mjs";
2
+ import { h as RpcFunctionAgentOptions } from "../types-DmcujDa5.mjs";
3
+ import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-DKlqI8XP.mjs";
4
4
  export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, ConnectionMeta, DevToolsAgentHost, DevToolsAgentHostEvents, DevToolsCapabilities, DevToolsDiagnosticsDefinition, DevToolsDiagnosticsHost, DevToolsDiagnosticsLogger, DevToolsHost, DevToolsNodeContext, DevToolsNodeRpcSession, DevToolsNodeRpcSessionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevToolsRpcSharedStates, DevToolsViewHost, DevframeBrowserContext, DevframeCliOptions, DevframeDefinition, DevframeDeploymentKind, DevframeRuntime, DevframeSetupInfo, DevframeSpaOptions, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, PartialWithoutId, RpcBroadcastOptions, RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, Thenable, defineDevframe };
@@ -1,2 +1,31 @@
1
- import { t as colors } from "../colors-DS7k8ljB.mjs";
1
+ //#region src/utils/colors.ts
2
+ function makeColor(open, close) {
3
+ const o = `\x1B[${open}m`;
4
+ const c = `\x1B[${close}m`;
5
+ return ((arg, ...values) => {
6
+ if (Array.isArray(arg) && "raw" in arg) {
7
+ const strings = arg;
8
+ let out = "";
9
+ for (let i = 0; i < strings.length; i++) {
10
+ out += strings[i];
11
+ if (i < values.length) out += String(values[i]);
12
+ }
13
+ return `${o}${out}${c}`;
14
+ }
15
+ return `${o}${String(arg)}${c}`;
16
+ });
17
+ }
18
+ const colors = {
19
+ blue: makeColor(34, 39),
20
+ cyan: makeColor(36, 39),
21
+ gray: makeColor(90, 39),
22
+ green: makeColor(32, 39),
23
+ red: makeColor(31, 39),
24
+ yellow: makeColor(33, 39),
25
+ bold: makeColor(1, 22),
26
+ dim: makeColor(2, 22),
27
+ reset: makeColor(0, 0),
28
+ underline: makeColor(4, 24)
29
+ };
30
+ //#endregion
2
31
  export { colors };
@@ -1,4 +1,4 @@
1
- import { at as EventEmitter, st as EventsMap } from "../devframe-BXZUBuy6.mjs";
1
+ import { at as EventEmitter, st as EventsMap } from "../devframe-DAfZWnpI.mjs";
2
2
 
3
3
  //#region src/utils/events.d.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  //#region src/utils/human-id.d.ts
2
2
  /**
3
3
  * Generate a human-readable, lowercase, dash-separated random ID
4
- * (e.g. `bright-orange-tiger`).
4
+ * (e.g. `bright-orange-tigers-jump`).
5
5
  */
6
6
  declare function humanId(): string;
7
7
  //#endregion