@goondocks/myco 0.17.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{agent-run-ZDHXORE2.js → agent-run-7AYHXIEF.js} +7 -7
- package/dist/{agent-tasks-IPUWMMDZ.js → agent-tasks-UUIFKBD4.js} +7 -7
- package/dist/{chunk-VGVRBSLC.js → chunk-25WHTV4N.js} +2 -2
- package/dist/{chunk-ZUSTCXHT.js → chunk-3NCVCGUZ.js} +3 -3
- package/dist/chunk-5NFJTZ64.js +14 -0
- package/dist/chunk-5NFJTZ64.js.map +1 -0
- package/dist/{chunk-2WRXLYG6.js → chunk-5ZISXCDC.js} +2 -2
- package/dist/{chunk-6SDC6V3N.js → chunk-7DAH5GLC.js} +1 -5
- package/dist/{chunk-6SDC6V3N.js.map → chunk-7DAH5GLC.js.map} +1 -1
- package/dist/{chunk-XVWJ273L.js → chunk-BZDZORVP.js} +4 -4
- package/dist/{chunk-KKEMVH6D.js → chunk-C3C5QVLK.js} +2 -2
- package/dist/{chunk-MSM775XQ.js → chunk-CTF7TQMJ.js} +4 -4
- package/dist/{chunk-CPL76CYD.js → chunk-DT42247G.js} +3 -3
- package/dist/{chunk-VQQ57UPG.js → chunk-F6C4IC6R.js} +4 -4
- package/dist/{chunk-VQQ57UPG.js.map → chunk-F6C4IC6R.js.map} +1 -1
- package/dist/{chunk-SODRR3HE.js → chunk-GFR542SM.js} +1 -1
- package/dist/chunk-GFR542SM.js.map +1 -0
- package/dist/{chunk-QQ7CXA7Q.js → chunk-HPZ7YAMA.js} +95 -10
- package/dist/{chunk-QQ7CXA7Q.js.map → chunk-HPZ7YAMA.js.map} +1 -1
- package/dist/{chunk-GBYLHPML.js → chunk-IGBHLFV5.js} +2 -2
- package/dist/{chunk-DKSQMH5X.js → chunk-ML6GTPZU.js} +2 -2
- package/dist/{chunk-QBB6LX57.js → chunk-NUSTG3BH.js} +3 -3
- package/dist/{chunk-2IJ6C63F.js → chunk-RKPTMHED.js} +2 -2
- package/dist/{chunk-YTOD6L6N.js → chunk-RMJPQZGF.js} +97 -7
- package/dist/chunk-RMJPQZGF.js.map +1 -0
- package/dist/{chunk-PFF4KB4O.js → chunk-SI5BBQAT.js} +2 -2
- package/dist/{chunk-OGNEW5CN.js → chunk-UTLWSKDV.js} +2 -2
- package/dist/{chunk-4JPUC6RL.js → chunk-VVGZL2HX.js} +2 -3
- package/dist/{chunk-4JPUC6RL.js.map → chunk-VVGZL2HX.js.map} +1 -1
- package/dist/{chunk-FEX6ALLH.js → chunk-XD3NEN3Q.js} +29 -3
- package/dist/chunk-XD3NEN3Q.js.map +1 -0
- package/dist/{chunk-U63GDHYJ.js → chunk-XZWFMMJR.js} +3 -3
- package/dist/{chunk-UDBCAFXS.js → chunk-ZSJPI5MS.js} +2 -2
- package/dist/{cli-BRDOPJW3.js → cli-WJVYP2QT.js} +40 -40
- package/dist/{client-AQZMD3LB.js → client-LZ3ZR4HC.js} +4 -4
- package/dist/{config-K3CJEFFO.js → config-ZQIMG3FB.js} +4 -4
- package/dist/{detect-providers-OE6HWW3M.js → detect-providers-C64L3QET.js} +4 -4
- package/dist/{doctor-YOUCIJJY.js → doctor-XEPBNHM3.js} +12 -12
- package/dist/doctor-XEPBNHM3.js.map +1 -0
- package/dist/{executor-UYNV4EOQ.js → executor-NXKJU5KW.js} +29 -110
- package/dist/executor-NXKJU5KW.js.map +1 -0
- package/dist/{init-MTMEFG4E.js → init-BHVQAQ27.js} +55 -73
- package/dist/init-BHVQAQ27.js.map +1 -0
- package/dist/{installer-CTWQB4RS.js → installer-45ZLP2RP.js} +2 -2
- package/dist/{llm-PGETQHZ2.js → llm-KTD6SR55.js} +4 -7
- package/dist/{loader-J56KP27U.js → loader-NEX3UF6U.js} +3 -3
- package/dist/{loader-AVWL7PNO.js → loader-SHRKUKOS.js} +3 -3
- package/dist/{main-ZIMYW2AB.js → main-YFVBIRRK.js} +153 -58
- package/dist/main-YFVBIRRK.js.map +1 -0
- package/dist/{open-77QXL7VY.js → open-2U7ZRGA3.js} +11 -10
- package/dist/open-2U7ZRGA3.js.map +1 -0
- package/dist/open-browser-EBKBAYSM.js +9 -0
- package/dist/{post-compact-CA7O7QPL.js → post-compact-QIBMEWL3.js} +6 -6
- package/dist/{post-tool-use-JNXJIGNK.js → post-tool-use-ICGFXDVY.js} +5 -5
- package/dist/{post-tool-use-failure-V52CZWVZ.js → post-tool-use-failure-C7TLH3XQ.js} +6 -6
- package/dist/{pre-compact-J2GSDQCJ.js → pre-compact-IF7K4TQK.js} +6 -6
- package/dist/{provider-check-CESRPIY5.js → provider-check-LTLQ6BUZ.js} +4 -4
- package/dist/{registry-SPKP2WLI.js → registry-TFQ22Z7N.js} +4 -4
- package/dist/{remove-ODPLWK7O.js → remove-FBGM2QVJ.js} +8 -8
- package/dist/{resolution-events-CLDXZF67.js → resolution-events-HGKIJOTA.js} +4 -4
- package/dist/{restart-6KKZODOI.js → restart-TQEECRNW.js} +8 -8
- package/dist/{search-U6N2DSOI.js → search-NN5FC4Z6.js} +8 -8
- package/dist/{server-SP4G7MY7.js → server-XMWJ4GF7.js} +4 -4
- package/dist/{session-6R3RNVKD.js → session-GLPAFYPO.js} +9 -9
- package/dist/{session-end-TCFCYDBL.js → session-end-TI3ILRBC.js} +5 -5
- package/dist/{session-start-XXN2TVNI.js → session-start-PJLJDVJJ.js} +10 -10
- package/dist/{setup-llm-GISFI73Z.js → setup-llm-AQSWLXCZ.js} +9 -9
- package/dist/src/cli.js +1 -1
- package/dist/src/daemon/main.js +1 -1
- package/dist/src/hooks/post-tool-use.js +1 -1
- package/dist/src/hooks/session-end.js +1 -1
- package/dist/src/hooks/session-start.js +1 -1
- package/dist/src/hooks/stop.js +1 -1
- package/dist/src/hooks/user-prompt-submit.js +1 -1
- package/dist/src/mcp/server.js +1 -1
- package/dist/src/symbionts/templates/claude-code/hooks.json +12 -12
- package/dist/src/symbionts/templates/codex/hooks.json +4 -4
- package/dist/src/symbionts/templates/cursor/hooks.json +9 -9
- package/dist/src/symbionts/templates/gemini/hooks.json +6 -6
- package/dist/src/symbionts/templates/opencode/plugin.ts +53 -10
- package/dist/src/symbionts/templates/vscode-copilot/hooks.json +7 -7
- package/dist/src/symbionts/templates/windsurf/hooks.json +4 -4
- package/dist/{stats-MYQD4OVD.js → stats-BISBIBXZ.js} +9 -9
- package/dist/{stop-K6TDJORY.js → stop-47BJ42EO.js} +5 -5
- package/dist/{stop-failure-U635O5A3.js → stop-failure-VU5BTLWX.js} +6 -6
- package/dist/{subagent-start-LLGQBC5Q.js → subagent-start-SPTKQRHU.js} +6 -6
- package/dist/{subagent-stop-BO3GZWXD.js → subagent-stop-UU75BYLC.js} +6 -6
- package/dist/{task-completed-3ZJHSI2E.js → task-completed-MVDO7TZF.js} +6 -6
- package/dist/{team-OJLQCVE3.js → team-7X64J4Y6.js} +4 -4
- package/dist/ui/assets/index-CRmkSi63.css +1 -0
- package/dist/ui/assets/index-rpmSpJpm.js +842 -0
- package/dist/ui/index.html +2 -2
- package/dist/{update-HR7WMESA.js → update-DA7VEXOS.js} +8 -8
- package/dist/{user-prompt-submit-NM73R4I3.js → user-prompt-submit-ADZ4NTVO.js} +5 -5
- package/dist/{verify-PSERIZPF.js → verify-QYSERHF7.js} +5 -8
- package/dist/{verify-PSERIZPF.js.map → verify-QYSERHF7.js.map} +1 -1
- package/dist/{version-YCODQZSX.js → version-A72TAL2J.js} +2 -2
- package/package.json +6 -2
- package/dist/chunk-FEX6ALLH.js.map +0 -1
- package/dist/chunk-KGL5QSDN.js +0 -66
- package/dist/chunk-KGL5QSDN.js.map +0 -1
- package/dist/chunk-SODRR3HE.js.map +0 -1
- package/dist/chunk-U3SSOSIR.js +0 -26
- package/dist/chunk-U3SSOSIR.js.map +0 -1
- package/dist/chunk-Y7QCKCEJ.js +0 -26
- package/dist/chunk-Y7QCKCEJ.js.map +0 -1
- package/dist/chunk-YTOD6L6N.js.map +0 -1
- package/dist/doctor-YOUCIJJY.js.map +0 -1
- package/dist/executor-UYNV4EOQ.js.map +0 -1
- package/dist/init-MTMEFG4E.js.map +0 -1
- package/dist/init-wizard-ZS3CV6CM.js +0 -294
- package/dist/init-wizard-ZS3CV6CM.js.map +0 -1
- package/dist/main-ZIMYW2AB.js.map +0 -1
- package/dist/open-77QXL7VY.js.map +0 -1
- package/dist/openai-embeddings-LZKY6RV5.js +0 -14
- package/dist/openrouter-UTOZG6Z5.js +0 -14
- package/dist/ui/assets/index-2UyTdjlV.js +0 -842
- package/dist/ui/assets/index-Cts1wLEW.css +0 -1
- package/dist/version-YCODQZSX.js.map +0 -1
- /package/dist/{agent-run-ZDHXORE2.js.map → agent-run-7AYHXIEF.js.map} +0 -0
- /package/dist/{agent-tasks-IPUWMMDZ.js.map → agent-tasks-UUIFKBD4.js.map} +0 -0
- /package/dist/{chunk-VGVRBSLC.js.map → chunk-25WHTV4N.js.map} +0 -0
- /package/dist/{chunk-ZUSTCXHT.js.map → chunk-3NCVCGUZ.js.map} +0 -0
- /package/dist/{chunk-2WRXLYG6.js.map → chunk-5ZISXCDC.js.map} +0 -0
- /package/dist/{chunk-XVWJ273L.js.map → chunk-BZDZORVP.js.map} +0 -0
- /package/dist/{chunk-KKEMVH6D.js.map → chunk-C3C5QVLK.js.map} +0 -0
- /package/dist/{chunk-MSM775XQ.js.map → chunk-CTF7TQMJ.js.map} +0 -0
- /package/dist/{chunk-CPL76CYD.js.map → chunk-DT42247G.js.map} +0 -0
- /package/dist/{chunk-GBYLHPML.js.map → chunk-IGBHLFV5.js.map} +0 -0
- /package/dist/{chunk-DKSQMH5X.js.map → chunk-ML6GTPZU.js.map} +0 -0
- /package/dist/{chunk-QBB6LX57.js.map → chunk-NUSTG3BH.js.map} +0 -0
- /package/dist/{chunk-2IJ6C63F.js.map → chunk-RKPTMHED.js.map} +0 -0
- /package/dist/{chunk-PFF4KB4O.js.map → chunk-SI5BBQAT.js.map} +0 -0
- /package/dist/{chunk-OGNEW5CN.js.map → chunk-UTLWSKDV.js.map} +0 -0
- /package/dist/{chunk-U63GDHYJ.js.map → chunk-XZWFMMJR.js.map} +0 -0
- /package/dist/{chunk-UDBCAFXS.js.map → chunk-ZSJPI5MS.js.map} +0 -0
- /package/dist/{cli-BRDOPJW3.js.map → cli-WJVYP2QT.js.map} +0 -0
- /package/dist/{client-AQZMD3LB.js.map → client-LZ3ZR4HC.js.map} +0 -0
- /package/dist/{config-K3CJEFFO.js.map → config-ZQIMG3FB.js.map} +0 -0
- /package/dist/{detect-providers-OE6HWW3M.js.map → detect-providers-C64L3QET.js.map} +0 -0
- /package/dist/{installer-CTWQB4RS.js.map → installer-45ZLP2RP.js.map} +0 -0
- /package/dist/{llm-PGETQHZ2.js.map → llm-KTD6SR55.js.map} +0 -0
- /package/dist/{loader-AVWL7PNO.js.map → loader-NEX3UF6U.js.map} +0 -0
- /package/dist/{loader-J56KP27U.js.map → loader-SHRKUKOS.js.map} +0 -0
- /package/dist/{openai-embeddings-LZKY6RV5.js.map → open-browser-EBKBAYSM.js.map} +0 -0
- /package/dist/{post-compact-CA7O7QPL.js.map → post-compact-QIBMEWL3.js.map} +0 -0
- /package/dist/{post-tool-use-JNXJIGNK.js.map → post-tool-use-ICGFXDVY.js.map} +0 -0
- /package/dist/{post-tool-use-failure-V52CZWVZ.js.map → post-tool-use-failure-C7TLH3XQ.js.map} +0 -0
- /package/dist/{pre-compact-J2GSDQCJ.js.map → pre-compact-IF7K4TQK.js.map} +0 -0
- /package/dist/{openrouter-UTOZG6Z5.js.map → provider-check-LTLQ6BUZ.js.map} +0 -0
- /package/dist/{provider-check-CESRPIY5.js.map → registry-TFQ22Z7N.js.map} +0 -0
- /package/dist/{remove-ODPLWK7O.js.map → remove-FBGM2QVJ.js.map} +0 -0
- /package/dist/{registry-SPKP2WLI.js.map → resolution-events-HGKIJOTA.js.map} +0 -0
- /package/dist/{restart-6KKZODOI.js.map → restart-TQEECRNW.js.map} +0 -0
- /package/dist/{search-U6N2DSOI.js.map → search-NN5FC4Z6.js.map} +0 -0
- /package/dist/{server-SP4G7MY7.js.map → server-XMWJ4GF7.js.map} +0 -0
- /package/dist/{session-6R3RNVKD.js.map → session-GLPAFYPO.js.map} +0 -0
- /package/dist/{session-end-TCFCYDBL.js.map → session-end-TI3ILRBC.js.map} +0 -0
- /package/dist/{session-start-XXN2TVNI.js.map → session-start-PJLJDVJJ.js.map} +0 -0
- /package/dist/{setup-llm-GISFI73Z.js.map → setup-llm-AQSWLXCZ.js.map} +0 -0
- /package/dist/{stats-MYQD4OVD.js.map → stats-BISBIBXZ.js.map} +0 -0
- /package/dist/{stop-K6TDJORY.js.map → stop-47BJ42EO.js.map} +0 -0
- /package/dist/{stop-failure-U635O5A3.js.map → stop-failure-VU5BTLWX.js.map} +0 -0
- /package/dist/{subagent-start-LLGQBC5Q.js.map → subagent-start-SPTKQRHU.js.map} +0 -0
- /package/dist/{subagent-stop-BO3GZWXD.js.map → subagent-stop-UU75BYLC.js.map} +0 -0
- /package/dist/{task-completed-3ZJHSI2E.js.map → task-completed-MVDO7TZF.js.map} +0 -0
- /package/dist/{team-OJLQCVE3.js.map → team-7X64J4Y6.js.map} +0 -0
- /package/dist/{update-HR7WMESA.js.map → update-DA7VEXOS.js.map} +0 -0
- /package/dist/{user-prompt-submit-NM73R4I3.js.map → user-prompt-submit-ADZ4NTVO.js.map} +0 -0
- /package/dist/{resolution-events-CLDXZF67.js.map → version-A72TAL2J.js.map} +0 -0
|
@@ -3,6 +3,9 @@ import {
|
|
|
3
3
|
DaemonLogger,
|
|
4
4
|
LEVEL_ORDER
|
|
5
5
|
} from "./chunk-MVBCON4D.js";
|
|
6
|
+
import {
|
|
7
|
+
withTaskConfig
|
|
8
|
+
} from "./chunk-GFR542SM.js";
|
|
6
9
|
import {
|
|
7
10
|
EMBEDDABLE_TABLES,
|
|
8
11
|
EMBEDDABLE_TEXT_COLUMNS,
|
|
@@ -12,7 +15,16 @@ import {
|
|
|
12
15
|
getEmbeddingQueueDepth,
|
|
13
16
|
getUnembedded,
|
|
14
17
|
markEmbedded
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BZDZORVP.js";
|
|
19
|
+
import {
|
|
20
|
+
loadSecrets,
|
|
21
|
+
readSecrets,
|
|
22
|
+
writeSecret
|
|
23
|
+
} from "./chunk-RJMXDUMA.js";
|
|
24
|
+
import {
|
|
25
|
+
Anthropic,
|
|
26
|
+
createEmbeddingProvider
|
|
27
|
+
} from "./chunk-HPZ7YAMA.js";
|
|
16
28
|
import {
|
|
17
29
|
buildTaskInstruction,
|
|
18
30
|
closeOpenBatches,
|
|
@@ -38,6 +50,7 @@ import {
|
|
|
38
50
|
getRun,
|
|
39
51
|
getSkillRecord,
|
|
40
52
|
getSkillRecordByName,
|
|
53
|
+
hasConfiguredProvider,
|
|
41
54
|
incrementActivityCount,
|
|
42
55
|
incrementSkillUsageCount,
|
|
43
56
|
insertBatchStateless,
|
|
@@ -59,71 +72,57 @@ import {
|
|
|
59
72
|
setResponseSummary,
|
|
60
73
|
updateCandidate,
|
|
61
74
|
updateNotificationStatus
|
|
62
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-RMJPQZGF.js";
|
|
63
76
|
import {
|
|
64
77
|
fullTextSearch,
|
|
65
78
|
hydrateSearchResults
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import {
|
|
68
|
-
cleanupStagedSkill,
|
|
69
|
-
listStaleStagingDirs
|
|
70
|
-
} from "./chunk-U5EW2VIQ.js";
|
|
71
|
-
import {
|
|
72
|
-
withTaskConfig
|
|
73
|
-
} from "./chunk-SODRR3HE.js";
|
|
74
|
-
import {
|
|
75
|
-
getMachineId
|
|
76
|
-
} from "./chunk-ENWBFX7F.js";
|
|
77
|
-
import {
|
|
78
|
-
createEmbeddingProvider
|
|
79
|
-
} from "./chunk-QQ7CXA7Q.js";
|
|
79
|
+
} from "./chunk-IGBHLFV5.js";
|
|
80
80
|
import {
|
|
81
81
|
copyTaskToUser,
|
|
82
82
|
deleteUserTask,
|
|
83
83
|
loadAllTasks,
|
|
84
84
|
validateTaskName,
|
|
85
85
|
writeUserTask
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-3NCVCGUZ.js";
|
|
87
87
|
import {
|
|
88
88
|
AgentTaskSchema,
|
|
89
89
|
registerAgent,
|
|
90
90
|
resolveDefinitionsDir,
|
|
91
91
|
taskFromParsed
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-F6C4IC6R.js";
|
|
93
93
|
import {
|
|
94
94
|
listTurnsByRun
|
|
95
95
|
} from "./chunk-QLCD77AN.js";
|
|
96
96
|
import {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
cleanupStagedSkill,
|
|
98
|
+
listStaleStagingDirs
|
|
99
|
+
} from "./chunk-U5EW2VIQ.js";
|
|
100
|
+
import {
|
|
101
|
+
getMachineId
|
|
102
|
+
} from "./chunk-ENWBFX7F.js";
|
|
99
103
|
import {
|
|
100
104
|
EventBuffer,
|
|
101
105
|
cleanStaleBuffers,
|
|
102
106
|
listBufferSessionIds
|
|
103
107
|
} from "./chunk-V7XG6V6C.js";
|
|
104
108
|
import "./chunk-IB76KGBY.js";
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-Y7QCKCEJ.js";
|
|
107
|
-
import "./chunk-KGL5QSDN.js";
|
|
108
|
-
import "./chunk-MSM775XQ.js";
|
|
109
|
+
import "./chunk-CTF7TQMJ.js";
|
|
109
110
|
import "./chunk-SAKJMNSR.js";
|
|
111
|
+
import "./chunk-VVGZL2HX.js";
|
|
110
112
|
import {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
writeSecret
|
|
114
|
-
} from "./chunk-RJMXDUMA.js";
|
|
115
|
-
import "./chunk-4JPUC6RL.js";
|
|
113
|
+
checkLocalProvider
|
|
114
|
+
} from "./chunk-DT42247G.js";
|
|
116
115
|
import {
|
|
117
116
|
LmStudioBackend,
|
|
118
117
|
OllamaBackend
|
|
119
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-ML6GTPZU.js";
|
|
120
119
|
import {
|
|
121
120
|
countSpores,
|
|
122
121
|
getSpore,
|
|
123
122
|
insertSpore,
|
|
124
123
|
listSpores,
|
|
125
124
|
updateSporeStatus
|
|
126
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-ZSJPI5MS.js";
|
|
127
126
|
import {
|
|
128
127
|
closeSession,
|
|
129
128
|
countSessions,
|
|
@@ -134,7 +133,7 @@ import {
|
|
|
134
133
|
listSessions,
|
|
135
134
|
updateSession,
|
|
136
135
|
upsertSession
|
|
137
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-25WHTV4N.js";
|
|
138
137
|
import {
|
|
139
138
|
backfillUnsynced,
|
|
140
139
|
countDeadLettered,
|
|
@@ -150,13 +149,13 @@ import {
|
|
|
150
149
|
pruneOld,
|
|
151
150
|
retryDeadLettered,
|
|
152
151
|
syncRow
|
|
153
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-C3C5QVLK.js";
|
|
154
153
|
import {
|
|
155
154
|
EMBEDDING_DIMENSIONS,
|
|
156
155
|
REST_SETTABLE_STATUSES,
|
|
157
156
|
SCHEMA_VERSION,
|
|
158
157
|
createSchema
|
|
159
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-UTLWSKDV.js";
|
|
160
159
|
import {
|
|
161
160
|
CONFIG_FILENAME,
|
|
162
161
|
MycoConfigSchema,
|
|
@@ -165,7 +164,7 @@ import {
|
|
|
165
164
|
updateBackupConfig,
|
|
166
165
|
updateConfig,
|
|
167
166
|
updateTeamConfig
|
|
168
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-XD3NEN3Q.js";
|
|
169
168
|
import {
|
|
170
169
|
closeDatabase,
|
|
171
170
|
getDatabase,
|
|
@@ -174,10 +173,10 @@ import {
|
|
|
174
173
|
} from "./chunk-MYX5NCRH.js";
|
|
175
174
|
import {
|
|
176
175
|
resolveCliEntryPath
|
|
177
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-XZWFMMJR.js";
|
|
178
177
|
import {
|
|
179
178
|
getPluginVersion
|
|
180
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-SI5BBQAT.js";
|
|
181
180
|
import {
|
|
182
181
|
loadManifests
|
|
183
182
|
} from "./chunk-EBIYONNZ.js";
|
|
@@ -234,7 +233,7 @@ import {
|
|
|
234
233
|
USER_TASK_SOURCE,
|
|
235
234
|
epochSeconds,
|
|
236
235
|
estimateTokens
|
|
237
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-7DAH5GLC.js";
|
|
238
237
|
import {
|
|
239
238
|
LOG_KINDS,
|
|
240
239
|
kindToComponent
|
|
@@ -2327,7 +2326,7 @@ function createTeamHandlers(deps) {
|
|
|
2327
2326
|
return { body: { retried: count } };
|
|
2328
2327
|
}
|
|
2329
2328
|
async function handleUpgradeWorker(_req) {
|
|
2330
|
-
const { upgradeWorker } = await import("./team-
|
|
2329
|
+
const { upgradeWorker } = await import("./team-7X64J4Y6.js");
|
|
2331
2330
|
const result = upgradeWorker(vaultDir);
|
|
2332
2331
|
if (!result.success) {
|
|
2333
2332
|
return { status: 500, body: { error: result.error } };
|
|
@@ -2602,7 +2601,7 @@ function createSkillRecordDeleteHandler(deps) {
|
|
|
2602
2601
|
logger.warn(LOG_KINDS.PROCESSOR_BATCH, "Failed to remove skill directory", { name: record.name, error: String(err) });
|
|
2603
2602
|
}
|
|
2604
2603
|
try {
|
|
2605
|
-
const { syncSkillSymlinks } = await import("./installer-
|
|
2604
|
+
const { syncSkillSymlinks } = await import("./installer-45ZLP2RP.js");
|
|
2606
2605
|
syncSkillSymlinks(projectRoot, record.name, { remove: true });
|
|
2607
2606
|
} catch (err) {
|
|
2608
2607
|
logger.warn(LOG_KINDS.PROCESSOR_BATCH, "Failed to remove skill symlinks", { name: record.name, error: String(err) });
|
|
@@ -2802,8 +2801,8 @@ async function handleGetProgress(tracker, token) {
|
|
|
2802
2801
|
// src/daemon/api/models.ts
|
|
2803
2802
|
var MODEL_LIST_TIMEOUT_MS = 5e3;
|
|
2804
2803
|
var ANTHROPIC_MODELS = [
|
|
2805
|
-
"claude-opus-4-6",
|
|
2806
2804
|
"claude-sonnet-4-6",
|
|
2805
|
+
"claude-opus-4-6",
|
|
2807
2806
|
"claude-haiku-4-5-20251001"
|
|
2808
2807
|
];
|
|
2809
2808
|
var EMBEDDING_PATTERNS = [
|
|
@@ -3593,6 +3592,11 @@ var SessionContextBody = external_exports.object({
|
|
|
3593
3592
|
session_id: external_exports.string().optional(),
|
|
3594
3593
|
branch: external_exports.string().optional()
|
|
3595
3594
|
});
|
|
3595
|
+
var ResumeContextBody = external_exports.object({
|
|
3596
|
+
session_id: external_exports.string(),
|
|
3597
|
+
parent_session_id: external_exports.string().optional(),
|
|
3598
|
+
branch: external_exports.string().optional()
|
|
3599
|
+
});
|
|
3596
3600
|
var PromptContextBody = external_exports.object({
|
|
3597
3601
|
prompt: external_exports.string(),
|
|
3598
3602
|
session_id: external_exports.string().optional()
|
|
@@ -3650,6 +3654,65 @@ function createSessionContextHandler(deps) {
|
|
|
3650
3654
|
}
|
|
3651
3655
|
};
|
|
3652
3656
|
}
|
|
3657
|
+
function createResumeContextHandler(deps) {
|
|
3658
|
+
return async function handleResumeContext(req) {
|
|
3659
|
+
const { session_id, parent_session_id, branch } = ResumeContextBody.parse(req.body);
|
|
3660
|
+
const { logger } = deps;
|
|
3661
|
+
logger.debug(LOG_KINDS.CONTEXT_QUERY, "Resume context query", {
|
|
3662
|
+
session_id,
|
|
3663
|
+
parent_session_id
|
|
3664
|
+
});
|
|
3665
|
+
try {
|
|
3666
|
+
const parentSession = parent_session_id ? getSession(parent_session_id) : null;
|
|
3667
|
+
const resolvedBranch = branch ?? parentSession?.branch ?? null;
|
|
3668
|
+
const parts = [];
|
|
3669
|
+
if (parentSession?.title) {
|
|
3670
|
+
parts.push(`Resuming work from: ${parentSession.title}`);
|
|
3671
|
+
}
|
|
3672
|
+
if (parentSession?.summary) {
|
|
3673
|
+
parts.push(parentSession.summary);
|
|
3674
|
+
}
|
|
3675
|
+
if (resolvedBranch) {
|
|
3676
|
+
parts.push(`Branch:: \`${resolvedBranch}\``);
|
|
3677
|
+
}
|
|
3678
|
+
if (parentSession && parent_session_id) {
|
|
3679
|
+
parts.push(`Previous Session:: \`${parent_session_id}\``);
|
|
3680
|
+
}
|
|
3681
|
+
if (parts.length === 0) {
|
|
3682
|
+
logger.debug(LOG_KINDS.CONTEXT_SESSION, "No resume context available", { session_id, parent_session_id });
|
|
3683
|
+
return { body: { text: "" } };
|
|
3684
|
+
}
|
|
3685
|
+
parts.push(`Session:: \`${session_id}\``);
|
|
3686
|
+
const contextText = parts.join("\n\n");
|
|
3687
|
+
const estimatedTokens = estimateTokens(contextText);
|
|
3688
|
+
logger.info(
|
|
3689
|
+
LOG_KINDS.CONTEXT_SESSION,
|
|
3690
|
+
`Resume context: ${estimatedTokens} est. tokens`,
|
|
3691
|
+
{
|
|
3692
|
+
session_id,
|
|
3693
|
+
parent_session_id,
|
|
3694
|
+
branch: resolvedBranch ?? void 0,
|
|
3695
|
+
text_length: contextText.length,
|
|
3696
|
+
estimated_tokens: estimatedTokens,
|
|
3697
|
+
injected_text: contextText
|
|
3698
|
+
}
|
|
3699
|
+
);
|
|
3700
|
+
return {
|
|
3701
|
+
body: {
|
|
3702
|
+
text: contextText,
|
|
3703
|
+
source: "resume"
|
|
3704
|
+
}
|
|
3705
|
+
};
|
|
3706
|
+
} catch (error) {
|
|
3707
|
+
logger.error(LOG_KINDS.CONTEXT_SESSION, "Resume context failed", {
|
|
3708
|
+
session_id,
|
|
3709
|
+
parent_session_id,
|
|
3710
|
+
error: error.message
|
|
3711
|
+
});
|
|
3712
|
+
return { body: { text: "" } };
|
|
3713
|
+
}
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3653
3716
|
function createPromptContextHandler(deps) {
|
|
3654
3717
|
return async function handlePromptContext(req) {
|
|
3655
3718
|
const { prompt, session_id } = PromptContextBody.parse(req.body);
|
|
@@ -5342,13 +5405,16 @@ async function handleUpdateTaskConfig(req, vaultDir) {
|
|
|
5342
5405
|
}
|
|
5343
5406
|
|
|
5344
5407
|
// src/daemon/api/providers.ts
|
|
5408
|
+
var ANTHROPIC_MODELS_TIMEOUT_MS = 5e3;
|
|
5409
|
+
var ANTHROPIC_MODELS_CACHE_TTL_MS = 10 * 60 * 1e3;
|
|
5410
|
+
var anthropicModelsCache = null;
|
|
5345
5411
|
var HTTP_OK2 = 200;
|
|
5346
5412
|
var HTTP_BAD_REQUEST2 = 400;
|
|
5347
5413
|
async function handleGetProviders() {
|
|
5348
5414
|
const results = await Promise.allSettled([
|
|
5415
|
+
detectAnthropic(),
|
|
5349
5416
|
detectLocalProviderInfo("ollama", OllamaBackend.DEFAULT_BASE_URL),
|
|
5350
|
-
detectLocalProviderInfo("lmstudio", LmStudioBackend.DEFAULT_BASE_URL)
|
|
5351
|
-
detectCloud()
|
|
5417
|
+
detectLocalProviderInfo("lmstudio", LmStudioBackend.DEFAULT_BASE_URL)
|
|
5352
5418
|
]);
|
|
5353
5419
|
const providers = results.map(
|
|
5354
5420
|
(r) => r.status === "fulfilled" ? r.value : { type: "unknown", available: false, models: [] }
|
|
@@ -5358,10 +5424,10 @@ async function handleGetProviders() {
|
|
|
5358
5424
|
async function handleTestProvider(req) {
|
|
5359
5425
|
const body = req.body;
|
|
5360
5426
|
const type = body?.type;
|
|
5361
|
-
if (!type || !["
|
|
5427
|
+
if (!type || !["anthropic", "ollama", "lmstudio"].includes(type)) {
|
|
5362
5428
|
return {
|
|
5363
5429
|
status: HTTP_BAD_REQUEST2,
|
|
5364
|
-
body: { error: "type is required and must be one of:
|
|
5430
|
+
body: { error: "type is required and must be one of: anthropic, ollama, lmstudio" }
|
|
5365
5431
|
};
|
|
5366
5432
|
}
|
|
5367
5433
|
const baseUrl = body?.baseUrl;
|
|
@@ -5373,7 +5439,7 @@ async function handleTestProvider(req) {
|
|
|
5373
5439
|
} else if (type === "lmstudio") {
|
|
5374
5440
|
result = await testLocalProvider(new LmStudioBackend({ base_url: baseUrl }), "LM Studio", LmStudioBackend.DEFAULT_BASE_URL, baseUrl);
|
|
5375
5441
|
} else {
|
|
5376
|
-
result =
|
|
5442
|
+
result = testAnthropic();
|
|
5377
5443
|
}
|
|
5378
5444
|
} catch (err) {
|
|
5379
5445
|
result = { ok: false, error: String(err) };
|
|
@@ -5385,11 +5451,30 @@ async function handleTestProvider(req) {
|
|
|
5385
5451
|
}
|
|
5386
5452
|
async function detectLocalProviderInfo(type, defaultBaseUrl) {
|
|
5387
5453
|
const status = await checkLocalProvider(type);
|
|
5388
|
-
const
|
|
5454
|
+
const variantFiltered = status.models.filter((m) => !/-ctx\d+/.test(m));
|
|
5455
|
+
const models = filterLlmModels(variantFiltered);
|
|
5389
5456
|
return { type, available: status.available, baseUrl: defaultBaseUrl, models };
|
|
5390
5457
|
}
|
|
5391
|
-
async function
|
|
5392
|
-
|
|
5458
|
+
async function detectAnthropic() {
|
|
5459
|
+
const now = Date.now();
|
|
5460
|
+
if (anthropicModelsCache && now - anthropicModelsCache.ts < ANTHROPIC_MODELS_CACHE_TTL_MS) {
|
|
5461
|
+
return { type: "anthropic", available: true, models: anthropicModelsCache.models };
|
|
5462
|
+
}
|
|
5463
|
+
let models = ANTHROPIC_MODELS;
|
|
5464
|
+
try {
|
|
5465
|
+
const client = new Anthropic();
|
|
5466
|
+
const response = await client.models.list(
|
|
5467
|
+
{ limit: 50 },
|
|
5468
|
+
{ timeout: ANTHROPIC_MODELS_TIMEOUT_MS }
|
|
5469
|
+
);
|
|
5470
|
+
const liveModels = response.data.map((m) => m.id).filter((id) => id.startsWith("claude-"));
|
|
5471
|
+
if (liveModels.length > 0) {
|
|
5472
|
+
models = liveModels;
|
|
5473
|
+
}
|
|
5474
|
+
} catch {
|
|
5475
|
+
}
|
|
5476
|
+
anthropicModelsCache = { ts: now, models };
|
|
5477
|
+
return { type: "anthropic", available: true, models };
|
|
5393
5478
|
}
|
|
5394
5479
|
async function testLocalProvider(backend, label, defaultBaseUrl, baseUrl) {
|
|
5395
5480
|
const available = await backend.isAvailable();
|
|
@@ -5398,7 +5483,7 @@ async function testLocalProvider(backend, label, defaultBaseUrl, baseUrl) {
|
|
|
5398
5483
|
}
|
|
5399
5484
|
return { ok: true };
|
|
5400
5485
|
}
|
|
5401
|
-
function
|
|
5486
|
+
function testAnthropic() {
|
|
5402
5487
|
return { ok: true };
|
|
5403
5488
|
}
|
|
5404
5489
|
|
|
@@ -5459,7 +5544,7 @@ async function registerScheduledTasks(powerManager, deps) {
|
|
|
5459
5544
|
logger.info(LOG_KINDS.AGENT_RUN, "Scheduled agent tasks disabled globally (agent.scheduled_tasks_enabled: false)");
|
|
5460
5545
|
return;
|
|
5461
5546
|
}
|
|
5462
|
-
const { loadAllTasks: loadAllTasks2 } = await import("./registry-
|
|
5547
|
+
const { loadAllTasks: loadAllTasks2 } = await import("./registry-TFQ22Z7N.js");
|
|
5463
5548
|
const allTasks = Array.from(loadAllTasks2(definitionsDir, vaultDir).values());
|
|
5464
5549
|
const initialLastRuns = {};
|
|
5465
5550
|
try {
|
|
@@ -5481,7 +5566,7 @@ async function registerScheduledTasks(powerManager, deps) {
|
|
|
5481
5566
|
else runningTasks.delete(name);
|
|
5482
5567
|
},
|
|
5483
5568
|
runTask: async (taskName) => {
|
|
5484
|
-
const { runAgent } = await import("./executor-
|
|
5569
|
+
const { runAgent } = await import("./executor-NXKJU5KW.js");
|
|
5485
5570
|
const taskConfig = config.agent.tasks?.[taskName];
|
|
5486
5571
|
const built = buildTaskInstruction(taskName, taskConfig?.params);
|
|
5487
5572
|
if (isInstructionRequiredTask(taskName) && !built) {
|
|
@@ -5650,7 +5735,7 @@ function createMcpProxyHandlers(deps) {
|
|
|
5650
5735
|
name: USER_AGENT_NAME,
|
|
5651
5736
|
created_at: now
|
|
5652
5737
|
});
|
|
5653
|
-
const { insertResolutionEvent } = await import("./resolution-events-
|
|
5738
|
+
const { insertResolutionEvent } = await import("./resolution-events-HGKIJOTA.js");
|
|
5654
5739
|
const resolutionId = `res-${randomBytes(RESOLUTION_ID_RANDOM_BYTES).toString("hex")}`;
|
|
5655
5740
|
insertResolutionEvent({
|
|
5656
5741
|
id: resolutionId,
|
|
@@ -5742,12 +5827,21 @@ function createAgentRunHandlers(deps) {
|
|
|
5742
5827
|
const { vaultDir, embeddingManager, logger } = deps;
|
|
5743
5828
|
async function handleRun(req) {
|
|
5744
5829
|
const { task, instruction: rawInstruction, agentId } = AgentRunBody.parse(req.body);
|
|
5830
|
+
const mycoConfig = loadConfig(vaultDir);
|
|
5831
|
+
if (!hasConfiguredProvider(mycoConfig, task)) {
|
|
5832
|
+
return {
|
|
5833
|
+
status: 400,
|
|
5834
|
+
body: {
|
|
5835
|
+
ok: false,
|
|
5836
|
+
error: "No agent provider configured. Configure one in Settings."
|
|
5837
|
+
}
|
|
5838
|
+
};
|
|
5839
|
+
}
|
|
5745
5840
|
let instruction = rawInstruction;
|
|
5746
5841
|
let runContext;
|
|
5747
5842
|
if (task && !instruction) {
|
|
5748
5843
|
let built;
|
|
5749
5844
|
try {
|
|
5750
|
-
const mycoConfig = loadConfig(vaultDir);
|
|
5751
5845
|
const taskParams = mycoConfig.agent.tasks?.[task]?.params;
|
|
5752
5846
|
built = buildTaskInstruction(task, taskParams);
|
|
5753
5847
|
} catch {
|
|
@@ -5766,7 +5860,7 @@ function createAgentRunHandlers(deps) {
|
|
|
5766
5860
|
};
|
|
5767
5861
|
}
|
|
5768
5862
|
}
|
|
5769
|
-
const { runAgent } = await import("./executor-
|
|
5863
|
+
const { runAgent } = await import("./executor-NXKJU5KW.js");
|
|
5770
5864
|
const resultPromise = runAgent(vaultDir, {
|
|
5771
5865
|
task,
|
|
5772
5866
|
instruction,
|
|
@@ -6517,7 +6611,7 @@ function createStopProcessor(deps) {
|
|
|
6517
6611
|
if (config.agent.summary_batch_interval <= 0) return;
|
|
6518
6612
|
if (config.agent.event_tasks_enabled === false) return;
|
|
6519
6613
|
try {
|
|
6520
|
-
const { runAgent } = await import("./executor-
|
|
6614
|
+
const { runAgent } = await import("./executor-NXKJU5KW.js");
|
|
6521
6615
|
runAgent(vaultDir, {
|
|
6522
6616
|
task: "title-summary",
|
|
6523
6617
|
instruction: `Process session ${sessionId} only`,
|
|
@@ -7093,7 +7187,7 @@ async function main() {
|
|
|
7093
7187
|
const databaseManager = new DatabaseMaintenanceManager(vaultDbPath(vaultDir), vaultDir, logger);
|
|
7094
7188
|
let definitionsDir;
|
|
7095
7189
|
try {
|
|
7096
|
-
const { registerBuiltInAgentsAndTasks, resolveDefinitionsDir: resolveDefinitionsDir2 } = await import("./loader-
|
|
7190
|
+
const { registerBuiltInAgentsAndTasks, resolveDefinitionsDir: resolveDefinitionsDir2 } = await import("./loader-NEX3UF6U.js");
|
|
7097
7191
|
definitionsDir = resolveDefinitionsDir2();
|
|
7098
7192
|
await registerBuiltInAgentsAndTasks(definitionsDir, vaultDir);
|
|
7099
7193
|
logger.info(LOG_KINDS.AGENT_TASK, "Built-in agents and tasks registered");
|
|
@@ -7198,6 +7292,7 @@ async function main() {
|
|
|
7198
7292
|
server.registerRoute("POST", "/events/stop", stopProcessor.handleStopRoute);
|
|
7199
7293
|
const contextDeps = { embeddingManager, config, logger };
|
|
7200
7294
|
server.registerRoute("POST", "/context", createSessionContextHandler(contextDeps));
|
|
7295
|
+
server.registerRoute("POST", "/context/resume", createResumeContextHandler(contextDeps));
|
|
7201
7296
|
server.registerRoute("POST", "/context/prompt", createPromptContextHandler(contextDeps));
|
|
7202
7297
|
const progressTracker = new ProgressTracker();
|
|
7203
7298
|
let configHash = computeConfigHash(vaultDir);
|
|
@@ -7398,4 +7493,4 @@ export {
|
|
|
7398
7493
|
handleUserPrompt,
|
|
7399
7494
|
main
|
|
7400
7495
|
};
|
|
7401
|
-
//# sourceMappingURL=main-
|
|
7496
|
+
//# sourceMappingURL=main-YFVBIRRK.js.map
|