@askexenow/exe-os 0.8.85 → 0.8.86

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/bin/cleanup-stale-review-tasks.js +57 -19
  2. package/dist/bin/cli.js +507 -337
  3. package/dist/bin/exe-agent-config.js +242 -0
  4. package/dist/bin/exe-agent.js +3 -3
  5. package/dist/bin/exe-boot.js +344 -346
  6. package/dist/bin/exe-dispatch.js +375 -250
  7. package/dist/bin/exe-forget.js +5 -1
  8. package/dist/bin/exe-gateway.js +260 -135
  9. package/dist/bin/exe-healthcheck.js +133 -1
  10. package/dist/bin/exe-heartbeat.js +72 -31
  11. package/dist/bin/exe-link.js +25 -2
  12. package/dist/bin/exe-new-employee.js +22 -0
  13. package/dist/bin/exe-pending-messages.js +55 -17
  14. package/dist/bin/exe-pending-reviews.js +57 -19
  15. package/dist/bin/exe-search.js +6 -2
  16. package/dist/bin/exe-session-cleanup.js +260 -135
  17. package/dist/bin/exe-start-codex.js +2598 -0
  18. package/dist/bin/exe-start.sh +15 -3
  19. package/dist/bin/exe-status.js +57 -19
  20. package/dist/bin/git-sweep.js +391 -266
  21. package/dist/bin/install.js +22 -0
  22. package/dist/bin/scan-tasks.js +394 -269
  23. package/dist/bin/setup.js +47 -2
  24. package/dist/gateway/index.js +257 -132
  25. package/dist/hooks/bug-report-worker.js +242 -117
  26. package/dist/hooks/commit-complete.js +389 -264
  27. package/dist/hooks/error-recall.js +6 -2
  28. package/dist/hooks/ingest-worker.js +314 -193
  29. package/dist/hooks/post-compact.js +84 -46
  30. package/dist/hooks/pre-compact.js +272 -147
  31. package/dist/hooks/pre-tool-use.js +104 -66
  32. package/dist/hooks/prompt-submit.js +126 -66
  33. package/dist/hooks/session-end.js +277 -152
  34. package/dist/hooks/session-start.js +70 -28
  35. package/dist/hooks/stop.js +90 -52
  36. package/dist/hooks/subagent-stop.js +84 -46
  37. package/dist/hooks/summary-worker.js +175 -114
  38. package/dist/index.js +296 -171
  39. package/dist/lib/agent-config.js +167 -0
  40. package/dist/lib/cloud-sync.js +25 -2
  41. package/dist/lib/exe-daemon.js +338 -213
  42. package/dist/lib/hybrid-search.js +7 -2
  43. package/dist/lib/messaging.js +95 -39
  44. package/dist/lib/runtime-table.js +16 -0
  45. package/dist/lib/session-wrappers.js +22 -0
  46. package/dist/lib/tasks.js +242 -117
  47. package/dist/lib/tmux-routing.js +314 -189
  48. package/dist/mcp/server.js +573 -274
  49. package/dist/mcp/tools/create-task.js +260 -135
  50. package/dist/mcp/tools/list-tasks.js +68 -30
  51. package/dist/mcp/tools/send-message.js +100 -44
  52. package/dist/mcp/tools/update-task.js +123 -67
  53. package/dist/runtime/index.js +276 -151
  54. package/dist/tui/App.js +479 -354
  55. package/package.json +1 -1
  56. package/src/commands/exe/agent-config.md +27 -0
  57. package/src/commands/exe/cc-doctor.md +10 -0
@@ -1931,39 +1931,75 @@ var init_provider_table = __esm({
1931
1931
  }
1932
1932
  });
1933
1933
 
1934
- // src/lib/intercom-queue.ts
1935
- import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, renameSync as renameSync3, existsSync as existsSync5, mkdirSync as mkdirSync2 } from "fs";
1934
+ // src/lib/runtime-table.ts
1935
+ var RUNTIME_TABLE;
1936
+ var init_runtime_table = __esm({
1937
+ "src/lib/runtime-table.ts"() {
1938
+ "use strict";
1939
+ RUNTIME_TABLE = {
1940
+ codex: {
1941
+ binary: "codex",
1942
+ launchMode: "exec",
1943
+ autoApproveFlag: "--full-auto",
1944
+ inlineFlag: "--no-alt-screen",
1945
+ apiKeyEnv: "OPENAI_API_KEY",
1946
+ defaultModel: "gpt-5.4"
1947
+ }
1948
+ };
1949
+ }
1950
+ });
1951
+
1952
+ // src/lib/agent-config.ts
1953
+ import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync as existsSync5, mkdirSync as mkdirSync2 } from "fs";
1936
1954
  import path6 from "path";
1955
+ var AGENT_CONFIG_PATH, DEFAULT_MODELS;
1956
+ var init_agent_config = __esm({
1957
+ "src/lib/agent-config.ts"() {
1958
+ "use strict";
1959
+ init_config();
1960
+ init_runtime_table();
1961
+ AGENT_CONFIG_PATH = path6.join(EXE_AI_DIR, "agent-config.json");
1962
+ DEFAULT_MODELS = {
1963
+ claude: "claude-opus-4",
1964
+ codex: RUNTIME_TABLE.codex?.defaultModel ?? "gpt-5.4",
1965
+ opencode: "minimax-m2.7"
1966
+ };
1967
+ }
1968
+ });
1969
+
1970
+ // src/lib/intercom-queue.ts
1971
+ import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, renameSync as renameSync3, existsSync as existsSync6, mkdirSync as mkdirSync3 } from "fs";
1972
+ import path7 from "path";
1937
1973
  import os5 from "os";
1938
1974
  var QUEUE_PATH, TTL_MS, INTERCOM_LOG;
