@agentconnect.md/daemon 1.0.0-rc.235 → 1.0.0-rc.236

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/index.js CHANGED
@@ -2,13 +2,12 @@
2
2
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-CE-6LUnI.js";
3
3
  import { n as init_esm$2, r as diag, t as esm_exports$2 } from "./esm-DrGCKNjx.js";
4
4
  import { t as require_src$31 } from "./src-DDtlVutj.js";
5
+ import { n as init_esm_shims, t as __dirname } from "./esm-shims-DxGcm4Hw.js";
5
6
  import { t as DAEMON_VERSION } from "./version-DGaRXjBK.js";
6
- import * as path$3 from "path";
7
+ import * as path$2 from "path";
7
8
  import * as fs$6 from "fs";
8
9
  import * as zlib$2 from "zlib";
9
10
  import { Readable } from "stream";
10
- import path from "node:path";
11
- import { fileURLToPath } from "node:url";
12
11
  //#region ../../node_modules/.pnpm/@opentelemetry+core@2.9.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js
13
12
  var require_suppress_tracing = /* @__PURE__ */ __commonJSMin(((exports) => {
14
13
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4549,9 +4548,9 @@ var require_instrumentation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4549
4548
  //#endregion
4550
4549
  //#region ../../node_modules/.pnpm/module-details-from-path@1.0.4/node_modules/module-details-from-path/index.js
4551
4550
  var require_module_details_from_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4552
- var sep$1 = __require("path").sep;
4551
+ var sep = __require("path").sep;
4553
4552
  module.exports = function(file) {
4554
- var segments = file.split(sep$1);
4553
+ var segments = file.split(sep);
4555
4554
  var index = segments.lastIndexOf("node_modules");
4556
4555
  if (index === -1) return;
4557
4556
  if (!segments[index + 1]) return;
@@ -4561,11 +4560,11 @@ var require_module_details_from_path = /* @__PURE__ */ __commonJSMin(((exports,
4561
4560
  var basedir = "";
4562
4561
  var lastBaseDirSegmentIndex = index + offset - 1;
4563
4562
  for (var i = 0; i <= lastBaseDirSegmentIndex; i++) if (i === lastBaseDirSegmentIndex) basedir += segments[i];
4564
- else basedir += segments[i] + sep$1;
4563
+ else basedir += segments[i] + sep;
4565
4564
  var path = "";
4566
4565
  var lastSegmentIndex = segments.length - 1;
4567
4566
  for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) if (i2 === lastSegmentIndex) path += segments[i2];
4568
- else path += segments[i2] + sep$1;
4567
+ else path += segments[i2] + sep;
4569
4568
  return {
4570
4569
  name,
4571
4570
  basedir,
@@ -4576,7 +4575,7 @@ var require_module_details_from_path = /* @__PURE__ */ __commonJSMin(((exports,
4576
4575
  //#endregion
4577
4576
  //#region ../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js
4578
4577
  var require_require_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4579
- const path$7 = __require("path");
4578
+ const path$6 = __require("path");
4580
4579
  const Module = __require("module");
4581
4580
  const debug = require_src$31()("require-in-the-middle");
4582
4581
  const moduleDetailsFromPath = require_module_details_from_path();
@@ -4707,7 +4706,7 @@ var require_require_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, mod
4707
4706
  }
4708
4707
  moduleName = filename;
4709
4708
  } else if (hasWhitelist === true && modules.includes(filename)) {
4710
- const parsedPath = path$7.parse(filename);
4709
+ const parsedPath = path$6.parse(filename);
4711
4710
  moduleName = parsedPath.name;
4712
4711
  basedir = parsedPath.dir;
4713
4712
  } else {
@@ -4742,7 +4741,7 @@ var require_require_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, mod
4742
4741
  return exports$10;
4743
4742
  }
4744
4743
  if (res !== filename) if (internals === true) {
4745
- moduleName = moduleName + path$7.sep + path$7.relative(basedir, filename);
4744
+ moduleName = moduleName + path$6.sep + path$6.relative(basedir, filename);
4746
4745
  debug("preparing to process require of internal file: %s", moduleName);
4747
4746
  } else {
4748
4747
  debug("ignoring require of non-main module file: %s", res);
@@ -4771,8 +4770,8 @@ var require_require_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, mod
4771
4770
  } else debug("process.getBuiltinModule unhook unsuccessful");
4772
4771
  };
4773
4772
  function resolveModuleName(stat) {
4774
- const normalizedPath = path$7.sep !== "/" ? stat.path.split(path$7.sep).join("/") : stat.path;
4775
- return path$7.posix.join(stat.name, normalizedPath).replace(normalize, "");
4773
+ const normalizedPath = path$6.sep !== "/" ? stat.path.split(path$6.sep).join("/") : stat.path;
4774
+ return path$6.posix.join(stat.name, normalizedPath).replace(normalize, "");
4776
4775
  }
4777
4776
  }));
4778
4777
  //#endregion
@@ -4850,7 +4849,7 @@ var require_RequireInTheMiddleSingleton = /* @__PURE__ */ __commonJSMin(((export
4850
4849
  Object.defineProperty(exports, "__esModule", { value: true });
4851
4850
  exports.RequireInTheMiddleSingleton = void 0;
4852
4851
  const require_in_the_middle_1 = require_require_in_the_middle();
4853
- const path$6 = __require("path");
4852
+ const path$5 = __require("path");
4854
4853
  const ModuleNameTrie_1 = require_ModuleNameTrie();
4855
4854
  /**
4856
4855
  * Whether Mocha is running in this process
@@ -4917,7 +4916,7 @@ var require_RequireInTheMiddleSingleton = /* @__PURE__ */ __commonJSMin(((export
4917
4916
  * @returns {string} Normalized module name or path
4918
4917
  */
4919
4918
  function normalizePathSeparators(moduleNameOrPath) {
4920
- return path$6.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path$6.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
4919
+ return path$5.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path$5.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
4921
4920
  }
4922
4921
  }));
4923
4922
  //#endregion
@@ -4968,9 +4967,9 @@ var require_register = /* @__PURE__ */ __commonJSMin(((exports) => {
4968
4967
  //#endregion
4969
4968
  //#region ../../node_modules/.pnpm/import-in-the-middle@3.3.0/node_modules/import-in-the-middle/index.js
4970
4969
  var require_import_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4971
- const path$5 = __require("path");
4970
+ const path$4 = __require("path");
4972
4971
  const moduleDetailsFromPath = require_module_details_from_path();
4973
- const { fileURLToPath: fileURLToPath$2 } = __require("url");
4972
+ const { fileURLToPath: fileURLToPath$1 } = __require("url");
4974
4973
  const { MessageChannel } = __require("worker_threads");
4975
4974
  let { isBuiltin } = __require("module");
4976
4975
  if (!isBuiltin) isBuiltin = () => true;
@@ -5093,7 +5092,7 @@ var require_import_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, modu
5093
5092
  const stackTraceLimit = Error.stackTraceLimit;
5094
5093
  Error.stackTraceLimit = 0;
5095
5094
  try {
5096
- filePath = fileURLToPath$2(name);
5095
+ filePath = fileURLToPath$1(name);
5097
5096
  name = filePath;
5098
5097
  } catch (e) {}
5099
5098
  Error.stackTraceLimit = stackTraceLimit;
@@ -5111,7 +5110,7 @@ var require_import_in_the_middle = /* @__PURE__ */ __commonJSMin(((exports, modu
5111
5110
  if (!baseDir) callHookFn(hookFn, namespace, name, baseDir);
5112
5111
  else if (baseDir.endsWith(specifiers.get(loadUrl)) || isTurbopackSpecifier(specifiers.get(loadUrl), baseDir)) callHookFn(hookFn, namespace, name, baseDir);
5113
5112
  else if (internals) {
5114
- const internalPath = name + path$5.sep + path$5.relative(baseDir, filePath);
5113
+ const internalPath = name + path$4.sep + path$4.relative(baseDir, filePath);
5115
5114
  callHookFn(hookFn, namespace, internalPath, baseDir);
5116
5115
  }
5117
5116
  } else if (matchArg === specifier) callHookFn(hookFn, namespace, specifier, baseDir);
@@ -5185,7 +5184,7 @@ var require_utils$10 = /* @__PURE__ */ __commonJSMin(((exports) => {
5185
5184
  var require_instrumentation = /* @__PURE__ */ __commonJSMin(((exports) => {
5186
5185
  Object.defineProperty(exports, "__esModule", { value: true });
5187
5186
  exports.InstrumentationBase = void 0;
5188
- const path$4 = __require("path");
5187
+ const path$3 = __require("path");
5189
5188
  const util_1$2 = __require("util");
5190
5189
  const semver_1 = require_semver();
5191
5190
  const shimmer_1 = require_shimmer();
@@ -5267,7 +5266,7 @@ var require_instrumentation = /* @__PURE__ */ __commonJSMin(((exports) => {
5267
5266
  }
5268
5267
  _extractPackageVersion(baseDir) {
5269
5268
  try {
5270
- const json = (0, fs_1.readFileSync)(path$4.join(baseDir, "package.json"), { encoding: "utf8" });
5269
+ const json = (0, fs_1.readFileSync)(path$3.join(baseDir, "package.json"), { encoding: "utf8" });
5271
5270
  const version = JSON.parse(json).version;
5272
5271
  return typeof version === "string" ? version : void 0;
5273
5272
  } catch {
@@ -5304,7 +5303,7 @@ var require_instrumentation = /* @__PURE__ */ __commonJSMin(((exports) => {
5304
5303
  return exports$5;
5305
5304
  }
5306
5305
  const files = module$2.files ?? [];
5307
- const normalizedName = path$4.normalize(name);
5306
+ const normalizedName = path$3.normalize(name);
5308
5307
  return files.filter((f) => f.name === normalizedName && isSupported(f.supportedVersions, version, module$2.includePrerelease)).reduce((patchedExports, file) => {
5309
5308
  file.moduleExports = patchedExports;
5310
5309
  if (this._enabled) {
@@ -5345,8 +5344,8 @@ var require_instrumentation = /* @__PURE__ */ __commonJSMin(((exports) => {
5345
5344
  this._warnOnPreloadedModules();
5346
5345
  for (const module$4 of this._modules) {
5347
5346
  const hookFn = (exports$6, name, baseDir) => {
5348
- if (!baseDir && path$4.isAbsolute(name)) {
5349
- const parsedPath = path$4.parse(name);
5347
+ if (!baseDir && path$3.isAbsolute(name)) {
5348
+ const parsedPath = path$3.parse(name);
5350
5349
  name = parsedPath.name;
5351
5350
  baseDir = parsedPath.dir;
5352
5351
  }
@@ -5355,7 +5354,7 @@ var require_instrumentation = /* @__PURE__ */ __commonJSMin(((exports) => {
5355
5354
  const onRequire = (exports$7, name, baseDir) => {
5356
5355
  return this._onRequire(module$4, exports$7, name, baseDir);
5357
5356
  };
5358
- const hook = path$4.isAbsolute(module$4.name) ? new require_in_the_middle_1.Hook([module$4.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module$4.name, onRequire);
5357
+ const hook = path$3.isAbsolute(module$4.name) ? new require_in_the_middle_1.Hook([module$4.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module$4.name, onRequire);
5359
5358
  this._hooks.push(hook);
5360
5359
  const esmHook = new import_in_the_middle_1.Hook([module$4.name], { internals: true }, hookFn);
5361
5360
  this._hooks.push(esmHook);
@@ -18453,7 +18452,7 @@ function readFileFromEnv(signalSpecificEnvVar, nonSignalSpecificEnvVar, warningM
18453
18452
  const nonSignalSpecificPath = (0, import_src$4.getStringFromEnv)(nonSignalSpecificEnvVar);
18454
18453
  const filePath = signalSpecificPath ?? nonSignalSpecificPath;
18455
18454
  if (filePath != null) try {
18456
- return fs$6.readFileSync(path$3.resolve(process.cwd(), filePath));
18455
+ return fs$6.readFileSync(path$2.resolve(process.cwd(), filePath));
18457
18456
  } catch {
18458
18457
  diag.warn(warningMessage);
18459
18458
  return;
@@ -20683,14 +20682,6 @@ var require_subchannel_address = /* @__PURE__ */ __commonJSMin(((exports) => {
20683
20682
  exports.EndpointMap = EndpointMap;
20684
20683
  }));
20685
20684
  //#endregion
20686
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_tsx@4.22.4_typescript@6.0.3/node_modules/tsdown/esm-shims.js
20687
- var getFilename, getDirname, __dirname;
20688
- var init_esm_shims = __esmMin((() => {
20689
- getFilename = () => fileURLToPath(import.meta.url);
20690
- getDirname = () => path.dirname(getFilename());
20691
- __dirname = /* @__PURE__ */ getDirname();
20692
- }));
20693
- //#endregion
20694
20685
  //#region ../../node_modules/.pnpm/@js-sdsl+ordered-map@4.4.2/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js
20695
20686
  var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
20696
20687
  Object.defineProperty(exports, "t", { value: true });
@@ -34217,14 +34208,14 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
34217
34208
  Object.defineProperty(exports, "__esModule", { value: true });
34218
34209
  exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0;
34219
34210
  const fs$4 = __require("fs");
34220
- const path$2 = __require("path");
34211
+ const path$1 = __require("path");
34221
34212
  const Protobuf = require_protobufjs();
34222
34213
  function addIncludePathResolver(root, includePaths) {
34223
34214
  const originalResolvePath = root.resolvePath;
34224
34215
  root.resolvePath = (origin, target) => {
34225
- if (path$2.isAbsolute(target)) return target;
34216
+ if (path$1.isAbsolute(target)) return target;
34226
34217
  for (const directory of includePaths) {
34227
- const fullPath = path$2.join(directory, target);
34218
+ const fullPath = path$1.join(directory, target);
34228
34219
  try {
34229
34220
  fs$4.accessSync(fullPath, fs$4.constants.R_OK);
34230
34221
  return fullPath;
@@ -43921,7 +43912,7 @@ var require_otlp_grpc_env_configuration = /* @__PURE__ */ __commonJSMin(((export
43921
43912
  const grpc_exporter_transport_1 = require_grpc_exporter_transport();
43922
43913
  const node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
43923
43914
  const fs$2 = __require("fs");
43924
- const path$1 = __require("path");
43915
+ const path = __require("path");
43925
43916
  const api_1 = (init_esm$2(), __toCommonJS(esm_exports$2));
43926
43917
  function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
43927
43918
  if (signalSpecific != null && signalSpecific !== "") return signalSpecific;
@@ -43978,7 +43969,7 @@ var require_otlp_grpc_env_configuration = /* @__PURE__ */ __commonJSMin(((export
43978
43969
  const nonSignalSpecificPath = process.env[nonSignalSpecificEnvVar]?.trim();
43979
43970
  const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
43980
43971
  if (filePath != null) try {
43981
- return fs$2.readFileSync(path$1.resolve(process.cwd(), filePath));
43972
+ return fs$2.readFileSync(path.resolve(process.cwd(), filePath));
43982
43973
  } catch {
43983
43974
  api_1.diag.warn(warningMessage);
43984
43975
  return;
@@ -68498,12 +68489,12 @@ function nonEmpty(value) {
68498
68489
  //#endregion
68499
68490
  //#region src/index.ts
68500
68491
  const telemetry = startDaemonOpenTelemetry({ serviceVersion: DAEMON_VERSION });
68501
- const [{ Command }, { fileURLToPath: fileURLToPath$1 }, { runChat }, { runLogin }, { runForeground }, { resolveController }, { acquireSingletonLock }, { resolveRoot }] = await Promise.all([
68492
+ const [{ Command }, { fileURLToPath }, { runChat }, { runLogin }, { runForeground }, { resolveController }, { acquireSingletonLock }, { resolveRoot }] = await Promise.all([
68502
68493
  import("./commander-B5QVEFzH.js"),
68503
68494
  import("node:url"),
68504
- import("./chat-ca2lVcnb.js"),
68505
- import("./login-UiyjTM47.js"),
68506
- import("./run-foreground-CSpqnnI0.js"),
68495
+ import("./chat-vW2um2DS.js"),
68496
+ import("./login-fEVCtx9V.js"),
68497
+ import("./run-foreground-zCnpcNs6.js"),
68507
68498
  import("./service-6w0WKhdx.js"),
68508
68499
  import("./lock-CA9Bm8_s.js"),
68509
68500
  import("./paths-CcRUjFjy.js")
@@ -68552,7 +68543,7 @@ program.command("run").description("Run the daemon in the foreground").action(as
68552
68543
  }
68553
68544
  });
68554
68545
  program.command("mcp-bridge", { hidden: true }).description("internal: stdio MCP bridge to the running daemon").action(async () => {
68555
- const { runBridge } = await import("./bridge-DXIVgEzf.js");
68546
+ const { runBridge } = await import("./bridge-e0ZVvjJV.js");
68556
68547
  await runBridge();
68557
68548
  });
68558
68549
  const controller = () => resolveController({ root: program.opts().root });
@@ -68564,7 +68555,7 @@ const requireInstalled = async (c) => {
68564
68555
  };
68565
68556
  const installArgs = () => ({
68566
68557
  execPath: process.execPath,
68567
- cliEntry: fileURLToPath$1(import.meta.url),
68558
+ cliEntry: fileURLToPath(import.meta.url),
68568
68559
  includeRootEnv: Boolean(program.opts().root)
68569
68560
  });
68570
68561
  const fail = async (cmd, err) => {
@@ -68646,7 +68637,7 @@ program.command("login").description("Interactive onboarding: test the Control P
68646
68637
  daemonId: opts.daemonId,
68647
68638
  root: opts.root,
68648
68639
  configPath: opts.config,
68649
- cliEntry: fileURLToPath$1(import.meta.url)
68640
+ cliEntry: fileURLToPath(import.meta.url)
68650
68641
  });
68651
68642
  return exit(0);
68652
68643
  } catch (err) {
@@ -68661,7 +68652,7 @@ program.command("git-credential").description("Git credential helper backed by t
68661
68652
  program.command("agent").description("Inspect local agent directories").command("list").description("List agents discovered under --agents-dir (id, status, runtime, name, dir)").action(async () => {
68662
68653
  const opts = program.opts();
68663
68654
  try {
68664
- const { runAgentList } = await import("./agent-list-BAjZvFsO.js");
68655
+ const { runAgentList } = await import("./agent-list-LnizWro3.js");
68665
68656
  await runAgentList({
68666
68657
  agentsDir: opts.agentsDir,
68667
68658
  configPath: opts.config,