heyio 4.0.1 → 4.0.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.
@@ -31151,7 +31151,7 @@ var require_view = __commonJS({
31151
31151
  var debug = require_src()("express:view");
31152
31152
  var path = __require("node:path");
31153
31153
  var fs = __require("node:fs");
31154
- var dirname8 = path.dirname;
31154
+ var dirname9 = path.dirname;
31155
31155
  var basename6 = path.basename;
31156
31156
  var extname4 = path.extname;
31157
31157
  var join14 = path.join;
@@ -31190,7 +31190,7 @@ var require_view = __commonJS({
31190
31190
  for (var i = 0; i < roots.length && !path2; i++) {
31191
31191
  var root = roots[i];
31192
31192
  var loc = resolve5(root, name);
31193
- var dir = dirname8(loc);
31193
+ var dir = dirname9(loc);
31194
31194
  var file2 = basename6(loc);
31195
31195
  path2 = this.resolve(dir, file2);
31196
31196
  }
@@ -59888,11 +59888,12 @@ var init_websocket = __esm({
59888
59888
  // packages/daemon/src/api/server.ts
59889
59889
  import { existsSync as existsSync2 } from "node:fs";
59890
59890
  import { createServer } from "node:http";
59891
- import { resolve as resolve2 } from "node:path";
59891
+ import { dirname as dirname4, resolve as resolve2 } from "node:path";
59892
+ import { fileURLToPath } from "node:url";
59892
59893
  function createApiServer(config2) {
59893
59894
  const app = (0, import_express10.default)();
59894
59895
  const server = createServer(app);
59895
- const webDirectory = resolve2(config2.webDir ?? resolve2(process.cwd(), "dist", "web"));
59896
+ const webDirectory = resolve2(config2.webDir ?? resolve2(__dirname2, "..", "web"));
59896
59897
  app.use((req, res, next) => {
59897
59898
  res.header("Access-Control-Allow-Origin", "*");
59898
59899
  res.header("Access-Control-Allow-Headers", "Authorization, Content-Type");
@@ -59962,7 +59963,7 @@ function createApiServer(config2) {
59962
59963
  }
59963
59964
  };
59964
59965
  }
59965
- var import_express10;
59966
+ var import_express10, __filename, __dirname2;
59966
59967
  var init_server = __esm({
59967
59968
  "packages/daemon/src/api/server.ts"() {
59968
59969
  "use strict";
@@ -59981,6 +59982,8 @@ var init_server = __esm({
59981
59982
  init_usage();
59982
59983
  init_wiki3();
59983
59984
  init_websocket();
59985
+ __filename = fileURLToPath(import.meta.url);
59986
+ __dirname2 = dirname4(__filename);
59984
59987
  }
59985
59988
  });
59986
59989
 
@@ -67383,7 +67386,7 @@ var init_session = __esm({
67383
67386
 
67384
67387
  // packages/daemon/src/skills/loader.ts
67385
67388
  import { readFile as readFile4, readdir as readdir2 } from "node:fs/promises";
67386
- import { basename as basename3, dirname as dirname4, join as join7 } from "node:path";
67389
+ import { basename as basename3, dirname as dirname5, join as join7 } from "node:path";
67387
67390
  async function scanSkills() {
67388
67391
  const skillFilePaths = await collectSkillFiles(SKILLS_DIR);
67389
67392
  const skills = await Promise.all(skillFilePaths.map((filePath) => readSkillFromFile(filePath)));
@@ -67414,7 +67417,7 @@ async function collectSkillFiles(directory) {
67414
67417
  async function readSkillFromFile(filePath) {
67415
67418
  const rawContent = await readFile4(filePath, "utf8");
67416
67419
  const parsed = (0, import_gray_matter2.default)(rawContent);
67417
- const skillId = basename3(dirname4(filePath));
67420
+ const skillId = basename3(dirname5(filePath));
67418
67421
  return {
67419
67422
  id: skillId,
67420
67423
  name: typeof parsed.data.name === "string" && parsed.data.name.trim() !== "" ? parsed.data.name : skillId,
@@ -67438,7 +67441,7 @@ var init_loader = __esm({
67438
67441
 
67439
67442
  // packages/daemon/src/skills/manager.ts
67440
67443
  import { mkdir as mkdir5, readFile as readFile5, rm as rm3, writeFile as writeFile4 } from "node:fs/promises";
67441
- import { basename as basename4, dirname as dirname5, join as join8 } from "node:path";
67444
+ import { basename as basename4, dirname as dirname6, join as join8 } from "node:path";
67442
67445
  async function installSkill2(url2) {
67443
67446
  const response = await fetch(url2);
67444
67447
  if (!response.ok) {
@@ -67492,7 +67495,7 @@ async function readSkillsLock() {
67492
67495
  }
67493
67496
  }
67494
67497
  async function writeSkillsLock2(lockFile) {
67495
- await mkdir5(dirname5(SKILLS_LOCK_PATH), { recursive: true });
67498
+ await mkdir5(dirname6(SKILLS_LOCK_PATH), { recursive: true });
67496
67499
  await writeFile4(SKILLS_LOCK_PATH, `${JSON.stringify(lockFile, null, 2)}
67497
67500
  `, "utf8");
67498
67501
  }
@@ -67584,7 +67587,7 @@ var init_skills2 = __esm({
67584
67587
  // packages/daemon/src/orchestrator/tools/coding.ts
67585
67588
  import { exec } from "node:child_process";
67586
67589
  import { mkdir as mkdir6, readFile as readFile6, readdir as readdir3, stat as stat2, writeFile as writeFile5 } from "node:fs/promises";
67587
- import { dirname as dirname6, relative as relative2, resolve as resolve3 } from "node:path";
67590
+ import { dirname as dirname7, relative as relative2, resolve as resolve3 } from "node:path";
67588
67591
  import { promisify } from "node:util";
67589
67592
  function resolveWorkspacePath(inputPath = ".") {
67590
67593
  const resolvedPath = resolve3(DEFAULT_ROOT, inputPath);
@@ -67693,7 +67696,7 @@ var init_coding = __esm({
67693
67696
  case "edit_file": {
67694
67697
  const { path, content } = editFileSchema.parse(rawArgs);
67695
67698
  const filePath = resolveWorkspacePath(path);
67696
- await mkdir6(dirname6(filePath), { recursive: true });
67699
+ await mkdir6(dirname7(filePath), { recursive: true });
67697
67700
  await writeFile5(filePath, content, "utf8");
67698
67701
  return { message: `Wrote ${filePath}.`, path: filePath };
67699
67702
  }
@@ -67714,7 +67717,7 @@ var init_coding = __esm({
67714
67717
  case "search_code": {
67715
67718
  const { pattern, path, glob } = searchCodeSchema.parse(rawArgs);
67716
67719
  const basePath = resolveWorkspacePath(path ?? ".");
67717
- const searchRoot = (await stat2(basePath)).isDirectory() ? basePath : dirname6(basePath);
67720
+ const searchRoot = (await stat2(basePath)).isDirectory() ? basePath : dirname7(basePath);
67718
67721
  const args = ["--line-number", "--no-heading", pattern, searchRoot];
67719
67722
  if (glob) {
67720
67723
  args.unshift("--glob", glob);
@@ -68075,7 +68078,7 @@ var init_history = __esm({
68075
68078
  // packages/daemon/src/execution/agent.ts
68076
68079
  import { exec as exec2 } from "node:child_process";
68077
68080
  import { mkdir as mkdir7, readFile as readFile7, readdir as readdir4, stat as stat3, writeFile as writeFile6 } from "node:fs/promises";
68078
- import { dirname as dirname7, extname as extname3, isAbsolute, join as join9, relative as relative3, resolve as resolve4 } from "node:path";
68081
+ import { dirname as dirname8, extname as extname3, isAbsolute, join as join9, relative as relative3, resolve as resolve4 } from "node:path";
68079
68082
  import { promisify as promisify2 } from "node:util";
68080
68083
  import {
68081
68084
  CopilotClient as CopilotClient2,
@@ -68190,7 +68193,7 @@ function createAgentToolSet(worktreePath) {
68190
68193
  skipPermission: true,
68191
68194
  handler: async (args) => {
68192
68195
  const targetPath = ensureWithinWorktree(worktreePath, args.path);
68193
- await mkdir7(dirname7(targetPath), { recursive: true });
68196
+ await mkdir7(dirname8(targetPath), { recursive: true });
68194
68197
  let nextContent = args.content ?? "";
68195
68198
  let previousContent = "";
68196
68199
  try {
@@ -27986,7 +27986,7 @@ var require_view = __commonJS({
27986
27986
  var debug = require_src()("express:view");
27987
27987
  var path = __require("node:path");
27988
27988
  var fs = __require("node:fs");
27989
- var dirname8 = path.dirname;
27989
+ var dirname9 = path.dirname;
27990
27990
  var basename6 = path.basename;
27991
27991
  var extname4 = path.extname;
27992
27992
  var join14 = path.join;
@@ -28025,7 +28025,7 @@ var require_view = __commonJS({
28025
28025
  for (var i = 0; i < roots.length && !path2; i++) {
28026
28026
  var root = roots[i];
28027
28027
  var loc = resolve5(root, name);
28028
- var dir = dirname8(loc);
28028
+ var dir = dirname9(loc);
28029
28029
  var file2 = basename6(loc);
28030
28030
  path2 = this.resolve(dir, file2);
28031
28031
  }
@@ -63017,7 +63017,8 @@ async function createNotificationItemIfMissing(eventBus2, payload, type, title,
63017
63017
  // packages/daemon/src/api/server.ts
63018
63018
  import { existsSync as existsSync2 } from "node:fs";
63019
63019
  import { createServer } from "node:http";
63020
- import { resolve as resolve2 } from "node:path";
63020
+ import { dirname as dirname4, resolve as resolve2 } from "node:path";
63021
+ import { fileURLToPath } from "node:url";
63021
63022
  var import_express10 = __toESM(require_express2(), 1);
63022
63023
 
63023
63024
  // packages/daemon/src/api/routes/activity.ts
@@ -78976,10 +78977,12 @@ function send(socket, type, payload, channel) {
78976
78977
  }
78977
78978
 
78978
78979
  // packages/daemon/src/api/server.ts
78980
+ var __filename = fileURLToPath(import.meta.url);
78981
+ var __dirname2 = dirname4(__filename);
78979
78982
  function createApiServer(config2) {
78980
78983
  const app = (0, import_express10.default)();
78981
78984
  const server = createServer(app);
78982
- const webDirectory = resolve2(config2.webDir ?? resolve2(process.cwd(), "dist", "web"));
78985
+ const webDirectory = resolve2(config2.webDir ?? resolve2(__dirname2, "..", "web"));
78983
78986
  app.use((req, res, next) => {
78984
78987
  res.header("Access-Control-Allow-Origin", "*");
78985
78988
  res.header("Access-Control-Allow-Headers", "Authorization, Content-Type");
@@ -79568,7 +79571,7 @@ async function sendMessage(session, message2, onChunk) {
79568
79571
  // packages/daemon/src/skills/loader.ts
79569
79572
  var import_gray_matter2 = __toESM(require_gray_matter(), 1);
79570
79573
  import { readFile as readFile4, readdir as readdir2 } from "node:fs/promises";
79571
- import { basename as basename3, dirname as dirname4, join as join7 } from "node:path";
79574
+ import { basename as basename3, dirname as dirname5, join as join7 } from "node:path";
79572
79575
  async function scanSkills() {
79573
79576
  const skillFilePaths = await collectSkillFiles(SKILLS_DIR);
79574
79577
  const skills = await Promise.all(skillFilePaths.map((filePath) => readSkillFromFile(filePath)));
@@ -79599,7 +79602,7 @@ async function collectSkillFiles(directory) {
79599
79602
  async function readSkillFromFile(filePath) {
79600
79603
  const rawContent = await readFile4(filePath, "utf8");
79601
79604
  const parsed = (0, import_gray_matter2.default)(rawContent);
79602
- const skillId = basename3(dirname4(filePath));
79605
+ const skillId = basename3(dirname5(filePath));
79603
79606
  return {
79604
79607
  id: skillId,
79605
79608
  name: typeof parsed.data.name === "string" && parsed.data.name.trim() !== "" ? parsed.data.name : skillId,
@@ -79616,7 +79619,7 @@ function isMissingFileError4(error51) {
79616
79619
  // packages/daemon/src/skills/manager.ts
79617
79620
  var import_gray_matter3 = __toESM(require_gray_matter(), 1);
79618
79621
  import { mkdir as mkdir5, readFile as readFile5, rm as rm3, writeFile as writeFile4 } from "node:fs/promises";
79619
- import { basename as basename4, dirname as dirname5, join as join8 } from "node:path";
79622
+ import { basename as basename4, dirname as dirname6, join as join8 } from "node:path";
79620
79623
  async function installSkill2(url2) {
79621
79624
  const response = await fetch(url2);
79622
79625
  if (!response.ok) {
@@ -79670,7 +79673,7 @@ async function readSkillsLock() {
79670
79673
  }
79671
79674
  }
79672
79675
  async function writeSkillsLock2(lockFile) {
79673
- await mkdir5(dirname5(SKILLS_LOCK_PATH), { recursive: true });
79676
+ await mkdir5(dirname6(SKILLS_LOCK_PATH), { recursive: true });
79674
79677
  await writeFile4(SKILLS_LOCK_PATH, `${JSON.stringify(lockFile, null, 2)}
79675
79678
  `, "utf8");
79676
79679
  }
@@ -79739,7 +79742,7 @@ function getSkillsForActivation(skills, userMessage) {
79739
79742
  // packages/daemon/src/orchestrator/tools/coding.ts
79740
79743
  import { exec } from "node:child_process";
79741
79744
  import { mkdir as mkdir6, readFile as readFile6, readdir as readdir3, stat as stat2, writeFile as writeFile5 } from "node:fs/promises";
79742
- import { dirname as dirname6, relative as relative2, resolve as resolve3 } from "node:path";
79745
+ import { dirname as dirname7, relative as relative2, resolve as resolve3 } from "node:path";
79743
79746
  import { promisify } from "node:util";
79744
79747
  var execAsync = promisify(exec);
79745
79748
  var DEFAULT_ROOT = process.cwd();
@@ -79843,7 +79846,7 @@ var executeCodingToolCall = async (toolName, rawArgs) => {
79843
79846
  case "edit_file": {
79844
79847
  const { path, content } = editFileSchema.parse(rawArgs);
79845
79848
  const filePath = resolveWorkspacePath(path);
79846
- await mkdir6(dirname6(filePath), { recursive: true });
79849
+ await mkdir6(dirname7(filePath), { recursive: true });
79847
79850
  await writeFile5(filePath, content, "utf8");
79848
79851
  return { message: `Wrote ${filePath}.`, path: filePath };
79849
79852
  }
@@ -79864,7 +79867,7 @@ var executeCodingToolCall = async (toolName, rawArgs) => {
79864
79867
  case "search_code": {
79865
79868
  const { pattern, path, glob } = searchCodeSchema.parse(rawArgs);
79866
79869
  const basePath = resolveWorkspacePath(path ?? ".");
79867
- const searchRoot = (await stat2(basePath)).isDirectory() ? basePath : dirname6(basePath);
79870
+ const searchRoot = (await stat2(basePath)).isDirectory() ? basePath : dirname7(basePath);
79868
79871
  const args = ["--line-number", "--no-heading", pattern, searchRoot];
79869
79872
  if (glob) {
79870
79873
  args.unshift("--glob", glob);
@@ -80162,7 +80165,7 @@ async function isSquadAvailable(squadId) {
80162
80165
  // packages/daemon/src/execution/agent.ts
80163
80166
  import { exec as exec2 } from "node:child_process";
80164
80167
  import { mkdir as mkdir7, readFile as readFile7, readdir as readdir4, stat as stat3, writeFile as writeFile6 } from "node:fs/promises";
80165
- import { dirname as dirname7, extname as extname3, isAbsolute, join as join9, relative as relative3, resolve as resolve4 } from "node:path";
80168
+ import { dirname as dirname8, extname as extname3, isAbsolute, join as join9, relative as relative3, resolve as resolve4 } from "node:path";
80166
80169
  import { promisify as promisify2 } from "node:util";
80167
80170
  import {
80168
80171
  CopilotClient as CopilotClient2,
@@ -80307,7 +80310,7 @@ function createAgentToolSet(worktreePath) {
80307
80310
  skipPermission: true,
80308
80311
  handler: async (args) => {
80309
80312
  const targetPath = ensureWithinWorktree(worktreePath, args.path);
80310
- await mkdir7(dirname7(targetPath), { recursive: true });
80313
+ await mkdir7(dirname8(targetPath), { recursive: true });
80311
80314
  let nextContent = args.content ?? "";
80312
80315
  let previousContent = "";
80313
80316
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyio",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "AI orchestrator daemon with squad-based team delegation",
5
5
  "type": "module",
6
6
  "license": "MIT",