@askexenow/exe-os 0.9.111 → 0.9.113
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/README.md +9 -7
- package/dist/bin/agentic-ontology-backfill.js +62 -12
- package/dist/bin/agentic-reflection-backfill.js +37 -2
- package/dist/bin/agentic-semantic-label.js +37 -2
- package/dist/bin/backfill-conversations.js +61 -11
- package/dist/bin/backfill-responses.js +62 -12
- package/dist/bin/backfill-vectors.js +37 -2
- package/dist/bin/bulk-sync-postgres.js +63 -13
- package/dist/bin/cleanup-stale-review-tasks.js +83 -16
- package/dist/bin/cli.js +312 -80
- package/dist/bin/exe-agent-config.js +7 -1
- package/dist/bin/exe-agent.js +29 -3
- package/dist/bin/exe-assign.js +62 -12
- package/dist/bin/exe-boot.js +500 -151
- package/dist/bin/exe-call.js +46 -5
- package/dist/bin/exe-cloud.js +101 -16
- package/dist/bin/exe-dispatch.js +827 -27
- package/dist/bin/exe-doctor.js +61 -11
- package/dist/bin/exe-export-behaviors.js +67 -14
- package/dist/bin/exe-forget.js +62 -12
- package/dist/bin/exe-gateway.js +147 -27
- package/dist/bin/exe-heartbeat.js +83 -16
- package/dist/bin/exe-kill.js +62 -12
- package/dist/bin/exe-launch-agent.js +83 -15
- package/dist/bin/exe-new-employee.js +176 -8
- package/dist/bin/exe-pending-messages.js +83 -16
- package/dist/bin/exe-pending-notifications.js +83 -16
- package/dist/bin/exe-pending-reviews.js +83 -16
- package/dist/bin/exe-rename.js +62 -12
- package/dist/bin/exe-review.js +62 -12
- package/dist/bin/exe-search.js +62 -12
- package/dist/bin/exe-session-cleanup.js +949 -149
- package/dist/bin/exe-settings.js +10 -4
- package/dist/bin/exe-start-codex.js +537 -248
- package/dist/bin/exe-start-opencode.js +547 -168
- package/dist/bin/exe-status.js +83 -16
- package/dist/bin/exe-support.js +1 -1
- package/dist/bin/exe-team.js +62 -12
- package/dist/bin/git-sweep.js +827 -27
- package/dist/bin/graph-backfill.js +62 -12
- package/dist/bin/graph-export.js +62 -12
- package/dist/bin/install.js +62 -4
- package/dist/bin/intercom-check.js +949 -149
- package/dist/bin/pre-publish.js +14 -2
- package/dist/bin/scan-tasks.js +827 -27
- package/dist/bin/setup.js +99 -14
- package/dist/bin/shard-migrate.js +62 -12
- package/dist/bin/stack-update.js +1 -1
- package/dist/bin/update.js +3 -3
- package/dist/gateway/index.js +586 -26
- package/dist/hooks/bug-report-worker.js +586 -26
- package/dist/hooks/codex-stop-task-finalizer.js +977 -143
- package/dist/hooks/commit-complete.js +827 -27
- package/dist/hooks/error-recall.js +62 -12
- package/dist/hooks/ingest.js +4579 -249
- package/dist/hooks/instructions-loaded.js +62 -12
- package/dist/hooks/notification.js +62 -12
- package/dist/hooks/post-compact.js +83 -16
- package/dist/hooks/post-tool-combined.js +83 -16
- package/dist/hooks/pre-compact.js +907 -107
- package/dist/hooks/pre-tool-use.js +98 -16
- package/dist/hooks/prompt-submit.js +596 -30
- package/dist/hooks/session-end.js +909 -112
- package/dist/hooks/session-start.js +112 -17
- package/dist/hooks/stop.js +82 -15
- package/dist/hooks/subagent-stop.js +83 -16
- package/dist/hooks/summary-worker.js +81 -8
- package/dist/index.js +595 -29
- package/dist/lib/agent-config.js +16 -1
- package/dist/lib/cloud-sync.js +45 -1
- package/dist/lib/consolidation.js +16 -1
- package/dist/lib/database.js +23 -0
- package/dist/lib/db.js +23 -0
- package/dist/lib/device-registry.js +23 -0
- package/dist/lib/employee-templates.js +30 -4
- package/dist/lib/employees.js +16 -1
- package/dist/lib/exe-daemon.js +482 -52
- package/dist/lib/hybrid-search.js +62 -12
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +21 -4
- package/dist/lib/schedules.js +37 -2
- package/dist/lib/skill-learning.js +910 -41
- package/dist/lib/status-brief.js +14 -1
- package/dist/lib/store.js +62 -12
- package/dist/lib/tasks.js +843 -93
- package/dist/lib/tmux-routing.js +766 -16
- package/dist/mcp/server.js +238 -41
- package/dist/mcp/tools/create-task.js +525 -15
- package/dist/mcp/tools/deactivate-behavior.js +33 -24
- package/dist/mcp/tools/list-tasks.js +21 -4
- package/dist/mcp/tools/send-message.js +21 -4
- package/dist/mcp/tools/update-task.js +840 -93
- package/dist/runtime/index.js +913 -107
- package/dist/tui/App.js +227 -58
- package/package.json +1 -1
|
@@ -2027,6 +2027,13 @@ async function ensureSchema() {
|
|
|
2027
2027
|
} catch (e) {
|
|
2028
2028
|
logCatchDebug("migration", e);
|
|
2029
2029
|
}
|
|
2030
|
+
for (const col of ["created_by_agent TEXT", "created_by_device TEXT", "source_session_id TEXT"]) {
|
|
2031
|
+
try {
|
|
2032
|
+
await client.execute({ sql: `ALTER TABLE behaviors ADD COLUMN ${col}`, args: [] });
|
|
2033
|
+
} catch (e) {
|
|
2034
|
+
logCatchDebug("migration", e);
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2030
2037
|
try {
|
|
2031
2038
|
await client.execute({
|
|
2032
2039
|
sql: `ALTER TABLE tasks ADD COLUMN blocked_by TEXT`,
|
|
@@ -3243,6 +3250,22 @@ async function ensureSchema() {
|
|
|
3243
3250
|
} catch (e) {
|
|
3244
3251
|
logCatchDebug("migration", e);
|
|
3245
3252
|
}
|
|
3253
|
+
try {
|
|
3254
|
+
await client.execute({
|
|
3255
|
+
sql: `ALTER TABLE memories ADD COLUMN visibility TEXT DEFAULT 'private'`,
|
|
3256
|
+
args: []
|
|
3257
|
+
});
|
|
3258
|
+
} catch (e) {
|
|
3259
|
+
logCatchDebug("migration", e);
|
|
3260
|
+
}
|
|
3261
|
+
try {
|
|
3262
|
+
await client.execute({
|
|
3263
|
+
sql: `ALTER TABLE memories ADD COLUMN strength REAL DEFAULT 1.0`,
|
|
3264
|
+
args: []
|
|
3265
|
+
});
|
|
3266
|
+
} catch (e) {
|
|
3267
|
+
logCatchDebug("migration", e);
|
|
3268
|
+
}
|
|
3246
3269
|
}
|
|
3247
3270
|
async function disposeDatabase() {
|
|
3248
3271
|
if (_walCheckpointTimer) {
|
|
@@ -4366,11 +4389,17 @@ var init_platform_procedures = __esm({
|
|
|
4366
4389
|
content: "Founder -> coordinator (the executive agent, internally routed as 'COO') -> CTO/CMO. CTO -> engineers. CMO -> content production. Never skip levels: the coordinator does not bypass managers for specialist work. Specialists report to their manager. If you need cross-team info, use ask_team_memory \u2014 don't read other agents' task folders. Each level owns dispatch downward and review upward."
|
|
4367
4390
|
},
|
|
4368
4391
|
{
|
|
4369
|
-
title: "
|
|
4392
|
+
title: "Orchestration phase guidance \u2014 recommend, never trap",
|
|
4370
4393
|
domain: "workflow",
|
|
4371
4394
|
priority: "p1",
|
|
4372
4395
|
content: "New customers start best in Phase 1: founder \u2194 coordinator/Chief of Staff, building company context. Suggest Phase 2 executives when domain work repeats; suggest Phase 3 parallel execution only when review/permission gates are ready. This is guidance, not a blocker: users may jump phases anytime. Never overwrite their phase, role titles, identities, or custom org design."
|
|
4373
4396
|
},
|
|
4397
|
+
{
|
|
4398
|
+
title: "Routing slot vs display title \u2014 internal 'coo' is plumbing, not your name",
|
|
4399
|
+
domain: "identity",
|
|
4400
|
+
priority: "p0",
|
|
4401
|
+
content: "These procedures reference 'COO' as a shorthand for the coordinator role. This is an INTERNAL routing slot used by exe-os code (chain-of-command checks, dispatch logic, session detection). It is NOT your display title. Your actual title comes from your identity file's `title:` field \u2014 that is what you use externally: introductions, sign-offs, team comms, and any user-facing text. If your identity says `title: AI Chief of Staff`, you are the AI Chief of Staff. The routing slot stays `role: coo` for code compatibility \u2014 never rename it, but also never introduce yourself as 'COO' unless your identity file explicitly says so. The founder chose your title; respect it."
|
|
4402
|
+
},
|
|
4374
4403
|
{
|
|
4375
4404
|
title: "Single dispatch path \u2014 create_task only",
|
|
4376
4405
|
domain: "workflow",
|
|
@@ -4404,6 +4433,12 @@ var init_platform_procedures = __esm({
|
|
|
4404
4433
|
priority: "p0",
|
|
4405
4434
|
content: "NEVER: (1) Access the database directly \u2014 it's SQLCipher encrypted, always fails. Use MCP tools only. (2) Manually spawn tmux sessions \u2014 create_task handles it. (3) Run git checkout main \u2014 agents work in worktrees. (4) Modify another agent's in-progress task. (5) Push to remote \u2014 the COO reviews and pushes. (6) Skip update_task(done) \u2014 it's the ONLY way your work gets reviewed. (7) Run git init."
|
|
4406
4435
|
},
|
|
4436
|
+
{
|
|
4437
|
+
title: "Destructive operations \u2014 mandatory reviewer gate",
|
|
4438
|
+
domain: "security",
|
|
4439
|
+
priority: "p0",
|
|
4440
|
+
content: "Before ANY destructive operation (delete, remove, overwrite, drop, reset, force-push, truncate), you MUST: (1) Have your full task spec accessible \u2014 if you cannot read it, STOP and report to your reviewer. Never improvise destructive actions. (2) Confirm with your reviewer (assigned_by or COO) before executing. (3) If the task spec explicitly authorizes the operation, proceed \u2014 but log it. Violation = immediate task failure. This applies to ALL agents regardless of role."
|
|
4441
|
+
},
|
|
4407
4442
|
{
|
|
4408
4443
|
title: "Customer patch triage \u2014 upstream bug vs customization",
|
|
4409
4444
|
domain: "support",
|
|
@@ -4555,7 +4590,7 @@ var init_platform_procedures = __esm({
|
|
|
4555
4590
|
title: "MCP tool dispatch \u2014 all tools use action parameter",
|
|
4556
4591
|
domain: "tool-use",
|
|
4557
4592
|
priority: "p0",
|
|
4558
|
-
content: 'exe-os MCP tools
|
|
4593
|
+
content: 'exe-os MCP tools use consolidated action-based dispatch by default (19 tools). Call domain tools with an action parameter: memory(action="recall"), task(action="create"), config(action="list_employees"), etc. Legacy mode (108 separate tools like recall_my_memory, create_task) is still available via EXE_MCP_TOOL_SURFACE=legacy but will be removed in a future version. If you see specific tool names, call them directly \u2014 both surfaces are identical. Consolidated is the default and recommended surface.'
|
|
4559
4594
|
},
|
|
4560
4595
|
{
|
|
4561
4596
|
title: "MCP tools \u2014 memory, decision, and search",
|
|
@@ -4689,10 +4724,24 @@ function stableId(memoryId, type, content) {
|
|
|
4689
4724
|
return createHash2("sha256").update(`${memoryId}:${type}:${content}`).digest("hex").slice(0, 32);
|
|
4690
4725
|
}
|
|
4691
4726
|
function cleanText(text) {
|
|
4692
|
-
|
|
4727
|
+
let cleaned = text.replace(
|
|
4728
|
+
/```(\w*)\n(.*?)(?:\n[\s\S]*?)```/g,
|
|
4729
|
+
(_m, lang, firstLine) => `[code${lang ? `:${lang}` : ""}] ${firstLine.trim()}`
|
|
4730
|
+
);
|
|
4731
|
+
cleaned = cleaned.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
|
|
4732
|
+
return cleaned;
|
|
4693
4733
|
}
|
|
4694
|
-
function
|
|
4695
|
-
|
|
4734
|
+
function splitSegments(text) {
|
|
4735
|
+
const cleaned = cleanText(text);
|
|
4736
|
+
const segments = cleaned.split(/(?<=[.!?:;])\s+|\n{2,}|(?<=\))\s+(?=[A-Z])|\s*[|│]\s*/).map((s) => s.trim()).filter((s) => s.length >= MIN_SEGMENT_CHARS && s.length <= MAX_SEGMENT_CHARS);
|
|
4737
|
+
if (segments.length === 0 && cleaned.length >= MIN_SEGMENT_CHARS) {
|
|
4738
|
+
const lines = cleaned.split(/\n+/).map((l) => l.trim()).filter((l) => l.length >= MIN_SEGMENT_CHARS && l.length <= MAX_SEGMENT_CHARS);
|
|
4739
|
+
if (lines.length > 0) return lines;
|
|
4740
|
+
if (cleaned.length >= MIN_SEGMENT_CHARS) {
|
|
4741
|
+
return [cleaned.slice(0, MAX_SEGMENT_CHARS)];
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4744
|
+
return segments;
|
|
4696
4745
|
}
|
|
4697
4746
|
function inferCardType(sentence, toolName) {
|
|
4698
4747
|
const lower = sentence.toLowerCase();
|
|
@@ -4724,12 +4773,12 @@ function predicateFor(type) {
|
|
|
4724
4773
|
}
|
|
4725
4774
|
}
|
|
4726
4775
|
function extractMemoryCards(row) {
|
|
4727
|
-
const
|
|
4776
|
+
const segments = splitSegments(row.raw_text);
|
|
4728
4777
|
const cards = [];
|
|
4729
|
-
for (const sentence of
|
|
4778
|
+
for (const sentence of segments) {
|
|
4730
4779
|
const type = inferCardType(sentence, row.tool_name);
|
|
4731
4780
|
const subject = extractSubject(sentence, row.agent_id);
|
|
4732
|
-
const content = sentence.length >
|
|
4781
|
+
const content = sentence.length > MAX_SEGMENT_CHARS ? `${sentence.slice(0, MAX_SEGMENT_CHARS - 1)}\u2026` : sentence;
|
|
4733
4782
|
cards.push({
|
|
4734
4783
|
id: stableId(row.id, type, content),
|
|
4735
4784
|
memory_id: row.id,
|
|
@@ -4825,13 +4874,14 @@ Source memory: ${String(row.source_ref ?? row.memory_id)}`,
|
|
|
4825
4874
|
last_accessed: String(row.timestamp)
|
|
4826
4875
|
}));
|
|
4827
4876
|
}
|
|
4828
|
-
var MAX_CARDS_PER_MEMORY,
|
|
4877
|
+
var MAX_CARDS_PER_MEMORY, MAX_SEGMENT_CHARS, MIN_SEGMENT_CHARS;
|
|
4829
4878
|
var init_memory_cards = __esm({
|
|
4830
4879
|
"src/lib/memory-cards.ts"() {
|
|
4831
4880
|
"use strict";
|
|
4832
4881
|
init_database();
|
|
4833
|
-
MAX_CARDS_PER_MEMORY =
|
|
4834
|
-
|
|
4882
|
+
MAX_CARDS_PER_MEMORY = 8;
|
|
4883
|
+
MAX_SEGMENT_CHARS = 500;
|
|
4884
|
+
MIN_SEGMENT_CHARS = 20;
|
|
4835
4885
|
}
|
|
4836
4886
|
});
|
|
4837
4887
|
|
|
@@ -7247,7 +7297,7 @@ async function hybridSearch(queryText, agentId, options) {
|
|
|
7247
7297
|
try {
|
|
7248
7298
|
const client = getClient();
|
|
7249
7299
|
void client.execute({
|
|
7250
|
-
sql: `UPDATE memories SET last_accessed = ?, retrieval_count = COALESCE(retrieval_count, 0) + 1 WHERE id IN (${placeholders})`,
|
|
7300
|
+
sql: `UPDATE memories SET last_accessed = ?, retrieval_count = COALESCE(retrieval_count, 0) + 1, strength = MIN(1.0, COALESCE(strength, 1.0) + 0.1) WHERE id IN (${placeholders})`,
|
|
7251
7301
|
args: [now, ...ids]
|
|
7252
7302
|
}).catch(() => {
|
|
7253
7303
|
});
|