@askexenow/exe-os 0.9.236 → 0.9.238
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/deploy/stack-manifests/v0.9.json +53 -1
- package/dist/{active-agent-JD6BCCFZ.js → active-agent-6WX7GZBH.js} +3 -3
- package/dist/{active-agent-RCXBLWQS.js → active-agent-X3GALNAR.js} +3 -3
- package/dist/{agentic-ontology-PAYLA3Q6.js → agentic-ontology-NBU3FHEX.js} +1 -1
- package/dist/{backfill-metadata-63Y4JVSZ.js → backfill-metadata-NG2L5GUP.js} +4 -4
- package/dist/behavior-effectiveness-UP76GMOC.js +344 -0
- package/dist/{behaviors-I7JQLV6G.js → behaviors-DH7XFONJ.js} +3 -3
- package/dist/bin/agentic-ontology-backfill.js +5 -5
- package/dist/bin/agentic-reflection-backfill.js +6 -6
- package/dist/bin/agentic-semantic-label.js +5 -5
- package/dist/bin/backfill-conversations.js +4 -4
- package/dist/bin/backfill-responses.js +4 -4
- package/dist/bin/backfill-vectors.js +5 -5
- package/dist/bin/bulk-sync-postgres.js +6 -6
- package/dist/bin/cleanup-stale-review-tasks.js +9 -9
- package/dist/bin/cli.js +14 -14
- package/dist/bin/exe-agent-config.js +2 -2
- package/dist/bin/exe-agent.js +9 -9
- package/dist/bin/exe-assign.js +5 -5
- package/dist/bin/exe-boot.js +17 -17
- package/dist/bin/exe-call.js +5 -5
- package/dist/bin/exe-cloud.js +4 -4
- package/dist/bin/exe-dispatch.js +9 -9
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +7 -7
- package/dist/bin/exe-forget.js +6 -6
- package/dist/bin/exe-gateway.js +7 -7
- package/dist/bin/exe-heartbeat.js +9 -9
- package/dist/bin/exe-kill.js +12 -12
- package/dist/bin/exe-launch-agent.js +17 -17
- package/dist/bin/exe-new-employee.js +7 -7
- package/dist/bin/exe-pending-messages.js +10 -10
- package/dist/bin/exe-pending-notifications.js +9 -9
- package/dist/bin/exe-pending-reviews.js +9 -9
- package/dist/bin/exe-rename.js +5 -5
- package/dist/bin/exe-review.js +11 -11
- package/dist/bin/exe-search.js +5 -5
- package/dist/bin/exe-session-cleanup.js +14 -14
- package/dist/bin/exe-settings.js +4 -4
- package/dist/bin/exe-start-codex.js +11 -11
- package/dist/bin/exe-start-opencode.js +8 -8
- package/dist/bin/exe-status.js +10 -10
- package/dist/bin/exe-team.js +3 -3
- package/dist/bin/git-sweep.js +9 -9
- package/dist/bin/graph-backfill.js +4 -4
- package/dist/bin/graph-export.js +5 -5
- package/dist/bin/import-history.js +7 -7
- package/dist/bin/install.js +6 -6
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.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/pre-publish.js +1 -1
- package/dist/bin/scan-tasks.js +9 -9
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +4 -4
- package/dist/{capacity-monitor-NVSZABQG.js → capacity-monitor-KAKNWAA4.js} +10 -10
- package/dist/{catchup-brief-L76MGN2J.js → catchup-brief-ZB2OR45O.js} +11 -11
- package/dist/{chunk-VTLUUTWI.js → chunk-2LYJTK47.js} +40 -1
- package/dist/{chunk-MJMJMHFC.js → chunk-2O5GJFYQ.js} +1 -1
- package/dist/{chunk-N5VQ3PVS.js → chunk-2VXHPSIJ.js} +1 -1
- package/dist/{chunk-Q25V2UO6.js → chunk-3JVO6X4W.js} +1 -1
- package/dist/{chunk-Y2PQS2GI.js → chunk-3NYRIK73.js} +2 -2
- package/dist/{chunk-QK7R2CUS.js → chunk-4HMKJDPB.js} +3 -3
- package/dist/{chunk-5NIUTWV4.js → chunk-5KDROSDV.js} +1 -1
- package/dist/{chunk-24KEYEYL.js → chunk-7LIXU3TB.js} +8 -8
- package/dist/{chunk-NEXKWAVU.js → chunk-7PVUUC3O.js} +5 -5
- package/dist/{chunk-X4AZWJP4.js → chunk-AYBC6AYP.js} +8 -8
- package/dist/{chunk-YVN2WG5T.js → chunk-BTPXNV5W.js} +1 -1
- package/dist/{chunk-5SYO2FD7.js → chunk-C7BVANSU.js} +65 -12
- package/dist/{chunk-Z7A6DTIN.js → chunk-CJEVAKKC.js} +2 -2
- package/dist/{chunk-J2QQMTCD.js → chunk-COMWI7SO.js} +1 -1
- package/dist/{chunk-PBA32J2M.js → chunk-ENWFSMOS.js} +10 -10
- package/dist/{chunk-ENGXTDTJ.js → chunk-EPLBVWIM.js} +479 -149
- package/dist/{chunk-CKTFH5RQ.js → chunk-ES5JM6V2.js} +2 -2
- package/dist/{chunk-NOQSYYVA.js → chunk-FQJWTRCB.js} +1 -1
- package/dist/{chunk-XORJOW4J.js → chunk-G67R75DG.js} +1 -1
- package/dist/{chunk-SUQSNH4N.js → chunk-GXU3XRI5.js} +3 -3
- package/dist/{chunk-CHFBYRJX.js → chunk-HFYCKIVJ.js} +2 -2
- package/dist/{chunk-LX7AMJIX.js → chunk-HUVSY6NF.js} +2 -2
- package/dist/{chunk-CNCTKOX2.js → chunk-IDCJNL7C.js} +1 -1
- package/dist/{chunk-ZOPLM7G3.js → chunk-IQNT6KAE.js} +1 -1
- package/dist/{chunk-XPRYBSMJ.js → chunk-JBMZS5WO.js} +1 -1
- package/dist/{chunk-BWHBPDYB.js → chunk-JBUHOWIV.js} +1 -1
- package/dist/{chunk-2QRT6G4V.js → chunk-JHFXCYZP.js} +1 -1
- package/dist/{chunk-6XOAK64X.js → chunk-JLHSEBNQ.js} +3 -3
- package/dist/{chunk-5NFBE376.js → chunk-K77WC6HA.js} +12 -0
- package/dist/{chunk-LWQ3PFSR.js → chunk-KRLR26L2.js} +2 -2
- package/dist/{chunk-ZAS43I3E.js → chunk-LUCHTCME.js} +1 -1
- package/dist/{chunk-VXVI75ED.js → chunk-LXP6VRFH.js} +1 -1
- package/dist/{chunk-OMHTKVHC.js → chunk-MPG2FFQS.js} +1 -1
- package/dist/{chunk-43AN2SYJ.js → chunk-N4IJWOIS.js} +2 -2
- package/dist/{chunk-2EBKU2XN.js → chunk-NBV23TC4.js} +157 -8
- package/dist/{chunk-PJPPO6EF.js → chunk-NCJNGQUZ.js} +1 -1
- package/dist/{chunk-2UD2P2LO.js → chunk-NJS4GRIR.js} +1 -1
- package/dist/{chunk-L3GKFCXW.js → chunk-NQU2RTCP.js} +8 -8
- package/dist/{chunk-J2LPDECR.js → chunk-NS7FW3NG.js} +2 -2
- package/dist/{chunk-SL7SYDNI.js → chunk-PQBANSH6.js} +2 -2
- package/dist/{chunk-M4ERGSIO.js → chunk-Q4MZN62R.js} +3 -3
- package/dist/{chunk-MDE2ZNWZ.js → chunk-QQFZID36.js} +1 -1
- package/dist/{chunk-Q4GHOMRW.js → chunk-RM6PJ34R.js} +1 -1
- package/dist/{chunk-Z2EJ234K.js → chunk-RXGTA6YQ.js} +3 -3
- package/dist/{chunk-DEAYJXHL.js → chunk-T3ASODFG.js} +3 -3
- package/dist/{chunk-H3UGSTZH.js → chunk-U3XMIHPD.js} +9 -9
- package/dist/{chunk-DGZJXYK7.js → chunk-UISUGXJU.js} +1 -1
- package/dist/{chunk-4DIB3GXJ.js → chunk-VEU6LVBR.js} +1 -1
- package/dist/{chunk-ZPZFR3EN.js → chunk-VK5IBXXT.js} +5 -5
- package/dist/{chunk-WJH6IM7Q.js → chunk-WQCSGDRG.js} +1 -1
- package/dist/{chunk-CFG73TVV.js → chunk-WQXJIMBO.js} +2 -2
- package/dist/{chunk-NFHSUQ2R.js → chunk-XCGJPZ6H.js} +2 -2
- package/dist/{chunk-JH7CK57B.js → chunk-YDG343II.js} +4 -3
- package/dist/{chunk-L6LDDOYW.js → chunk-YENDNLAD.js} +1 -1
- package/dist/{chunk-QUTBXURR.js → chunk-YUQ7GGAL.js} +4 -3
- package/dist/{chunk-26JSRH2T.js → chunk-YUS7IS3I.js} +8 -8
- package/dist/{chunk-4TKI4VW7.js → chunk-ZZBOV6WA.js} +4 -4
- package/dist/{co-activation-XS7CDNIK.js → co-activation-OCQPRJ2I.js} +2 -2
- package/dist/{co-occurrence-R5D6WB4A.js → co-occurrence-S62AC2BR.js} +2 -2
- package/dist/{crdt-sync-NEINCZF7.js → crdt-sync-VS254UOH.js} +1 -1
- package/dist/{crm-webhook-C2LSU33R.js → crm-webhook-CST5WBNY.js} +2 -2
- package/dist/{cto-delegation-gate-4DLESYKG.js → cto-delegation-gate-2PY563OA.js} +8 -8
- package/dist/{daemon-orchestration-IW3MD56I.js → daemon-orchestration-P34RDHTM.js} +11 -11
- package/dist/{db-backup-C44Q44WQ.js → db-backup-JEHRFLYW.js} +1 -1
- package/dist/dreaming-UF4LPNLV.js +31 -0
- package/dist/{exe-drift-B5ZMICND.js → exe-drift-DOWP33NY.js} +3 -3
- package/dist/{exe-export-WPJD5XA3.js → exe-export-QCB5UOXQ.js} +6 -6
- package/dist/{exe-import-AIGIF253.js → exe-import-JHFIXRB5.js} +6 -6
- package/dist/{exe-key-2C23CONG.js → exe-key-ZVKBTZVI.js} +2 -2
- package/dist/{exe-snapshot-2NZ6BL7S.js → exe-snapshot-LBM3LL3I.js} +24 -6
- package/dist/{fast-db-init-O6Y4G47U.js → fast-db-init-PTUUO2IO.js} +1 -1
- package/dist/gateway/index.js +8 -8
- package/dist/{git-staleness-DFHISHY2.js → git-staleness-5SFBUMPC.js} +2 -2
- package/dist/{git-task-sweep-6P4YPAIY.js → git-task-sweep-XMK5IQXK.js} +9 -9
- package/dist/{global-procedures-45Z53UIF.js → global-procedures-W4U257TI.js} +4 -4
- package/dist/{graph-auto-extract-I37N7WQN.js → graph-auto-extract-5ZD4AUSB.js} +2 -2
- package/dist/hooks/bug-report-worker.js +10 -10
- package/dist/hooks/codex-stop-task-finalizer.js +10 -10
- package/dist/hooks/commit-complete.js +11 -11
- package/dist/hooks/error-recall.js +6 -6
- package/dist/hooks/exe-heartbeat-hook.js +3 -3
- package/dist/hooks/ingest.js +6 -6
- package/dist/hooks/instructions-loaded.js +4 -4
- package/dist/hooks/manifest.json +19 -19
- package/dist/hooks/notification.js +4 -4
- package/dist/hooks/post-compact.js +10 -10
- package/dist/hooks/post-tool-combined.js +21 -4
- package/dist/hooks/pre-compact.js +11 -11
- package/dist/hooks/pre-tool-use.js +14 -14
- package/dist/hooks/prompt-submit.js +20 -20
- package/dist/hooks/session-end.js +28 -15
- package/dist/hooks/session-start.js +10 -10
- package/dist/hooks/stop.js +14 -14
- package/dist/hooks/subagent-stop.js +10 -10
- package/dist/hooks/summary-worker.js +14 -14
- package/dist/index.js +18 -18
- package/dist/{installer-SCPRAYJN.js → installer-2HULECDJ.js} +5 -5
- package/dist/{installer-OSIEPXXH.js → installer-BCOJG2SE.js} +5 -5
- package/dist/{installer-3MSU3GSG.js → installer-N5XZAFE4.js} +5 -5
- package/dist/investigation-tracker-WSCY4XBP.js +410 -0
- package/dist/lib/cloud-sync.js +6 -4
- package/dist/lib/consolidation.js +5 -5
- package/dist/lib/database.js +2 -2
- package/dist/lib/db.js +2 -2
- package/dist/lib/employee-templates.js +5 -5
- package/dist/lib/employees.js +2 -2
- package/dist/lib/exe-daemon.js +343 -68
- package/dist/lib/hybrid-search.js +5 -5
- package/dist/lib/identity.js +2 -2
- package/dist/lib/messaging.js +9 -9
- package/dist/lib/reminders.js +3 -3
- package/dist/lib/schedules.js +5 -5
- package/dist/lib/session-registry.js +4 -4
- package/dist/lib/skill-learning.js +4 -4
- package/dist/lib/store.js +4 -4
- package/dist/lib/task-router.js +3 -3
- package/dist/lib/tasks.js +9 -9
- package/dist/lib/tmux-routing.js +8 -8
- package/dist/lib/token-spend.js +3 -3
- package/dist/mcp/register-tools.js +52 -52
- package/dist/mcp/server.js +53 -53
- package/dist/mcp/tools/complete-reminder.js +4 -4
- package/dist/mcp/tools/create-reminder.js +4 -4
- package/dist/mcp/tools/create-task.js +11 -11
- package/dist/mcp/tools/deactivate-behavior.js +5 -5
- package/dist/mcp/tools/list-reminders.js +4 -4
- package/dist/mcp/tools/list-tasks.js +11 -11
- package/dist/mcp/tools/send-message.js +11 -11
- package/dist/mcp/tools/update-task.js +10 -10
- package/dist/{mcp-http-config-KBPJ4QNG.js → mcp-http-config-RTXPLRH5.js} +3 -3
- package/dist/{memory-cards-ICBAONHA.js → memory-cards-3FBGRV6J.js} +2 -2
- package/dist/{memory-graph-extractor-B33AXVOW.js → memory-graph-extractor-5D3FU5N5.js} +3 -3
- package/dist/{memory-poisoning-defense-KNQGXMQ2.js → memory-poisoning-defense-P6GL2RMF.js} +2 -2
- package/dist/{memory-reflection-H6WTTBDO.js → memory-reflection-5CVV2M3G.js} +2 -2
- package/dist/{notifications-3SVZCDEY.js → notifications-NV54INLG.js} +8 -8
- package/dist/{orchestration-events-PCGTHJ67.js → orchestration-events-TEYCD6GO.js} +3 -3
- package/dist/{orchestrator-46YDSPQI.js → orchestrator-JCNHGP6M.js} +10 -10
- package/dist/{pipeline-router-RCPUSLWO.js → pipeline-router-IX635D3U.js} +3 -3
- package/dist/{plan-limits-4JH2GWCP.js → plan-limits-H65VL6LC.js} +3 -3
- package/dist/{projection-worker-B4TWS2FX.js → projection-worker-JMGAPKH6.js} +1 -1
- package/dist/{reranker-CCAEXD25.js → reranker-T4A2M7K2.js} +1 -1
- package/dist/{review-polling-Z7NRBMHV.js → review-polling-SAQ24T6L.js} +9 -9
- package/dist/runtime/index.js +15 -15
- package/dist/{session-events-TNO5ISQB.js → session-events-JNUK47KH.js} +9 -9
- package/dist/{session-kill-telemetry-6FDEUGO5.js → session-kill-telemetry-GLCDARKV.js} +3 -3
- package/dist/{session-scope-MGHWXZYK.js → session-scope-UR7OFFOB.js} +8 -8
- package/dist/{setup-wizard-5O5OQOXH.js → setup-wizard-GQYG36KS.js} +1 -1
- package/dist/{skill-refinement-Y7N2Q25B.js → skill-refinement-WWWFGTUS.js} +2 -2
- package/dist/{steward-gate-H2VKZNW2.js → steward-gate-TAD7GEVL.js} +3 -3
- package/dist/{task-enforcement-QTVMU2RS.js → task-enforcement-2LI5KWFE.js} +8 -8
- package/dist/{task-scope-YQ6O3DIE.js → task-scope-AYK6BVC7.js} +8 -8
- package/dist/{tasks-crud-ZGQZPZAM.js → tasks-crud-OD75EH2G.js} +8 -8
- package/dist/{tasks-review-EM3YKWOR.js → tasks-review-CC2EGWBL.js} +8 -8
- package/dist/{telemetry-upload-QTBI5CFE.js → telemetry-upload-H6BU6QF7.js} +128 -6
- package/dist/{token-budget-OQ6XR5EK.js → token-budget-6TK55BBU.js} +2 -2
- package/dist/{tool-telemetry-NKCCCPQJ.js → tool-telemetry-E7NWXX5R.js} +1 -1
- package/dist/tui/App.js +17 -17
- package/dist/{tui-data-MSZKTQDJ.js → tui-data-ROOXTJQ5.js} +8 -8
- package/dist/{worker-gate-WQ2BEQTX.js → worker-gate-MOQZ2D34.js} +1 -1
- package/dist/{workflow-engine-YB7OOSAT.js → workflow-engine-4MQJI5F2.js} +2 -2
- package/dist/{worktree-W6OAHIBE.js → worktree-K2GDO4QX.js} +4 -4
- package/package.json +1 -1
- package/release-notes.json +105 -202
- package/dist/dreaming-YKXGUTVR.js +0 -12
- /package/dist/{chunk-MBEF2YKQ.js → chunk-A4TPCHMA.js} +0 -0
- /package/dist/{chunk-5O42LXU7.js → chunk-BJOU5MBY.js} +0 -0
- /package/dist/{chunk-THNAZQIH.js → chunk-EAIZLNLP.js} +0 -0
- /package/dist/{chunk-SDKRRTP6.js → chunk-HFF6YG7R.js} +0 -0
- /package/dist/{chunk-N345XXAA.js → chunk-IAPFFVYR.js} +0 -0
- /package/dist/{chunk-6HYAEYQ3.js → chunk-M5TK7JET.js} +0 -0
- /package/dist/{chunk-VJ6HKJMQ.js → chunk-NNEYTOUS.js} +0 -0
- /package/dist/{chunk-CU6CYZOI.js → chunk-P2JDWX67.js} +0 -0
- /package/dist/{chunk-FUVINDE3.js → chunk-RX2KGETT.js} +0 -0
- /package/dist/{chunk-ARETQ22D.js → chunk-YGJTKLGM.js} +0 -0
- /package/dist/{core-memory-NYBNXCKZ.js → core-memory-67AVQ3Z7.js} +0 -0
- /package/dist/{wiki-acl-RMP5KXYK.js → wiki-acl-AR7RIMRY.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fastDbInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P2JDWX67.js";
|
|
4
4
|
import {
|
|
5
5
|
sessionScopeFilter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ENWFSMOS.js";
|
|
7
7
|
import {
|
|
8
8
|
formatStatusAll,
|
|
9
9
|
formatStatusDeep,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getClient,
|
|
15
15
|
isCoordinatorRole,
|
|
16
16
|
loadEmployees
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2LYJTK47.js";
|
|
18
18
|
import {
|
|
19
19
|
isMainModule
|
|
20
20
|
} from "./chunk-6Y4B3QF6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionScopeFilter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ENWFSMOS.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/git-task-sweep.ts
|
|
6
6
|
import { execSync } from "child_process";
|
|
@@ -178,7 +178,7 @@ async function sweepTasks(projectName, options = {}) {
|
|
|
178
178
|
}
|
|
179
179
|
if (!dryRun) {
|
|
180
180
|
try {
|
|
181
|
-
const { updateTaskStatus } = await import("./tasks-crud-
|
|
181
|
+
const { updateTaskStatus } = await import("./tasks-crud-OD75EH2G.js");
|
|
182
182
|
await updateTaskStatus({
|
|
183
183
|
taskId: task.id,
|
|
184
184
|
status: "needs_review",
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createCRMWebhookHandler,
|
|
21
21
|
parseTwentyWebhook
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2VXHPSIJ.js";
|
|
23
23
|
import {
|
|
24
24
|
OllamaProvider
|
|
25
25
|
} from "./chunk-FWFFZGSC.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
retryWithBackoff,
|
|
50
50
|
routeMessage,
|
|
51
51
|
validateGatewayConfig
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-N4IJWOIS.js";
|
|
53
53
|
import {
|
|
54
54
|
getAccountByName,
|
|
55
55
|
getAccountByPhoneNumberId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MPG2FFQS.js";
|
|
4
4
|
import {
|
|
5
5
|
createTaskCore,
|
|
6
6
|
employeeSessionName,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
isEmployeeAlive,
|
|
10
10
|
sessionScopeFilter,
|
|
11
11
|
updateTaskStatus
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ENWFSMOS.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
15
15
|
getCoordinatorName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2LYJTK47.js";
|
|
17
17
|
|
|
18
18
|
// src/runtime/orchestrator.ts
|
|
19
19
|
var STALE_THRESHOLD_MS = 2 * 60 * 60 * 1e3;
|
|
@@ -256,6 +256,18 @@ var PLATFORM_PROCEDURES = [
|
|
|
256
256
|
priority: "p0",
|
|
257
257
|
content: "When starting any task, you MUST provide a time estimate. Use estimated_minutes and estimate_confidence params on update_task(in_progress). Example: estimated_minutes=60, estimate_confidence=0.6. The system auto-records started_at when you claim a task and auto-computes actual_minutes when you complete it. Your estimation accuracy is tracked per-agent: estimated vs actual, ratio, and pattern (chronic underestimator vs overestimator). If your estimate was wrong, explain why in assertions_resolved with why_wrong='scope_underestimate' or 'scope_overestimate'. Common causes: hidden complexity not visible from initial diagnosis, dependency chains not traced, unfamiliar codebase area. Over time, this calibrates trust: can we rely on your time estimates for planning?"
|
|
258
258
|
},
|
|
259
|
+
{
|
|
260
|
+
title: "Verify your own fix \u2014 NEVER ask the user to test for you",
|
|
261
|
+
domain: "workflow",
|
|
262
|
+
priority: "p0",
|
|
263
|
+
content: "When you claim a bug is fixed, YOU must prove it works. NEVER say 'try it now' or 'go test it'. Run the actual verification yourself: curl the endpoint, use playwright to click the button, run the test suite, check the logs. If you cannot verify it yourself, say 'I cannot verify this \u2014 here is what I changed and why, but I need you to test because [specific reason].' Saying 'fixed' without evidence is a lie. If you said 'fixed' and the user reports it's not fixed, your next assertion on the same bug MUST have confidence \u2264 0.5. After 3 wrong attempts on the same bug, stop and reassess from scratch \u2014 your mental model is wrong. Every failed fix attempt must be logged as a resolved assertion with outcome='incorrect' and why_wrong filled in. This builds the record of what was tried, what failed, and why \u2014 so the next attempt doesn't repeat the same mistake."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
title: "Confidence decay \u2014 lower confidence after each wrong assertion on the same problem",
|
|
267
|
+
domain: "cognition",
|
|
268
|
+
priority: "p0",
|
|
269
|
+
content: "When you make an assertion and it turns out wrong, your next assertion on the SAME problem must have lower confidence. First attempt: use your honest confidence (e.g. 0.8). Second attempt after first was wrong: cap at 0.5. Third attempt: cap at 0.3. After 3 failed assertions on the same problem, STOP. Step back and reassess your entire approach \u2014 your mental model is fundamentally wrong. Do not keep trying variations of the same approach. Read the code again from scratch, check your assumptions, trace the actual execution path. The pattern of 'confident fix \u2192 wrong \u2192 confident fix \u2192 wrong \u2192 repeat' is the worst user experience in AI. It destroys trust faster than admitting 'I don't know.'"
|
|
270
|
+
},
|
|
259
271
|
{
|
|
260
272
|
title: "Use /exe-afk for monitoring \u2014 /loop is deprecated for orchestration",
|
|
261
273
|
domain: "workflow",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildClaudeHttpMcpEntry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RM6PJ34R.js";
|
|
4
4
|
import {
|
|
5
5
|
loadPreferences
|
|
6
6
|
} from "./chunk-GNHN5HRQ.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-L3TB7CC3.js";
|
|
12
12
|
import {
|
|
13
13
|
ensureAllAgentSymlinks
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WQCSGDRG.js";
|
|
15
15
|
import {
|
|
16
16
|
MCP_LEGACY_KEY,
|
|
17
17
|
MCP_PRIMARY_KEY
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ingest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQJWTRCB.js";
|
|
4
4
|
import {
|
|
5
5
|
listWorkflowDefinitions,
|
|
6
6
|
runWorkflow,
|
|
7
7
|
startWorkflow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3JVO6X4W.js";
|
|
9
9
|
import {
|
|
10
10
|
initCRMBridge
|
|
11
11
|
} from "./chunk-ONKIWA3R.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sessionScopeFilter
|
|
3
|
+
} from "./chunk-ENWFSMOS.js";
|
|
1
4
|
import {
|
|
2
5
|
getClient,
|
|
3
6
|
getIdentity
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2LYJTK47.js";
|
|
5
8
|
|
|
6
9
|
// src/lib/dreaming.ts
|
|
7
10
|
var DreamingEngine = class {
|
|
@@ -31,13 +34,15 @@ var DreamingEngine = class {
|
|
|
31
34
|
created_at: String(r.timestamp ?? ""),
|
|
32
35
|
project_name: r.project_name ? String(r.project_name) : null
|
|
33
36
|
}));
|
|
37
|
+
const scope = sessionScopeFilter();
|
|
38
|
+
const scopeClause = scope ? " AND session_scope = ?" : "";
|
|
34
39
|
const taskResult = await client.execute({
|
|
35
40
|
sql: `SELECT id, title, status, assigned_to, result, created_at, updated_at, project_name
|
|
36
41
|
FROM tasks
|
|
37
|
-
WHERE assigned_to = ? AND updated_at >=
|
|
42
|
+
WHERE assigned_to = ? AND updated_at >= ?${scopeClause}
|
|
38
43
|
ORDER BY updated_at DESC
|
|
39
44
|
LIMIT 100`,
|
|
40
|
-
args: [agentId, startISO]
|
|
45
|
+
args: scope ? [agentId, startISO, scope] : [agentId, startISO]
|
|
41
46
|
});
|
|
42
47
|
const tasks = taskResult.rows.map((r) => ({
|
|
43
48
|
id: String(r.id),
|
|
@@ -65,10 +70,60 @@ var DreamingEngine = class {
|
|
|
65
70
|
priority: String(r.priority ?? "p1"),
|
|
66
71
|
created_at: String(r.created_at)
|
|
67
72
|
}));
|
|
73
|
+
let investigations = [];
|
|
74
|
+
try {
|
|
75
|
+
const invResult = await client.execute({
|
|
76
|
+
sql: `SELECT investigation_key,
|
|
77
|
+
COUNT(*) as total,
|
|
78
|
+
SUM(CASE WHEN result != 'pass' THEN 1 ELSE 0 END) as failed,
|
|
79
|
+
SUM(CASE WHEN result != 'pass' THEN duration_ms ELSE 0 END) as wasted_ms,
|
|
80
|
+
failure_category
|
|
81
|
+
FROM investigation_attempts
|
|
82
|
+
WHERE agent_id = ? AND timestamp >= ?
|
|
83
|
+
GROUP BY investigation_key
|
|
84
|
+
ORDER BY failed DESC
|
|
85
|
+
LIMIT 20`,
|
|
86
|
+
args: [agentId, startISO]
|
|
87
|
+
});
|
|
88
|
+
const invMap = /* @__PURE__ */ new Map();
|
|
89
|
+
const catCounts = /* @__PURE__ */ new Map();
|
|
90
|
+
for (const r of invResult.rows) {
|
|
91
|
+
const key = String(r.investigation_key ?? "");
|
|
92
|
+
if (!invMap.has(key)) {
|
|
93
|
+
invMap.set(key, {
|
|
94
|
+
investigationKey: key,
|
|
95
|
+
totalAttempts: Number(r.total ?? 0),
|
|
96
|
+
failedAttempts: Number(r.failed ?? 0),
|
|
97
|
+
topFailureCategory: String(r.failure_category ?? "unknown"),
|
|
98
|
+
wastedMs: Number(r.wasted_ms ?? 0)
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
const cat = String(r.failure_category ?? "unknown");
|
|
102
|
+
if (!catCounts.has(key)) catCounts.set(key, /* @__PURE__ */ new Map());
|
|
103
|
+
catCounts.get(key).set(cat, (catCounts.get(key).get(cat) ?? 0) + Number(r.failed ?? 0));
|
|
104
|
+
}
|
|
105
|
+
for (const [key, rec] of invMap) {
|
|
106
|
+
const cats = catCounts.get(key);
|
|
107
|
+
if (cats) {
|
|
108
|
+
let topCat = "unknown";
|
|
109
|
+
let topCount = 0;
|
|
110
|
+
for (const [cat, count] of cats) {
|
|
111
|
+
if (count > topCount) {
|
|
112
|
+
topCat = cat;
|
|
113
|
+
topCount = count;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
rec.topFailureCategory = topCat;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
investigations = Array.from(invMap.values());
|
|
120
|
+
} catch {
|
|
121
|
+
}
|
|
68
122
|
return {
|
|
69
123
|
memories,
|
|
70
124
|
tasks,
|
|
71
125
|
behaviors,
|
|
126
|
+
investigations,
|
|
72
127
|
period: { start: startISO, end: endISO }
|
|
73
128
|
};
|
|
74
129
|
}
|
|
@@ -134,6 +189,38 @@ var DreamingEngine = class {
|
|
|
134
189
|
confidence: 0.7
|
|
135
190
|
});
|
|
136
191
|
}
|
|
192
|
+
if (review.investigations.length > 0) {
|
|
193
|
+
const catTotals = /* @__PURE__ */ new Map();
|
|
194
|
+
let totalFailed = 0;
|
|
195
|
+
let totalAttempts = 0;
|
|
196
|
+
let totalWastedMs = 0;
|
|
197
|
+
for (const inv of review.investigations) {
|
|
198
|
+
totalAttempts += inv.totalAttempts;
|
|
199
|
+
totalFailed += inv.failedAttempts;
|
|
200
|
+
totalWastedMs += inv.wastedMs;
|
|
201
|
+
catTotals.set(inv.topFailureCategory, (catTotals.get(inv.topFailureCategory) ?? 0) + inv.failedAttempts);
|
|
202
|
+
}
|
|
203
|
+
if (totalAttempts > 0 && totalFailed / totalAttempts > 0.5) {
|
|
204
|
+
patterns.push({
|
|
205
|
+
type: "mistake",
|
|
206
|
+
description: `Investigation failure rate: ${Math.round(totalFailed / totalAttempts * 100)}% of ${totalAttempts} attempts failed (${Math.round(totalWastedMs / 6e4)}min wasted)`,
|
|
207
|
+
evidence: review.investigations.map((i) => `${i.investigationKey}: ${i.failedAttempts}/${i.totalAttempts} failed (${i.topFailureCategory})`),
|
|
208
|
+
frequency: totalFailed,
|
|
209
|
+
confidence: Math.min(0.6 + totalFailed * 0.05, 0.95)
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
const sortedCats = Array.from(catTotals.entries()).sort(([, a], [, b]) => b - a);
|
|
213
|
+
if (sortedCats.length > 0 && sortedCats[0][1] >= 2) {
|
|
214
|
+
const [topCat, topCount] = sortedCats[0];
|
|
215
|
+
patterns.push({
|
|
216
|
+
type: "inefficiency",
|
|
217
|
+
description: `Top debugging failure: "${topCat}" (${topCount} times). ${topCat === "lack_of_context" ? "Agent didn't have enough code context before editing" : topCat === "lack_of_tools" ? "Agent couldn't verify the fix (missing tools)" : topCat === "lack_of_reasoning" ? "Agent had the info but drew wrong conclusion" : topCat === "lack_of_measurement" ? "Agent tested the wrong thing (API vs browser)" : topCat === "wrong_diagnosis" ? "Agent misidentified the root cause" : "Recurring failure pattern"}`,
|
|
218
|
+
evidence: review.investigations.filter((i) => i.topFailureCategory === topCat).map((i) => `${i.investigationKey}: ${i.failedAttempts} failed attempts`),
|
|
219
|
+
frequency: topCount,
|
|
220
|
+
confidence: Math.min(0.7 + topCount * 0.05, 0.95)
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
137
224
|
return patterns;
|
|
138
225
|
}
|
|
139
226
|
/**
|
|
@@ -163,7 +250,47 @@ var DreamingEngine = class {
|
|
|
163
250
|
});
|
|
164
251
|
break;
|
|
165
252
|
case "inefficiency":
|
|
166
|
-
if (pattern.description.includes("
|
|
253
|
+
if (pattern.description.includes("lack_of_context")) {
|
|
254
|
+
proposals.push({
|
|
255
|
+
text: "Before editing any file for a bug fix, run code_context(action='search') and code_context(action='trace') to understand the full call chain. You've been editing without enough context.",
|
|
256
|
+
priority: "p0",
|
|
257
|
+
domain: "investigation",
|
|
258
|
+
rationale: `Pattern: ${pattern.description}`,
|
|
259
|
+
source_pattern: pattern
|
|
260
|
+
});
|
|
261
|
+
} else if (pattern.description.includes("lack_of_measurement")) {
|
|
262
|
+
proposals.push({
|
|
263
|
+
text: "After every fix, test the ACTUAL user flow (playwright for frontend, curl for API) \u2014 not just the build. You've been testing at the wrong level.",
|
|
264
|
+
priority: "p0",
|
|
265
|
+
domain: "investigation",
|
|
266
|
+
rationale: `Pattern: ${pattern.description}`,
|
|
267
|
+
source_pattern: pattern
|
|
268
|
+
});
|
|
269
|
+
} else if (pattern.description.includes("lack_of_tools")) {
|
|
270
|
+
proposals.push({
|
|
271
|
+
text: "You lack verification tools for this type of work. Before starting, check: do you have playwright for browser testing? curl for API testing? Access to logs? Request what you need before guessing.",
|
|
272
|
+
priority: "p0",
|
|
273
|
+
domain: "investigation",
|
|
274
|
+
rationale: `Pattern: ${pattern.description}`,
|
|
275
|
+
source_pattern: pattern
|
|
276
|
+
});
|
|
277
|
+
} else if (pattern.description.includes("lack_of_reasoning")) {
|
|
278
|
+
proposals.push({
|
|
279
|
+
text: "Trace the actual execution path step-by-step instead of guessing from code reading. Read the logs, add console.log, check the actual HTTP request \u2014 don't reason about what SHOULD happen.",
|
|
280
|
+
priority: "p0",
|
|
281
|
+
domain: "investigation",
|
|
282
|
+
rationale: `Pattern: ${pattern.description}`,
|
|
283
|
+
source_pattern: pattern
|
|
284
|
+
});
|
|
285
|
+
} else if (pattern.description.includes("wrong_diagnosis")) {
|
|
286
|
+
proposals.push({
|
|
287
|
+
text: "Run blast_radius before editing. Your diagnoses are hitting the wrong target. Understand what the change affects across the full dependency chain before committing to a fix.",
|
|
288
|
+
priority: "p0",
|
|
289
|
+
domain: "investigation",
|
|
290
|
+
rationale: `Pattern: ${pattern.description}`,
|
|
291
|
+
source_pattern: pattern
|
|
292
|
+
});
|
|
293
|
+
} else if (pattern.description.includes("behavior churn")) {
|
|
167
294
|
proposals.push({
|
|
168
295
|
text: `Review existing behaviors before creating new ones \u2014 high churn detected (${pattern.frequency} in period).`,
|
|
169
296
|
priority: "p1",
|
|
@@ -284,15 +411,17 @@ var DreamingEngine = class {
|
|
|
284
411
|
};
|
|
285
412
|
try {
|
|
286
413
|
const isAllAgents = agentId === "*";
|
|
414
|
+
const scope = sessionScopeFilter();
|
|
415
|
+
const scopeClause = scope ? " AND session_scope = ?" : "";
|
|
287
416
|
const tasks = await client.execute({
|
|
288
417
|
sql: isAllAgents ? `SELECT assertions, estimated_minutes, actual_minutes, estimate_confidence
|
|
289
418
|
FROM tasks WHERE updated_at >= ?
|
|
290
419
|
AND status IN ('needs_review', 'closed')
|
|
291
|
-
AND (assertions IS NOT NULL OR estimated_minutes IS NOT NULL)` : `SELECT assertions, estimated_minutes, actual_minutes, estimate_confidence
|
|
420
|
+
AND (assertions IS NOT NULL OR estimated_minutes IS NOT NULL)${scopeClause}` : `SELECT assertions, estimated_minutes, actual_minutes, estimate_confidence
|
|
292
421
|
FROM tasks WHERE assigned_to = ? AND updated_at >= ?
|
|
293
422
|
AND status IN ('needs_review', 'closed')
|
|
294
|
-
AND (assertions IS NOT NULL OR estimated_minutes IS NOT NULL)`,
|
|
295
|
-
args: isAllAgents ? [since] : [agentId, since]
|
|
423
|
+
AND (assertions IS NOT NULL OR estimated_minutes IS NOT NULL)${scopeClause}`,
|
|
424
|
+
args: isAllAgents ? scope ? [since, scope] : [since] : scope ? [agentId, since, scope] : [agentId, since]
|
|
296
425
|
});
|
|
297
426
|
for (const row of tasks.rows) {
|
|
298
427
|
try {
|
|
@@ -342,6 +471,27 @@ var DreamingEngine = class {
|
|
|
342
471
|
const proposals = this.proposeBehaviors(patterns);
|
|
343
472
|
const drift = this.calculateDrift(agentId, review);
|
|
344
473
|
const calibration = await this.computeCalibration(agentId, hours);
|
|
474
|
+
const client = getClient();
|
|
475
|
+
try {
|
|
476
|
+
const { scoreBehaviors, detectConflicts, measureBehaviorLoad } = await import("./behavior-effectiveness-UP76GMOC.js");
|
|
477
|
+
const scores = await scoreBehaviors(agentId);
|
|
478
|
+
const conflicts = await detectConflicts(agentId);
|
|
479
|
+
await measureBehaviorLoad(agentId);
|
|
480
|
+
for (const score of scores) {
|
|
481
|
+
if (score.recommendation === "deactivate") {
|
|
482
|
+
await client.execute({
|
|
483
|
+
sql: "UPDATE behaviors SET active = 0, updated_at = ? WHERE id = ?",
|
|
484
|
+
args: [(/* @__PURE__ */ new Date()).toISOString(), score.behaviorId]
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
const deactivateCount = scores.filter((s) => s.recommendation === "deactivate").length;
|
|
489
|
+
if (conflicts.length > 0 || deactivateCount > 0) {
|
|
490
|
+
process.stderr.write(`[dreaming] Behavior health: ${conflicts.length} conflicts, ${deactivateCount} ineffective
|
|
491
|
+
`);
|
|
492
|
+
}
|
|
493
|
+
} catch {
|
|
494
|
+
}
|
|
345
495
|
const result = {
|
|
346
496
|
review,
|
|
347
497
|
patterns,
|
|
@@ -351,7 +501,6 @@ var DreamingEngine = class {
|
|
|
351
501
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
352
502
|
};
|
|
353
503
|
try {
|
|
354
|
-
const client = getClient();
|
|
355
504
|
const { randomUUID } = await import("crypto");
|
|
356
505
|
const id = randomUUID();
|
|
357
506
|
const calLines = [];
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
findScopedDuplicate,
|
|
7
7
|
governMemoryRecord,
|
|
8
8
|
schedulePostWriteMemoryHygiene
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IAPFFVYR.js";
|
|
10
10
|
import {
|
|
11
11
|
orgBus
|
|
12
12
|
} from "./chunk-MP2AFCGL.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ensureSchema,
|
|
16
16
|
getClient,
|
|
17
17
|
initTurso
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2LYJTK47.js";
|
|
19
19
|
import {
|
|
20
20
|
EMBEDDING_DIM
|
|
21
21
|
} from "./chunk-FXU7JOXK.js";
|
|
@@ -65,7 +65,7 @@ function recordShardFailure(project, error) {
|
|
|
65
65
|
`[store] Shard circuit OPEN for "${project}" after ${state.failures} consecutive failures. Will retry in ${SHARD_CB_COOLDOWN_MS / 6e4}min. Last error: ${error}
|
|
66
66
|
`
|
|
67
67
|
);
|
|
68
|
-
void import("./orchestration-events-
|
|
68
|
+
void import("./orchestration-events-TEYCD6GO.js").then(({ recordOrchestrationEventBestEffort }) => {
|
|
69
69
|
recordOrchestrationEventBestEffort({
|
|
70
70
|
eventType: "shard.circuit_open",
|
|
71
71
|
source: "store.recordShardFailure",
|
|
@@ -162,7 +162,7 @@ async function initStore(options) {
|
|
|
162
162
|
);
|
|
163
163
|
_nextVersion = (Number(vResult.rows[0]?.max_v) || 0) + 1;
|
|
164
164
|
try {
|
|
165
|
-
const { loadGlobalProcedures } = await import("./global-procedures-
|
|
165
|
+
const { loadGlobalProcedures } = await import("./global-procedures-W4U257TI.js");
|
|
166
166
|
await loadGlobalProcedures();
|
|
167
167
|
} catch (e) {
|
|
168
168
|
logStoreWarn("catch", e);
|
|
@@ -290,7 +290,7 @@ async function writeMemory(record) {
|
|
|
290
290
|
founder_id: record.founder_id ?? null
|
|
291
291
|
};
|
|
292
292
|
try {
|
|
293
|
-
const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-
|
|
293
|
+
const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-P6GL2RMF.js");
|
|
294
294
|
const poisonResult = await checkMemoryPoisoning({
|
|
295
295
|
memoryId: dbRow.id,
|
|
296
296
|
vector: Array.isArray(dbRow.vector) ? dbRow.vector : void 0,
|
|
@@ -478,19 +478,19 @@ async function flushBatch() {
|
|
|
478
478
|
}
|
|
479
479
|
_nextVersion = baseVersion;
|
|
480
480
|
try {
|
|
481
|
-
const { insertMemoryCardsForBatch } = await import("./memory-cards-
|
|
481
|
+
const { insertMemoryCardsForBatch } = await import("./memory-cards-3FBGRV6J.js");
|
|
482
482
|
await insertMemoryCardsForBatch(batch);
|
|
483
483
|
} catch (e) {
|
|
484
484
|
logStoreWarn("catch", e);
|
|
485
485
|
}
|
|
486
486
|
try {
|
|
487
|
-
const { insertOntologyForBatch } = await import("./agentic-ontology-
|
|
487
|
+
const { insertOntologyForBatch } = await import("./agentic-ontology-NBU3FHEX.js");
|
|
488
488
|
await insertOntologyForBatch(batch);
|
|
489
489
|
} catch (e) {
|
|
490
490
|
logStoreWarn("catch", e);
|
|
491
491
|
}
|
|
492
492
|
try {
|
|
493
|
-
const { extractGraphForBatch } = await import("./memory-graph-extractor-
|
|
493
|
+
const { extractGraphForBatch } = await import("./memory-graph-extractor-5D3FU5N5.js");
|
|
494
494
|
await extractGraphForBatch(batch);
|
|
495
495
|
} catch (e) {
|
|
496
496
|
logStoreWarn("catch", e);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLATFORM_PROCEDURES,
|
|
3
3
|
PLATFORM_PROCEDURE_TITLES
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K77WC6HA.js";
|
|
5
5
|
import {
|
|
6
6
|
getClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2LYJTK47.js";
|
|
8
8
|
|
|
9
9
|
// src/lib/global-procedures.ts
|
|
10
10
|
import { randomUUID } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VK5IBXXT.js";
|
|
4
4
|
import {
|
|
5
5
|
TASK_ALREADY_CLAIMED_PREFIX
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ENWFSMOS.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/tools/update-task.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -39,7 +39,7 @@ function registerUpdateTask(server) {
|
|
|
39
39
|
const status = rawStatus;
|
|
40
40
|
let callerAgentId;
|
|
41
41
|
try {
|
|
42
|
-
const { getActiveAgent: getAgent } = await import("./active-agent-
|
|
42
|
+
const { getActiveAgent: getAgent } = await import("./active-agent-6WX7GZBH.js");
|
|
43
43
|
callerAgentId = getAgent().agentId;
|
|
44
44
|
} catch {
|
|
45
45
|
}
|
|
@@ -859,7 +859,7 @@ function formatReport(report, flags) {
|
|
|
859
859
|
return lines.join("\n");
|
|
860
860
|
}
|
|
861
861
|
async function fixNullVectors() {
|
|
862
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-
|
|
862
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-MOQZ2D34.js");
|
|
863
863
|
if (!tryAcquireWorkerSlot()) {
|
|
864
864
|
process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
|
|
865
865
|
await new Promise((r) => setTimeout(r, 5e3));
|
|
@@ -982,7 +982,7 @@ function splitAtSentences(text, maxChunkSize) {
|
|
|
982
982
|
}
|
|
983
983
|
async function main(argv = process.argv.slice(2)) {
|
|
984
984
|
const flags = parseFlags(argv);
|
|
985
|
-
const { fastDbInit } = await import("./fast-db-init-
|
|
985
|
+
const { fastDbInit } = await import("./fast-db-init-PTUUO2IO.js");
|
|
986
986
|
const client = await fastDbInit();
|
|
987
987
|
const report = await runAudit(client, flags);
|
|
988
988
|
console.log(formatReport(report, flags));
|
|
@@ -993,7 +993,7 @@ ${mode} Applying repairs...
|
|
|
993
993
|
`);
|
|
994
994
|
if (!flags.dryRun) {
|
|
995
995
|
try {
|
|
996
|
-
const { createBackup } = await import("./db-backup-
|
|
996
|
+
const { createBackup } = await import("./db-backup-JEHRFLYW.js");
|
|
997
997
|
const backupPath = createBackup("pre-fix");
|
|
998
998
|
if (backupPath) {
|
|
999
999
|
console.log(` Backup created: ${backupPath.split("/").pop()}`);
|