@askexenow/exe-os 0.9.159 → 0.9.161
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/{active-agent-XAA2YRRH.js → active-agent-SLC7NBGT.js} +2 -2
- package/dist/{active-agent-JCODH6ZT.js → active-agent-UKVJCFEF.js} +2 -2
- package/dist/{agentic-ontology-5EIAHTR4.js → agentic-ontology-F4B4DH7M.js} +1 -1
- package/dist/{backfill-metadata-2JEFIROE.js → backfill-metadata-SMFH4EJX.js} +3 -3
- package/dist/{behaviors-IFNDKKZG.js → behaviors-6CNOKKLR.js} +2 -2
- package/dist/bin/agentic-ontology-backfill.js +4 -4
- package/dist/bin/agentic-reflection-backfill.js +5 -5
- package/dist/bin/agentic-semantic-label.js +4 -4
- package/dist/bin/backfill-conversations.js +5 -5
- package/dist/bin/backfill-responses.js +5 -5
- package/dist/bin/backfill-vectors.js +6 -6
- package/dist/bin/bulk-sync-postgres.js +5 -5
- package/dist/bin/cleanup-stale-review-tasks.js +5 -5
- package/dist/bin/cli.js +13 -13
- package/dist/bin/customer-readiness.js +3 -3
- package/dist/bin/deferred-daemon-restart.js +102 -0
- package/dist/bin/exe-agent-config.js +1 -1
- package/dist/bin/exe-agent.js +7 -7
- package/dist/bin/exe-assign.js +7 -7
- package/dist/bin/exe-boot.js +12 -12
- package/dist/bin/exe-call.js +3 -3
- package/dist/bin/exe-cloud.js +3 -3
- package/dist/bin/exe-dispatch.js +5 -5
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +6 -6
- package/dist/bin/exe-forget.js +5 -5
- package/dist/bin/exe-gateway.js +5 -5
- package/dist/bin/exe-heartbeat.js +5 -5
- package/dist/bin/exe-kill.js +8 -8
- package/dist/bin/exe-launch-agent.js +24 -9
- package/dist/bin/exe-new-employee.js +5 -5
- package/dist/bin/exe-pending-messages.js +6 -6
- package/dist/bin/exe-pending-notifications.js +5 -5
- package/dist/bin/exe-pending-reviews.js +5 -5
- package/dist/bin/exe-rename.js +3 -3
- package/dist/bin/exe-review.js +7 -7
- package/dist/bin/exe-search.js +4 -4
- package/dist/bin/exe-session-cleanup.js +9 -9
- package/dist/bin/exe-settings.js +3 -3
- package/dist/bin/exe-start-codex.js +10 -10
- package/dist/bin/exe-start-opencode.js +7 -7
- package/dist/bin/exe-status.js +6 -6
- package/dist/bin/exe-team.js +2 -2
- package/dist/bin/git-sweep.js +5 -5
- package/dist/bin/graph-backfill.js +3 -3
- package/dist/bin/graph-export.js +4 -4
- package/dist/bin/install.js +70 -207
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/scan-tasks.js +5 -5
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +3 -3
- package/dist/{capacity-monitor-MSQGHO27.js → capacity-monitor-ORRMNHT5.js} +6 -6
- package/dist/{catchup-brief-TSMPWHXT.js → catchup-brief-MTPBB3KF.js} +7 -7
- package/dist/{chunk-VKCFXOWQ.js → chunk-2UO3QD7V.js} +1 -1
- package/dist/{chunk-KUEUXXO4.js → chunk-3U3UYYKE.js} +2 -2
- package/dist/{chunk-XFA26MHB.js → chunk-5G7BZIY3.js} +1 -1
- package/dist/{chunk-UHAED3MM.js → chunk-5OD3AFRW.js} +1 -1
- package/dist/{chunk-7WXL6XVN.js → chunk-5RWZNONS.js} +8 -8
- package/dist/{chunk-GP436PAK.js → chunk-72IIQLQ6.js} +1 -1
- package/dist/{chunk-HI5LPCAS.js → chunk-7OTFGJDW.js} +1 -1
- package/dist/{chunk-AGBFY64D.js → chunk-7RD4YGGJ.js} +1 -1
- package/dist/{chunk-BQMG77YQ.js → chunk-7SGJUQBZ.js} +1 -1
- package/dist/{chunk-SNTCGJAE.js → chunk-7X7HKWH7.js} +36 -15
- package/dist/{chunk-FVQ7BELN.js → chunk-A7HLWPKK.js} +2 -2
- package/dist/{chunk-37KXWPTL.js → chunk-A7SYUJ2W.js} +2 -2
- package/dist/{chunk-IKDK7NXN.js → chunk-BZYHF63H.js} +377 -30
- package/dist/{chunk-IJXYCSUR.js → chunk-CUQGNC3J.js} +2 -2
- package/dist/{chunk-GHB33FOB.js → chunk-D34YDPQA.js} +2 -2
- package/dist/{chunk-5HVWTVZI.js → chunk-DIRYKGUR.js} +3 -3
- package/dist/{chunk-CCOSYMVU.js → chunk-DQMGSEAJ.js} +1 -1
- package/dist/{chunk-PZWRXJBJ.js → chunk-E7HUZQ4W.js} +1 -1
- package/dist/{chunk-TLTQGQCX.js → chunk-FEP36D2I.js} +1 -1
- package/dist/{chunk-BOAP6EJD.js → chunk-FPBEJ2JV.js} +6 -6
- package/dist/{chunk-COUXA2IQ.js → chunk-FRH7EY2Z.js} +1 -1
- package/dist/{chunk-56N5BCXQ.js → chunk-G4FDG3LK.js} +3 -3
- package/dist/{chunk-ARTF7DMV.js → chunk-GFEXQ4NU.js} +2 -2
- package/dist/{chunk-CSTCUDVM.js → chunk-H3KFLVPW.js} +6 -6
- package/dist/{chunk-PQFTZDR4.js → chunk-HWVG6QXM.js} +1 -1
- package/dist/{chunk-SCZJGD2G.js → chunk-I3MRITK2.js} +1 -1
- package/dist/{chunk-H4FB7LB4.js → chunk-I67W2JMW.js} +1 -1
- package/dist/{chunk-NABY2RI6.js → chunk-IH6TK5HJ.js} +2 -2
- package/dist/{chunk-D5PHT3JX.js → chunk-J2Y7UEXH.js} +3 -3
- package/dist/{chunk-SI7P22A5.js → chunk-JKMM7UZH.js} +2 -2
- package/dist/{chunk-PWNIKVDA.js → chunk-KOJIL4NH.js} +1 -1
- package/dist/{chunk-NV3WVFZ2.js → chunk-KOO56JVC.js} +1 -1
- package/dist/{chunk-ACRIYPBC.js → chunk-KZ4AAXWM.js} +6 -6
- package/dist/{chunk-CQFBWHQT.js → chunk-LHLEFNFW.js} +1 -1
- package/dist/{chunk-2PI3WQ47.js → chunk-LJS2OZKR.js} +3 -3
- package/dist/{chunk-F6LDN5XB.js → chunk-MPCICOVG.js} +4 -4
- package/dist/{chunk-3J4AJLED.js → chunk-N27BYKRB.js} +5 -5
- package/dist/{chunk-VLQKYNIO.js → chunk-NOY424XX.js} +3 -3
- package/dist/{chunk-SPG7BS6Y.js → chunk-NP55D5Q6.js} +205 -105
- package/dist/{chunk-RUOLDPIR.js → chunk-O4HT7CKC.js} +1 -1
- package/dist/{chunk-SZERVMKQ.js → chunk-ODN7E7HJ.js} +1 -1
- package/dist/{chunk-TYOB34ZF.js → chunk-OSG4O5TU.js} +1 -1
- package/dist/{chunk-VUBQUWJH.js → chunk-PGXG2JUF.js} +1 -1
- package/dist/{chunk-3H4VU65X.js → chunk-PWMMIGVQ.js} +124 -1
- package/dist/{chunk-EWNH5O2J.js → chunk-QK5MFN77.js} +1 -1
- package/dist/{chunk-EEH5SNIW.js → chunk-S3R2FC6P.js} +3 -3
- package/dist/{chunk-OYQHH5SX.js → chunk-SARHW2CG.js} +109 -58
- package/dist/{chunk-2TKJQR7H.js → chunk-U2KFQTM5.js} +1 -1
- package/dist/{chunk-RSNIF5FB.js → chunk-UXEDBUVW.js} +5 -5
- package/dist/{chunk-7WZXLY52.js → chunk-WY2QFHBB.js} +1 -1
- package/dist/{chunk-VV6X2DRX.js → chunk-YL36L2SN.js} +1 -1
- package/dist/{chunk-RJTIEXYH.js → chunk-Z5OGXSXA.js} +2 -2
- package/dist/{chunk-5ICBFFSQ.js → chunk-Z734KCEG.js} +1 -1
- package/dist/{code-context-index-MPDSDOEL.js → code-context-index-B6VIWPSF.js} +3 -3
- package/dist/{conversation-wiki-populator-HVROKOEU.js → conversation-wiki-populator-YMNIDI4F.js} +1 -1
- package/dist/{crdt-sync-4PA3L6CQ.js → crdt-sync-6BT3YLUU.js} +1 -1
- package/dist/{crm-webhook-5RIOZV43.js → crm-webhook-YVGNLWJH.js} +2 -2
- package/dist/{cto-delegation-gate-WPYOYKCC.js → cto-delegation-gate-ACVGMP5V.js} +4 -4
- package/dist/{daemon-orchestration-WZ3ITBAJ.js → daemon-orchestration-47D3OQQV.js} +21 -7
- package/dist/{exe-drift-6U5ENBOQ.js → exe-drift-ZVZDRDN6.js} +2 -2
- package/dist/{exe-export-CJFBFOBQ.js → exe-export-E6SXUIOV.js} +4 -4
- package/dist/{exe-import-HWP2FOVB.js → exe-import-2ESJXCG6.js} +4 -4
- package/dist/{exe-key-S3Q3Q2LE.js → exe-key-FSNRXDEN.js} +1 -1
- package/dist/{fast-db-init-43JVJVVH.js → fast-db-init-FLMQJFDI.js} +1 -1
- package/dist/gateway/index.js +9 -9
- package/dist/{git-staleness-7PVIPSJZ.js → git-staleness-QSOOMGX3.js} +1 -1
- package/dist/{git-task-sweep-GXSLBPEQ.js → git-task-sweep-A4N5VNCJ.js} +5 -5
- package/dist/{global-procedures-3HLEPJTB.js → global-procedures-A2YYQL6Q.js} +2 -2
- package/dist/{graph-auto-extract-3TBVEMSM.js → graph-auto-extract-WKBJY3NQ.js} +1 -1
- package/dist/hooks/bug-report-worker.js +6 -6
- package/dist/hooks/codex-stop-task-finalizer.js +6 -6
- package/dist/hooks/commit-complete.js +35 -10
- package/dist/hooks/error-recall.js +5 -5
- package/dist/hooks/exe-heartbeat-hook.js +2 -2
- package/dist/hooks/ingest-worker.js +3 -3
- package/dist/hooks/ingest.js +5 -5
- package/dist/hooks/instructions-loaded.js +3 -3
- package/dist/hooks/notification.js +3 -3
- package/dist/hooks/post-compact.js +6 -6
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +10 -10
- package/dist/hooks/pre-tool-use.js +10 -10
- package/dist/hooks/prompt-submit.js +16 -16
- package/dist/hooks/session-end.js +15 -15
- package/dist/hooks/session-start.js +6 -6
- package/dist/hooks/stop.js +13 -13
- package/dist/hooks/subagent-stop.js +6 -6
- package/dist/hooks/summary-worker.js +13 -13
- package/dist/index.js +14 -14
- package/dist/{installer-ZRARTRW6.js → installer-77L2ACSQ.js} +4 -4
- package/dist/{installer-BX3C5MT7.js → installer-IITLB3YS.js} +4 -4
- package/dist/{installer-STP2Z37F.js → installer-NZGIE6L4.js} +4 -4
- package/dist/lib/cloud-sync.js +3 -3
- package/dist/lib/consolidation.js +4 -4
- package/dist/lib/database.js +1 -1
- package/dist/lib/db-daemon-client.js +2 -2
- package/dist/lib/db.js +1 -1
- package/dist/lib/embedder.js +3 -3
- package/dist/lib/employee-templates.js +3 -3
- package/dist/lib/employees.js +1 -1
- package/dist/lib/exe-daemon-client.js +2 -2
- package/dist/lib/exe-daemon.js +79 -26
- package/dist/lib/hybrid-search.js +4 -4
- package/dist/lib/identity.js +1 -1
- package/dist/lib/messaging.js +5 -5
- package/dist/lib/reminders.js +2 -2
- package/dist/lib/schedules.js +4 -4
- package/dist/lib/skill-learning.js +3 -3
- package/dist/lib/store.js +3 -3
- package/dist/lib/task-router.js +2 -2
- package/dist/lib/tasks.js +5 -5
- package/dist/lib/tmux-routing.js +4 -4
- package/dist/lib/token-spend.js +2 -2
- package/dist/mcp/register-tools.js +46 -46
- package/dist/mcp/server.js +47 -47
- package/dist/mcp/tools/complete-reminder.js +3 -3
- package/dist/mcp/tools/create-reminder.js +3 -3
- package/dist/mcp/tools/create-task.js +7 -7
- package/dist/mcp/tools/deactivate-behavior.js +4 -4
- package/dist/mcp/tools/list-reminders.js +3 -3
- package/dist/mcp/tools/list-tasks.js +7 -7
- package/dist/mcp/tools/send-message.js +7 -7
- package/dist/mcp/tools/update-task.js +6 -6
- package/dist/{mcp-http-config-F7K3FSWG.js → mcp-http-config-GU7ANGPH.js} +2 -2
- package/dist/{memory-cards-B6I5ZGXM.js → memory-cards-MRF3JHTD.js} +1 -1
- package/dist/{memory-poisoning-defense-3ETR5HJJ.js → memory-poisoning-defense-UJ36FZ2U.js} +1 -1
- package/dist/{memory-queue-client-Z4Q3IX77.js → memory-queue-client-LFPZPPQA.js} +3 -3
- package/dist/{memory-reflection-B75N4BRO.js → memory-reflection-6QCSB2MQ.js} +1 -1
- package/dist/{notifications-WNSNHFH6.js → notifications-CSVHULU2.js} +4 -4
- package/dist/{orchestrator-KGIIN4BA.js → orchestrator-PWP2CALB.js} +6 -6
- package/dist/{plan-limits-LTAD6MZH.js → plan-limits-D3VGVCWX.js} +2 -2
- package/dist/{projection-worker-IEDLDFKB.js → projection-worker-QZCUNRFZ.js} +141 -2
- package/dist/{review-polling-MQ3AXSTB.js → review-polling-QH3X4ZGX.js} +5 -5
- package/dist/runtime/index.js +11 -11
- package/dist/{session-events-DUWUFNSD.js → session-events-4GDMLNBG.js} +5 -5
- package/dist/{session-kill-telemetry-SZPQAZS7.js → session-kill-telemetry-XNKGQYME.js} +2 -2
- package/dist/{session-scope-TU7M4FAA.js → session-scope-754VZARX.js} +4 -4
- package/dist/{setup-wizard-B5F7C765.js → setup-wizard-FBWZQGR4.js} +1 -1
- package/dist/{skill-refinement-RRSHVVV7.js → skill-refinement-65EE332E.js} +1 -1
- package/dist/{task-enforcement-6AAUCRFV.js → task-enforcement-Y4BZBB7O.js} +4 -4
- package/dist/{task-scope-3UOAF4QQ.js → task-scope-LMSSAAAY.js} +4 -4
- package/dist/{tasks-crud-NQLF7DVV.js → tasks-crud-GZLBSTH3.js} +4 -4
- package/dist/{tasks-review-K52CYJ3R.js → tasks-review-4MSMRTDM.js} +4 -4
- package/dist/{token-budget-6KUZD2BC.js → token-budget-6YGB6AVB.js} +1 -1
- package/dist/{tool-capability-index-4TT2VIQ2.js → tool-capability-index-6JJN6ZRC.js} +1 -1
- package/dist/{tool-telemetry-TOPP535O.js → tool-telemetry-SYTSDQBL.js} +1 -1
- package/dist/tui/App.js +17 -17
- package/dist/{tui-data-E3XA3HLZ.js → tui-data-XNWZBTZB.js} +4 -4
- package/dist/{wiki-client-NZR7RW4I.js → wiki-client-S6JKY7GG.js} +22 -1
- package/dist/{worker-gate-J5RRT27H.js → worker-gate-ULTQ3WTD.js} +1 -1
- package/dist/{workflow-engine-4U4H4V6K.js → workflow-engine-GKT7HTAK.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +142 -142
- /package/dist/{chunk-5UPBAAPS.js → chunk-2M3CULM3.js} +0 -0
- /package/dist/{chunk-PJI6UVFG.js → chunk-6IUZZMWD.js} +0 -0
- /package/dist/{chunk-33KYUOK2.js → chunk-6NSFB3JH.js} +0 -0
- /package/dist/{chunk-XMYY65PG.js → chunk-ESRI7MFI.js} +0 -0
- /package/dist/{chunk-JTS3IDOY.js → chunk-JYETM4KT.js} +0 -0
- /package/dist/{chunk-MJSWLLSM.js → chunk-KVXP2W2N.js} +0 -0
- /package/dist/{chunk-DHNTMNKR.js → chunk-MGRHSBXO.js} +0 -0
- /package/dist/{chunk-JC7GZZVA.js → chunk-X4X3J6FE.js} +0 -0
- /package/dist/{chunk-NGVIZCGB.js → chunk-ZKALIEHB.js} +0 -0
- /package/dist/{core-memory-TFPUGGWO.js → core-memory-EXKPFVIR.js} +0 -0
- /package/dist/{entity-boost-B7IGG24X.js → entity-boost-GHFPE6A2.js} +0 -0
- /package/dist/{message-queue-client-EMQYHDBK.js → message-queue-client-CHRQYBH5.js} +0 -0
- /package/dist/{wiki-acl-JDBEB5GL.js → wiki-acl-VC237WGO.js} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inferOutcome,
|
|
6
6
|
inferSemanticLabel,
|
|
7
7
|
ontologyPayload
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6IUZZMWD.js";
|
|
9
9
|
import {
|
|
10
10
|
loadConfig
|
|
11
11
|
} from "./chunk-4GXRETYL.js";
|
|
@@ -20,6 +20,7 @@ import { createRequire } from "module";
|
|
|
20
20
|
import { pathToFileURL } from "url";
|
|
21
21
|
var prismaPromise = null;
|
|
22
22
|
var ontologySchemaReady = false;
|
|
23
|
+
var filteredSchemaReady = false;
|
|
23
24
|
function loadPrisma() {
|
|
24
25
|
if (!prismaPromise) {
|
|
25
26
|
prismaPromise = (async () => {
|
|
@@ -72,6 +73,8 @@ function resetProjectionWorkerForTests() {
|
|
|
72
73
|
consecutivePollErrors = 0;
|
|
73
74
|
prismaPromise = null;
|
|
74
75
|
ontologySchemaReady = false;
|
|
76
|
+
filteredSchemaReady = false;
|
|
77
|
+
lastWikiApiPushAt = 0;
|
|
75
78
|
}
|
|
76
79
|
function stableId(input) {
|
|
77
80
|
let h1 = 3735928559;
|
|
@@ -313,6 +316,49 @@ async function ensurePostgresOntologySchema(prisma) {
|
|
|
313
316
|
await prisma.$executeRawUnsafe(`CREATE INDEX IF NOT EXISTS "idx_agent_reflection_session_time" ON "memory"."agent_reflection_checkpoints" ("session_id", "window_end_at")`);
|
|
314
317
|
ontologySchemaReady = true;
|
|
315
318
|
}
|
|
319
|
+
async function ensureFilteredSchema(prisma) {
|
|
320
|
+
if (filteredSchemaReady) return;
|
|
321
|
+
await prisma.$executeRawUnsafe(`CREATE SCHEMA IF NOT EXISTS filtered`);
|
|
322
|
+
await prisma.$executeRawUnsafe(`
|
|
323
|
+
CREATE TABLE IF NOT EXISTS "filtered"."documents" (
|
|
324
|
+
"id" UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
325
|
+
"title" TEXT NOT NULL,
|
|
326
|
+
"content" TEXT NOT NULL,
|
|
327
|
+
"doc_type" TEXT NOT NULL DEFAULT 'memory',
|
|
328
|
+
"source" TEXT NOT NULL DEFAULT 'exe-os',
|
|
329
|
+
"source_id" TEXT,
|
|
330
|
+
"metadata" JSONB DEFAULT '{}',
|
|
331
|
+
"created_at" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
332
|
+
UNIQUE("source", "source_id")
|
|
333
|
+
)`);
|
|
334
|
+
await prisma.$executeRawUnsafe(`
|
|
335
|
+
CREATE TABLE IF NOT EXISTS "filtered"."contacts" (
|
|
336
|
+
"id" UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
337
|
+
"name" TEXT,
|
|
338
|
+
"phone" TEXT,
|
|
339
|
+
"email" TEXT,
|
|
340
|
+
"platform" TEXT NOT NULL DEFAULT 'whatsapp',
|
|
341
|
+
"platform_id" TEXT,
|
|
342
|
+
"metadata" JSONB DEFAULT '{}',
|
|
343
|
+
"first_seen" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
344
|
+
"last_seen" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
345
|
+
UNIQUE("platform", "platform_id")
|
|
346
|
+
)`);
|
|
347
|
+
await prisma.$executeRawUnsafe(`
|
|
348
|
+
CREATE TABLE IF NOT EXISTS "filtered"."conversations" (
|
|
349
|
+
"id" UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
350
|
+
"contact_id" UUID REFERENCES "filtered"."contacts"("id"),
|
|
351
|
+
"platform" TEXT NOT NULL DEFAULT 'whatsapp',
|
|
352
|
+
"thread_id" TEXT,
|
|
353
|
+
"direction" TEXT NOT NULL DEFAULT 'inbound',
|
|
354
|
+
"content" TEXT NOT NULL,
|
|
355
|
+
"message_type" TEXT NOT NULL DEFAULT 'text',
|
|
356
|
+
"metadata" JSONB DEFAULT '{}',
|
|
357
|
+
"sent_at" TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
358
|
+
UNIQUE("platform", "thread_id", "sent_at")
|
|
359
|
+
)`);
|
|
360
|
+
filteredSchemaReady = true;
|
|
361
|
+
}
|
|
316
362
|
async function projectAgenticOntology(prisma, payload, memoryId, timestamp) {
|
|
317
363
|
await ensurePostgresOntologySchema(prisma);
|
|
318
364
|
const row = {
|
|
@@ -487,6 +533,39 @@ async function projectToWiki(prisma, payload, timestamp) {
|
|
|
487
533
|
);
|
|
488
534
|
return { documents: 1 };
|
|
489
535
|
}
|
|
536
|
+
var lastWikiApiPushAt = 0;
|
|
537
|
+
var WIKI_API_MIN_INTERVAL_MS = 500;
|
|
538
|
+
async function pushToWikiApi(payload, _timestamp) {
|
|
539
|
+
const now = Date.now();
|
|
540
|
+
if (now - lastWikiApiPushAt < WIKI_API_MIN_INTERVAL_MS) {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
try {
|
|
544
|
+
const { createWikiClient, uploadDocumentToWiki } = await import("./wiki-client-S6JKY7GG.js");
|
|
545
|
+
const client = await createWikiClient();
|
|
546
|
+
if (!client) return false;
|
|
547
|
+
const rawText = String(payload.raw_text ?? "");
|
|
548
|
+
const projectName = String(payload.project_name ?? "exe-os");
|
|
549
|
+
const agentId = String(payload.agent_id ?? "system");
|
|
550
|
+
const firstLine = rawText.split("\n")[0]?.slice(0, 120) ?? "Untitled";
|
|
551
|
+
const title = `[${agentId}] ${firstLine}`;
|
|
552
|
+
const slug = projectName.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-");
|
|
553
|
+
const result = await uploadDocumentToWiki(client, slug, title, rawText);
|
|
554
|
+
lastWikiApiPushAt = Date.now();
|
|
555
|
+
if (!result.success) {
|
|
556
|
+
process.stderr.write(`[projection-worker] Wiki API push failed: ${result.error}
|
|
557
|
+
`);
|
|
558
|
+
}
|
|
559
|
+
return result.success;
|
|
560
|
+
} catch (err) {
|
|
561
|
+
process.stderr.write(`[projection-worker] Wiki API push error: ${err instanceof Error ? err.message : String(err)}
|
|
562
|
+
`);
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function resetLastWikiApiPushAtForTests() {
|
|
567
|
+
lastWikiApiPushAt = 0;
|
|
568
|
+
}
|
|
490
569
|
var projectionHandlers = {
|
|
491
570
|
async whatsapp(event, prisma) {
|
|
492
571
|
const targets = [];
|
|
@@ -507,6 +586,42 @@ var projectionHandlers = {
|
|
|
507
586
|
event.event_type
|
|
508
587
|
);
|
|
509
588
|
targets.push("memory");
|
|
589
|
+
await ensureFilteredSchema(prisma);
|
|
590
|
+
const senderName = payload.sender_name ?? payload.contact_name ?? null;
|
|
591
|
+
const senderPhone = payload.from ?? payload.phone ?? null;
|
|
592
|
+
const threadId = payload.conversation_id ?? payload.chat_id ?? event.source_id;
|
|
593
|
+
if (senderPhone) {
|
|
594
|
+
const contactResult = await prisma.$queryRawUnsafe(
|
|
595
|
+
`INSERT INTO "filtered"."contacts" ("name", "phone", "platform", "platform_id", "last_seen")
|
|
596
|
+
VALUES ($1, $2, 'whatsapp', $3, $4)
|
|
597
|
+
ON CONFLICT ("platform", "platform_id") DO UPDATE SET
|
|
598
|
+
"name" = COALESCE(EXCLUDED."name", "filtered"."contacts"."name"),
|
|
599
|
+
"last_seen" = GREATEST("filtered"."contacts"."last_seen", EXCLUDED."last_seen")
|
|
600
|
+
RETURNING "id"`,
|
|
601
|
+
senderName,
|
|
602
|
+
senderPhone,
|
|
603
|
+
senderPhone,
|
|
604
|
+
event.timestamp
|
|
605
|
+
);
|
|
606
|
+
const contactId = contactResult[0]?.id;
|
|
607
|
+
targets.push("filtered.contacts");
|
|
608
|
+
const messageContent = payload.message ?? payload.text ?? payload.body ?? JSON.stringify(payload);
|
|
609
|
+
const direction = payload.direction ?? "inbound";
|
|
610
|
+
if (contactId && messageContent) {
|
|
611
|
+
await prisma.$executeRawUnsafe(
|
|
612
|
+
`INSERT INTO "filtered"."conversations" ("contact_id", "platform", "thread_id", "direction", "content", "message_type", "sent_at")
|
|
613
|
+
VALUES ($1, 'whatsapp', $2, $3, $4, $5, $6)
|
|
614
|
+
ON CONFLICT ("platform", "thread_id", "sent_at") DO NOTHING`,
|
|
615
|
+
contactId,
|
|
616
|
+
threadId,
|
|
617
|
+
direction,
|
|
618
|
+
typeof messageContent === "string" ? messageContent : JSON.stringify(messageContent),
|
|
619
|
+
payload.type ?? "text",
|
|
620
|
+
event.timestamp
|
|
621
|
+
);
|
|
622
|
+
targets.push("filtered.conversations");
|
|
623
|
+
}
|
|
624
|
+
}
|
|
510
625
|
return { targets };
|
|
511
626
|
},
|
|
512
627
|
async shopify(event, prisma) {
|
|
@@ -556,7 +671,30 @@ var projectionHandlers = {
|
|
|
556
671
|
const ontology = await projectAgenticOntology(prisma, payload, memoryId, event.timestamp);
|
|
557
672
|
if (ontology.events > 0) targets.push("ontology");
|
|
558
673
|
const wiki = await projectToWiki(prisma, payload, event.timestamp);
|
|
559
|
-
if (wiki.documents > 0)
|
|
674
|
+
if (wiki.documents > 0) {
|
|
675
|
+
targets.push("wiki");
|
|
676
|
+
await pushToWikiApi(payload, event.timestamp);
|
|
677
|
+
}
|
|
678
|
+
await ensureFilteredSchema(prisma);
|
|
679
|
+
const rawText = payload.raw_text ?? "";
|
|
680
|
+
if (rawText.length > 50) {
|
|
681
|
+
await prisma.$executeRawUnsafe(
|
|
682
|
+
`INSERT INTO "filtered"."documents" ("title", "content", "doc_type", "source", "source_id", "metadata", "created_at")
|
|
683
|
+
VALUES ($1, $2, $3, $4, $5, $6::jsonb, $7)
|
|
684
|
+
ON CONFLICT ("source", "source_id") DO NOTHING`,
|
|
685
|
+
rawText.slice(0, 80),
|
|
686
|
+
rawText,
|
|
687
|
+
payload.tool_name ?? "memory",
|
|
688
|
+
"exe-os",
|
|
689
|
+
memoryId,
|
|
690
|
+
JSON.stringify({
|
|
691
|
+
agent_id: payload.agent_id,
|
|
692
|
+
project_name: payload.project_name
|
|
693
|
+
}),
|
|
694
|
+
event.timestamp
|
|
695
|
+
);
|
|
696
|
+
targets.push("filtered.documents");
|
|
697
|
+
}
|
|
560
698
|
return { targets };
|
|
561
699
|
},
|
|
562
700
|
async external_agent(event, prisma) {
|
|
@@ -730,6 +868,7 @@ export {
|
|
|
730
868
|
computeProjectionBackoffMs,
|
|
731
869
|
processProjectionBatch,
|
|
732
870
|
projectionHandlersForTests,
|
|
871
|
+
resetLastWikiApiPushAtForTests,
|
|
733
872
|
resetProjectionWorkerForTests,
|
|
734
873
|
setProjectionWorkerPrismaClientForTests,
|
|
735
874
|
shouldStartProjectionWorker,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isExeSession,
|
|
3
3
|
strictSessionScopeFilter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7X7HKWH7.js";
|
|
5
5
|
import "./chunk-LOQCOHEW.js";
|
|
6
6
|
import "./chunk-TXSJ2L5O.js";
|
|
7
7
|
import "./chunk-64WZEXXA.js";
|
|
@@ -11,17 +11,17 @@ import "./chunk-GZIAQYGI.js";
|
|
|
11
11
|
import "./chunk-ZQX6UOP6.js";
|
|
12
12
|
import "./chunk-H2CFBUGF.js";
|
|
13
13
|
import "./chunk-NGP6LSV2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-72IIQLQ6.js";
|
|
15
15
|
import "./chunk-OPU3NYOO.js";
|
|
16
16
|
import "./chunk-CVYC6DUW.js";
|
|
17
17
|
import "./chunk-GJV3WDWM.js";
|
|
18
18
|
import "./chunk-MP2AFCGL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-2UO3QD7V.js";
|
|
20
20
|
import "./chunk-HYZV25LY.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
23
23
|
getCoordinatorName
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JYETM4KT.js";
|
|
25
25
|
import "./chunk-RVSGXGWG.js";
|
|
26
26
|
import "./chunk-FXU7JOXK.js";
|
|
27
27
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -101,7 +101,7 @@ function createRealDeps(getClient) {
|
|
|
101
101
|
return result.rows;
|
|
102
102
|
},
|
|
103
103
|
createReviewForOrphan: async (task) => {
|
|
104
|
-
const { createReviewForCompletedTask } = await import("./tasks-review-
|
|
104
|
+
const { createReviewForCompletedTask } = await import("./tasks-review-4MSMRTDM.js");
|
|
105
105
|
const cwd = process.cwd();
|
|
106
106
|
await createReviewForCompletedTask(
|
|
107
107
|
task,
|
package/dist/runtime/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
SessionManager,
|
|
4
4
|
checkGitSafety,
|
|
5
5
|
targetsMainBranch
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5RWZNONS.js";
|
|
7
7
|
import {
|
|
8
8
|
MultiAgentOrchestrator
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-S3R2FC6P.js";
|
|
10
10
|
import {
|
|
11
11
|
createQuietRenderer,
|
|
12
12
|
createTerminalRenderer,
|
|
@@ -45,10 +45,6 @@ import {
|
|
|
45
45
|
createPermissionsFromPreset,
|
|
46
46
|
createRestrictedPermissions
|
|
47
47
|
} from "../chunk-PRKVT4KN.js";
|
|
48
|
-
import {
|
|
49
|
-
composeHooks,
|
|
50
|
-
createDefaultHooks
|
|
51
|
-
} from "../chunk-O377P7GM.js";
|
|
52
48
|
import {
|
|
53
49
|
PERMISSION_PRESETS,
|
|
54
50
|
evaluatePermission,
|
|
@@ -56,8 +52,12 @@ import {
|
|
|
56
52
|
matchInputPattern,
|
|
57
53
|
matchToolPattern
|
|
58
54
|
} from "../chunk-HF25XPZE.js";
|
|
59
|
-
import
|
|
60
|
-
|
|
55
|
+
import {
|
|
56
|
+
composeHooks,
|
|
57
|
+
createDefaultHooks
|
|
58
|
+
} from "../chunk-O377P7GM.js";
|
|
59
|
+
import "../chunk-QK5MFN77.js";
|
|
60
|
+
import "../chunk-7X7HKWH7.js";
|
|
61
61
|
import "../chunk-LOQCOHEW.js";
|
|
62
62
|
import "../chunk-TXSJ2L5O.js";
|
|
63
63
|
import "../chunk-64WZEXXA.js";
|
|
@@ -67,7 +67,7 @@ import "../chunk-GZIAQYGI.js";
|
|
|
67
67
|
import "../chunk-ZQX6UOP6.js";
|
|
68
68
|
import "../chunk-H2CFBUGF.js";
|
|
69
69
|
import "../chunk-NGP6LSV2.js";
|
|
70
|
-
import "../chunk-
|
|
70
|
+
import "../chunk-72IIQLQ6.js";
|
|
71
71
|
import "../chunk-OPU3NYOO.js";
|
|
72
72
|
import "../chunk-CVYC6DUW.js";
|
|
73
73
|
import "../chunk-GJV3WDWM.js";
|
|
@@ -75,9 +75,9 @@ import {
|
|
|
75
75
|
StateBus,
|
|
76
76
|
orgBus
|
|
77
77
|
} from "../chunk-MP2AFCGL.js";
|
|
78
|
-
import "../chunk-
|
|
78
|
+
import "../chunk-2UO3QD7V.js";
|
|
79
79
|
import "../chunk-HYZV25LY.js";
|
|
80
|
-
import "../chunk-
|
|
80
|
+
import "../chunk-JYETM4KT.js";
|
|
81
81
|
import "../chunk-RVSGXGWG.js";
|
|
82
82
|
import "../chunk-FXU7JOXK.js";
|
|
83
83
|
import "../chunk-MVMMULOJ.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
ensureSessionEventsTable,
|
|
3
3
|
listRecentSessionEvents,
|
|
4
4
|
recordSessionEvent
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-PGXG2JUF.js";
|
|
6
|
+
import "./chunk-7X7HKWH7.js";
|
|
7
7
|
import "./chunk-LOQCOHEW.js";
|
|
8
8
|
import "./chunk-TXSJ2L5O.js";
|
|
9
9
|
import "./chunk-64WZEXXA.js";
|
|
@@ -13,14 +13,14 @@ import "./chunk-GZIAQYGI.js";
|
|
|
13
13
|
import "./chunk-ZQX6UOP6.js";
|
|
14
14
|
import "./chunk-H2CFBUGF.js";
|
|
15
15
|
import "./chunk-NGP6LSV2.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-72IIQLQ6.js";
|
|
17
17
|
import "./chunk-OPU3NYOO.js";
|
|
18
18
|
import "./chunk-CVYC6DUW.js";
|
|
19
19
|
import "./chunk-GJV3WDWM.js";
|
|
20
20
|
import "./chunk-MP2AFCGL.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-2UO3QD7V.js";
|
|
22
22
|
import "./chunk-HYZV25LY.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-JYETM4KT.js";
|
|
24
24
|
import "./chunk-RVSGXGWG.js";
|
|
25
25
|
import "./chunk-FXU7JOXK.js";
|
|
26
26
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
parseStreakState,
|
|
9
9
|
recordSessionKill,
|
|
10
10
|
sumTokensSavedSince
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FRH7EY2Z.js";
|
|
12
|
+
import "./chunk-JYETM4KT.js";
|
|
13
13
|
import "./chunk-RVSGXGWG.js";
|
|
14
14
|
import "./chunk-FXU7JOXK.js";
|
|
15
15
|
import "./chunk-4GXRETYL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveExeSession
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7X7HKWH7.js";
|
|
4
4
|
import "./chunk-LOQCOHEW.js";
|
|
5
5
|
import "./chunk-TXSJ2L5O.js";
|
|
6
6
|
import {
|
|
@@ -12,18 +12,18 @@ import "./chunk-GZIAQYGI.js";
|
|
|
12
12
|
import "./chunk-ZQX6UOP6.js";
|
|
13
13
|
import "./chunk-H2CFBUGF.js";
|
|
14
14
|
import "./chunk-NGP6LSV2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-72IIQLQ6.js";
|
|
16
16
|
import {
|
|
17
17
|
getProjectName
|
|
18
18
|
} from "./chunk-OPU3NYOO.js";
|
|
19
19
|
import "./chunk-CVYC6DUW.js";
|
|
20
20
|
import "./chunk-GJV3WDWM.js";
|
|
21
21
|
import "./chunk-MP2AFCGL.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-2UO3QD7V.js";
|
|
23
23
|
import "./chunk-HYZV25LY.js";
|
|
24
24
|
import {
|
|
25
25
|
isCoordinatorName
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JYETM4KT.js";
|
|
27
27
|
import "./chunk-RVSGXGWG.js";
|
|
28
28
|
import "./chunk-FXU7JOXK.js";
|
|
29
29
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sendIntercom,
|
|
3
3
|
updateTaskStatus
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7X7HKWH7.js";
|
|
5
5
|
import "./chunk-LOQCOHEW.js";
|
|
6
6
|
import "./chunk-TXSJ2L5O.js";
|
|
7
7
|
import "./chunk-64WZEXXA.js";
|
|
@@ -11,14 +11,14 @@ import "./chunk-GZIAQYGI.js";
|
|
|
11
11
|
import "./chunk-ZQX6UOP6.js";
|
|
12
12
|
import "./chunk-H2CFBUGF.js";
|
|
13
13
|
import "./chunk-NGP6LSV2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-72IIQLQ6.js";
|
|
15
15
|
import "./chunk-OPU3NYOO.js";
|
|
16
16
|
import "./chunk-CVYC6DUW.js";
|
|
17
17
|
import "./chunk-GJV3WDWM.js";
|
|
18
18
|
import "./chunk-MP2AFCGL.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-2UO3QD7V.js";
|
|
20
20
|
import "./chunk-HYZV25LY.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-JYETM4KT.js";
|
|
22
22
|
import "./chunk-RVSGXGWG.js";
|
|
23
23
|
import "./chunk-FXU7JOXK.js";
|
|
24
24
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCurrentSessionScope,
|
|
3
3
|
sessionScopeFilter,
|
|
4
4
|
strictSessionScopeFilter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7X7HKWH7.js";
|
|
6
6
|
import "./chunk-LOQCOHEW.js";
|
|
7
7
|
import "./chunk-TXSJ2L5O.js";
|
|
8
8
|
import "./chunk-64WZEXXA.js";
|
|
@@ -12,14 +12,14 @@ import "./chunk-GZIAQYGI.js";
|
|
|
12
12
|
import "./chunk-ZQX6UOP6.js";
|
|
13
13
|
import "./chunk-H2CFBUGF.js";
|
|
14
14
|
import "./chunk-NGP6LSV2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-72IIQLQ6.js";
|
|
16
16
|
import "./chunk-OPU3NYOO.js";
|
|
17
17
|
import "./chunk-CVYC6DUW.js";
|
|
18
18
|
import "./chunk-GJV3WDWM.js";
|
|
19
19
|
import "./chunk-MP2AFCGL.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-2UO3QD7V.js";
|
|
21
21
|
import "./chunk-HYZV25LY.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JYETM4KT.js";
|
|
23
23
|
import "./chunk-RVSGXGWG.js";
|
|
24
24
|
import "./chunk-FXU7JOXK.js";
|
|
25
25
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
slugify,
|
|
15
15
|
updateTaskStatus,
|
|
16
16
|
writeCheckpoint
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7X7HKWH7.js";
|
|
18
18
|
import "./chunk-LOQCOHEW.js";
|
|
19
19
|
import "./chunk-TXSJ2L5O.js";
|
|
20
20
|
import "./chunk-64WZEXXA.js";
|
|
@@ -24,14 +24,14 @@ import "./chunk-GZIAQYGI.js";
|
|
|
24
24
|
import "./chunk-ZQX6UOP6.js";
|
|
25
25
|
import "./chunk-H2CFBUGF.js";
|
|
26
26
|
import "./chunk-NGP6LSV2.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-72IIQLQ6.js";
|
|
28
28
|
import "./chunk-OPU3NYOO.js";
|
|
29
29
|
import "./chunk-CVYC6DUW.js";
|
|
30
30
|
import "./chunk-GJV3WDWM.js";
|
|
31
31
|
import "./chunk-MP2AFCGL.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-2UO3QD7V.js";
|
|
33
33
|
import "./chunk-HYZV25LY.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-JYETM4KT.js";
|
|
35
35
|
import "./chunk-RVSGXGWG.js";
|
|
36
36
|
import "./chunk-FXU7JOXK.js";
|
|
37
37
|
import "./chunk-MVMMULOJ.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getReviewChecklist,
|
|
9
9
|
isStale,
|
|
10
10
|
listPendingReviews
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7X7HKWH7.js";
|
|
12
12
|
import "./chunk-LOQCOHEW.js";
|
|
13
13
|
import "./chunk-TXSJ2L5O.js";
|
|
14
14
|
import "./chunk-64WZEXXA.js";
|
|
@@ -18,14 +18,14 @@ import "./chunk-GZIAQYGI.js";
|
|
|
18
18
|
import "./chunk-ZQX6UOP6.js";
|
|
19
19
|
import "./chunk-H2CFBUGF.js";
|
|
20
20
|
import "./chunk-NGP6LSV2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-72IIQLQ6.js";
|
|
22
22
|
import "./chunk-OPU3NYOO.js";
|
|
23
23
|
import "./chunk-CVYC6DUW.js";
|
|
24
24
|
import "./chunk-GJV3WDWM.js";
|
|
25
25
|
import "./chunk-MP2AFCGL.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-2UO3QD7V.js";
|
|
27
27
|
import "./chunk-HYZV25LY.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-JYETM4KT.js";
|
|
29
29
|
import "./chunk-RVSGXGWG.js";
|
|
30
30
|
import "./chunk-FXU7JOXK.js";
|
|
31
31
|
import "./chunk-MVMMULOJ.js";
|
package/dist/tui/App.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
getSessionPrompt
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7RD4YGGJ.js";
|
|
5
|
+
import "../chunk-Z734KCEG.js";
|
|
6
6
|
import "../chunk-TPC3LAP7.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionScopeFilter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-7X7HKWH7.js";
|
|
10
10
|
import "../chunk-LOQCOHEW.js";
|
|
11
11
|
import "../chunk-TXSJ2L5O.js";
|
|
12
12
|
import "../chunk-64WZEXXA.js";
|
|
@@ -16,19 +16,19 @@ import "../chunk-GZIAQYGI.js";
|
|
|
16
16
|
import "../chunk-ZQX6UOP6.js";
|
|
17
17
|
import "../chunk-H2CFBUGF.js";
|
|
18
18
|
import "../chunk-NGP6LSV2.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-72IIQLQ6.js";
|
|
20
20
|
import "../chunk-OPU3NYOO.js";
|
|
21
21
|
import "../chunk-CVYC6DUW.js";
|
|
22
22
|
import "../chunk-GJV3WDWM.js";
|
|
23
23
|
import {
|
|
24
24
|
orgBus
|
|
25
25
|
} from "../chunk-MP2AFCGL.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-2UO3QD7V.js";
|
|
27
27
|
import "../chunk-HYZV25LY.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
30
30
|
isCoordinatorName
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-JYETM4KT.js";
|
|
32
32
|
import "../chunk-RVSGXGWG.js";
|
|
33
33
|
import "../chunk-FXU7JOXK.js";
|
|
34
34
|
import "../chunk-MVMMULOJ.js";
|
|
@@ -7397,7 +7397,7 @@ function useOrchestrator(enabled = true) {
|
|
|
7397
7397
|
let cancelled = false;
|
|
7398
7398
|
async function init() {
|
|
7399
7399
|
try {
|
|
7400
|
-
const { MultiAgentOrchestrator } = await import("../orchestrator-
|
|
7400
|
+
const { MultiAgentOrchestrator } = await import("../orchestrator-PWP2CALB.js");
|
|
7401
7401
|
const { getCoordinatorName, isCoordinatorRole, loadEmployees } = await import("../lib/employees.js");
|
|
7402
7402
|
const { isExeSession } = await import("../lib/tmux-routing.js");
|
|
7403
7403
|
const { listTmuxSessions, inTmux } = await import("../lib/tmux-status.js");
|
|
@@ -7438,7 +7438,7 @@ function useOrchestrator(enabled = true) {
|
|
|
7438
7438
|
setTotalInProgress(health.totalInProgress);
|
|
7439
7439
|
try {
|
|
7440
7440
|
const { getClient } = await import("../lib/database.js");
|
|
7441
|
-
const { sessionScopeFilter: sessionScopeFilter2 } = await import("../task-scope-
|
|
7441
|
+
const { sessionScopeFilter: sessionScopeFilter2 } = await import("../task-scope-LMSSAAAY.js");
|
|
7442
7442
|
const client = getClient();
|
|
7443
7443
|
const uoScope = sessionScopeFilter2();
|
|
7444
7444
|
const result = await client.execute({
|
|
@@ -7470,7 +7470,7 @@ function useOrchestrator(enabled = true) {
|
|
|
7470
7470
|
const spawnSession = useCallback5(
|
|
7471
7471
|
async (agentId) => {
|
|
7472
7472
|
try {
|
|
7473
|
-
const { createTaskCore } = await import("../tasks-crud-
|
|
7473
|
+
const { createTaskCore } = await import("../tasks-crud-GZLBSTH3.js");
|
|
7474
7474
|
const { ensureEmployee } = await import("../lib/tmux-routing.js");
|
|
7475
7475
|
const { getCoordinatorName } = await import("../lib/employees.js");
|
|
7476
7476
|
await createTaskCore({
|
|
@@ -8092,7 +8092,7 @@ function TasksView({ onBack }) {
|
|
|
8092
8092
|
const { withTrace } = await import("../telemetry-43X3GT3R.js");
|
|
8093
8093
|
return withTrace("tui.tasks.loadTasks", async () => {
|
|
8094
8094
|
try {
|
|
8095
|
-
const { loadTaskList } = await import("../tui-data-
|
|
8095
|
+
const { loadTaskList } = await import("../tui-data-XNWZBTZB.js");
|
|
8096
8096
|
const tasks = await loadTaskList();
|
|
8097
8097
|
setAllTasks(
|
|
8098
8098
|
tasks.map((task) => ({
|
|
@@ -8925,7 +8925,7 @@ function TeamView({ onBack, onViewSessions }) {
|
|
|
8925
8925
|
let projectsByEmployee = /* @__PURE__ */ new Map();
|
|
8926
8926
|
let currentTaskByEmployee = /* @__PURE__ */ new Map();
|
|
8927
8927
|
try {
|
|
8928
|
-
const { loadTeamBadgeCounts, loadTeamDetailMetrics } = await import("../tui-data-
|
|
8928
|
+
const { loadTeamBadgeCounts, loadTeamDetailMetrics } = await import("../tui-data-XNWZBTZB.js");
|
|
8929
8929
|
setBadgeInFlight(true);
|
|
8930
8930
|
const badgeCountsPromise = loadTeamBadgeCounts();
|
|
8931
8931
|
const detailsPromise = loadTeamDetailMetrics(roster.map((emp) => emp.name));
|
|
@@ -9205,7 +9205,7 @@ function WikiView({ onBack }) {
|
|
|
9205
9205
|
}, []);
|
|
9206
9206
|
async function loadWiki() {
|
|
9207
9207
|
try {
|
|
9208
|
-
const { createWikiClient, listWorkspaces: fetchWorkspaces } = await import("../wiki-client-
|
|
9208
|
+
const { createWikiClient, listWorkspaces: fetchWorkspaces } = await import("../wiki-client-S6JKY7GG.js");
|
|
9209
9209
|
const client = await createWikiClient();
|
|
9210
9210
|
if (!client) {
|
|
9211
9211
|
setConnected(false);
|
|
@@ -9225,7 +9225,7 @@ function WikiView({ onBack }) {
|
|
|
9225
9225
|
}
|
|
9226
9226
|
async function loadDocuments(client, workspaceSlug) {
|
|
9227
9227
|
try {
|
|
9228
|
-
const { listDocuments: fetchDocuments } = await import("../wiki-client-
|
|
9228
|
+
const { listDocuments: fetchDocuments } = await import("../wiki-client-S6JKY7GG.js");
|
|
9229
9229
|
const docs = await fetchDocuments(client, workspaceSlug);
|
|
9230
9230
|
setDocuments(docs.map((d) => ({
|
|
9231
9231
|
filename: d.filename,
|
|
@@ -9239,7 +9239,7 @@ function WikiView({ onBack }) {
|
|
|
9239
9239
|
}
|
|
9240
9240
|
async function loadChatHistory(client, workspaceSlug) {
|
|
9241
9241
|
try {
|
|
9242
|
-
const { getChatHistory: fetchHistory } = await import("../wiki-client-
|
|
9242
|
+
const { getChatHistory: fetchHistory } = await import("../wiki-client-S6JKY7GG.js");
|
|
9243
9243
|
const history = await fetchHistory(client, workspaceSlug);
|
|
9244
9244
|
setChatHistory(history);
|
|
9245
9245
|
} catch {
|
|
@@ -9254,7 +9254,7 @@ function WikiView({ onBack }) {
|
|
|
9254
9254
|
setChatInput("");
|
|
9255
9255
|
setSending(true);
|
|
9256
9256
|
try {
|
|
9257
|
-
const { createWikiClient, chatInWorkspace } = await import("../wiki-client-
|
|
9257
|
+
const { createWikiClient, chatInWorkspace } = await import("../wiki-client-S6JKY7GG.js");
|
|
9258
9258
|
const client = await createWikiClient();
|
|
9259
9259
|
if (!client) {
|
|
9260
9260
|
setChatHistory((prev) => [
|
|
@@ -9291,7 +9291,7 @@ function WikiView({ onBack }) {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
setSearchLoading(true);
|
|
9293
9293
|
try {
|
|
9294
|
-
const { searchWikiMemoryRows } = await import("../tui-data-
|
|
9294
|
+
const { searchWikiMemoryRows } = await import("../tui-data-XNWZBTZB.js");
|
|
9295
9295
|
setSearchResults(await searchWikiMemoryRows(query));
|
|
9296
9296
|
} catch {
|
|
9297
9297
|
setSearchResults([]);
|
|
@@ -9321,7 +9321,7 @@ function WikiView({ onBack }) {
|
|
|
9321
9321
|
return;
|
|
9322
9322
|
}
|
|
9323
9323
|
try {
|
|
9324
|
-
const { createWikiClient } = await import("../wiki-client-
|
|
9324
|
+
const { createWikiClient } = await import("../wiki-client-S6JKY7GG.js");
|
|
9325
9325
|
const client = await createWikiClient();
|
|
9326
9326
|
if (!client) return;
|
|
9327
9327
|
await loadDocuments(client, ws.slug);
|