1939
1975
  var init_intercom_queue = __esm({
1940
1976
  "src/lib/intercom-queue.ts"() {
1941
1977
  "use strict";
1942
- QUEUE_PATH = path6.join(os5.homedir(), ".exe-os", "intercom-queue.json");
1978
+ QUEUE_PATH = path7.join(os5.homedir(), ".exe-os", "intercom-queue.json");
1943
1979
  TTL_MS = 60 * 60 * 1e3;
1944
- INTERCOM_LOG = path6.join(os5.homedir(), ".exe-os", "intercom.log");
1980
+ INTERCOM_LOG = path7.join(os5.homedir(), ".exe-os", "intercom.log");
1945
1981
  }
1946
1982
  });
1947
1983
 
1948
1984
  // src/lib/license.ts
1949
- import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, existsSync as existsSync6, mkdirSync as mkdirSync3 } from "fs";
1985
+ import { readFileSync as readFileSync5, writeFileSync as writeFileSync4, existsSync as existsSync7, mkdirSync as mkdirSync4 } from "fs";
1950
1986
  import { randomUUID as randomUUID2 } from "crypto";
1951
- import path7 from "path";
1987
+ import path8 from "path";
1952
1988
  import { jwtVerify, importSPKI } from "jose";
1953
1989
  var LICENSE_PATH, CACHE_PATH, DEVICE_ID_PATH;
1954
1990
  var init_license = __esm({
1955
1991
  "src/lib/license.ts"() {
1956
1992
  "use strict";
1957
1993
  init_config();
1958
- LICENSE_PATH = path7.join(EXE_AI_DIR, "license.key");
1959
- CACHE_PATH = path7.join(EXE_AI_DIR, "license-cache.json");
1960
- DEVICE_ID_PATH = path7.join(EXE_AI_DIR, "device-id");
1994
+ LICENSE_PATH = path8.join(EXE_AI_DIR, "license.key");
1995
+ CACHE_PATH = path8.join(EXE_AI_DIR, "license-cache.json");
1996
+ DEVICE_ID_PATH = path8.join(EXE_AI_DIR, "device-id");
1961
1997
  }
1962
1998
  });
1963
1999
 
1964
2000
  // src/lib/plan-limits.ts
1965
- import { readFileSync as readFileSync5, existsSync as existsSync7 } from "fs";
1966
- import path8 from "path";
2001
+ import { readFileSync as readFileSync6, existsSync as existsSync8 } from "fs";
2002
+ import path9 from "path";
1967
2003
  var CACHE_PATH2;
1968
2004
  var init_plan_limits = __esm({
1969
2005
  "src/lib/plan-limits.ts"() {
@@ -1972,13 +2008,13 @@ var init_plan_limits = __esm({
1972
2008
  init_employees();
1973
2009
  init_license();
1974
2010
  init_config();
1975
- CACHE_PATH2 = path8.join(EXE_AI_DIR, "license-cache.json");
2011
+ CACHE_PATH2 = path9.join(EXE_AI_DIR, "license-cache.json");
1976
2012
  }
1977
2013
  });
1978
2014
 
1979
2015
  // src/lib/tmux-routing.ts
1980
- import { readFileSync as readFileSync6, writeFileSync as writeFileSync4, mkdirSync as mkdirSync4, existsSync as existsSync8, appendFileSync } from "fs";
1981
- import path9 from "path";
2016
+ import { readFileSync as readFileSync7, writeFileSync as writeFileSync5, mkdirSync as mkdirSync5, existsSync as existsSync9, appendFileSync } from "fs";
2017
+ import path10 from "path";
1982
2018
  import os6 from "os";
1983
2019
  import { fileURLToPath } from "url";
1984
2020
  function getMySession() {
@@ -1992,7 +2028,7 @@ function extractRootExe(name) {
1992
2028
  }
1993
2029
  function getParentExe(sessionKey) {
1994
2030
  try {
1995
- const data = JSON.parse(readFileSync6(path9.join(SESSION_CACHE, `parent-exe-${sessionKey}.json`), "utf8"));
2031
+ const data = JSON.parse(readFileSync7(path10.join(SESSION_CACHE, `parent-exe-${sessionKey}.json`), "utf8"));
1996
2032
  return data.parentExe || null;
1997
2033
  } catch {
1998
2034
  return null;
@@ -2021,13 +2057,15 @@ var init_tmux_routing = __esm({
2021
2057
  init_cc_agent_support();
2022
2058
  init_mcp_prefix();
2023
2059
  init_provider_table();
2060
+ init_agent_config();
2061
+ init_runtime_table();
2024
2062
  init_intercom_queue();
2025
2063
  init_plan_limits();
2026
2064
  init_employees();
2027
- SPAWN_LOCK_DIR = path9.join(os6.homedir(), ".exe-os", "spawn-locks");
2028
- SESSION_CACHE = path9.join(os6.homedir(), ".exe-os", "session-cache");
2029
- INTERCOM_LOG2 = path9.join(os6.homedir(), ".exe-os", "intercom.log");
2030
- DEBOUNCE_FILE = path9.join(SESSION_CACHE, "intercom-debounce.json");
2065
+ SPAWN_LOCK_DIR = path10.join(os6.homedir(), ".exe-os", "spawn-locks");
2066
+ SESSION_CACHE = path10.join(os6.homedir(), ".exe-os", "session-cache");
2067
+ INTERCOM_LOG2 = path10.join(os6.homedir(), ".exe-os", "intercom.log");
2068
+ DEBOUNCE_FILE = path10.join(SESSION_CACHE, "intercom-debounce.json");
2031
2069
  DEBOUNCE_CLEANUP_AGE_MS = 5 * 60 * 1e3;
2032
2070
  }
2033
2071
  });