@kernlang/agon 0.1.4 → 0.1.5
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/{chunk-O6YP55RV.js → chunk-46WNYE4R.js} +114 -69
- package/dist/chunk-46WNYE4R.js.map +1 -0
- package/dist/{chunk-FCCH7IPJ.js → chunk-4NTH3EAR.js} +39 -11
- package/dist/chunk-4NTH3EAR.js.map +1 -0
- package/dist/{chunk-4LVYSUMN.js → chunk-73ETZFDH.js} +6 -27
- package/dist/chunk-73ETZFDH.js.map +1 -0
- package/dist/{chunk-WE32YJKT.js → chunk-DGTU4UWQ.js} +2 -2
- package/dist/{chunk-WE32YJKT.js.map → chunk-DGTU4UWQ.js.map} +1 -1
- package/dist/{chunk-ATUT2BUQ.js → chunk-GPYWJO2Q.js} +24 -7
- package/dist/chunk-GPYWJO2Q.js.map +1 -0
- package/dist/{chunk-C22VTCS6.js → chunk-HAJIKZGU.js} +846 -219
- package/dist/chunk-HAJIKZGU.js.map +1 -0
- package/dist/{chunk-6ANHPXGZ.js → chunk-HSPQEDHX.js} +1 -1
- package/dist/{chunk-6ANHPXGZ.js.map → chunk-HSPQEDHX.js.map} +1 -1
- package/dist/{chunk-5QMVQPHY.js → chunk-SOUF7XTW.js} +1 -1
- package/dist/{chunk-5QMVQPHY.js.map → chunk-SOUF7XTW.js.map} +1 -1
- package/dist/{dispatch-6LQSMMGI.js → dispatch-XHLJ44TF.js} +2 -2
- package/dist/{forge-ES4RN7YM.js → forge-ZI7NE73F.js} +6 -6
- package/dist/index.js +550 -121
- package/dist/index.js.map +1 -1
- package/dist/plan-mode-KIXDKD63.js +17 -0
- package/dist/{src-WJGIOESS.js → src-4A5FVACG.js} +49 -3
- package/dist/{update-HHN4PJQI.js → update-DLPMYTF3.js} +6 -6
- package/package.json +4 -4
- package/dist/chunk-4LVYSUMN.js.map +0 -1
- package/dist/chunk-ATUT2BUQ.js.map +0 -1
- package/dist/chunk-C22VTCS6.js.map +0 -1
- package/dist/chunk-FCCH7IPJ.js.map +0 -1
- package/dist/chunk-O6YP55RV.js.map +0 -1
- package/dist/plan-mode-4XRC2ZC7.js +0 -17
- /package/dist/{dispatch-6LQSMMGI.js.map → dispatch-XHLJ44TF.js.map} +0 -0
- /package/dist/{forge-ES4RN7YM.js.map → forge-ZI7NE73F.js.map} +0 -0
- /package/dist/{plan-mode-4XRC2ZC7.js.map → plan-mode-KIXDKD63.js.map} +0 -0
- /package/dist/{src-WJGIOESS.js.map → src-4A5FVACG.js.map} +0 -0
- /package/dist/{update-HHN4PJQI.js.map → update-DLPMYTF3.js.map} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
buildStepExecutors,
|
|
4
|
+
handleExitPlanMode,
|
|
5
|
+
handleProposePlan
|
|
6
|
+
} from "./chunk-46WNYE4R.js";
|
|
7
|
+
import "./chunk-HSPQEDHX.js";
|
|
8
|
+
import "./chunk-4NTH3EAR.js";
|
|
9
|
+
import "./chunk-DGTU4UWQ.js";
|
|
10
|
+
import "./chunk-HAJIKZGU.js";
|
|
11
|
+
import "./chunk-SOUF7XTW.js";
|
|
12
|
+
export {
|
|
13
|
+
buildStepExecutors,
|
|
14
|
+
handleExitPlanMode,
|
|
15
|
+
handleProposePlan
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=plan-mode-KIXDKD63.js.map
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
GitError,
|
|
26
26
|
ISOLATION_MODES,
|
|
27
27
|
PASTE_MAX_AGE,
|
|
28
|
+
PRESENCE_TTL_MS,
|
|
28
29
|
PlanStateError,
|
|
29
30
|
RATINGS_PATH,
|
|
30
31
|
RUNS_DIR,
|
|
@@ -41,6 +42,7 @@ import {
|
|
|
41
42
|
WorktreeError,
|
|
42
43
|
absoluteGitDir,
|
|
43
44
|
acquireApplyLock,
|
|
45
|
+
acquireTurnLease,
|
|
44
46
|
addEngineNote,
|
|
45
47
|
addEngineTendency,
|
|
46
48
|
addWorkspace,
|
|
@@ -49,6 +51,7 @@ import {
|
|
|
49
51
|
advisorScore,
|
|
50
52
|
agonPath,
|
|
51
53
|
analyzeFlows,
|
|
54
|
+
appendEvent,
|
|
52
55
|
appendMessage,
|
|
53
56
|
appendUserTurnIfAbsent,
|
|
54
57
|
applyEffectPackage,
|
|
@@ -79,6 +82,7 @@ import {
|
|
|
79
82
|
buildForgeProvenance,
|
|
80
83
|
buildHistoryPrimedPrompt,
|
|
81
84
|
buildImageAttachment,
|
|
85
|
+
buildKernContextSpine,
|
|
82
86
|
buildModelEntries,
|
|
83
87
|
buildReviewPrompt,
|
|
84
88
|
buildRolePrompt,
|
|
@@ -106,6 +110,7 @@ import {
|
|
|
106
110
|
clearLinesSequence,
|
|
107
111
|
clearProjectFileStateCaches,
|
|
108
112
|
clearSessionState,
|
|
113
|
+
closeRoom,
|
|
109
114
|
collectSourceFiles,
|
|
110
115
|
companionDispatch,
|
|
111
116
|
completeAgent,
|
|
@@ -146,6 +151,7 @@ import {
|
|
|
146
151
|
createResumeSession,
|
|
147
152
|
createRetrieveResultTool,
|
|
148
153
|
createReviewTool,
|
|
154
|
+
createRoom,
|
|
149
155
|
createRunDir,
|
|
150
156
|
createSessionWorktree,
|
|
151
157
|
createSidechainLogger,
|
|
@@ -164,7 +170,9 @@ import {
|
|
|
164
170
|
deleteThread,
|
|
165
171
|
detectLanguageFromPath,
|
|
166
172
|
detectPackageManager,
|
|
173
|
+
detectPingPong,
|
|
167
174
|
detectSynthesisInsightMention,
|
|
175
|
+
detectTrigger,
|
|
168
176
|
determineWinner,
|
|
169
177
|
diffFileCount,
|
|
170
178
|
diffLineCount,
|
|
@@ -180,6 +188,7 @@ import {
|
|
|
180
188
|
estimateTokens,
|
|
181
189
|
estimatedTokensToCost,
|
|
182
190
|
estimatedUsage,
|
|
191
|
+
evaluateStop,
|
|
183
192
|
executePlan,
|
|
184
193
|
executeToolCall,
|
|
185
194
|
executeToolCalls,
|
|
@@ -243,6 +252,7 @@ import {
|
|
|
243
252
|
isKernProject,
|
|
244
253
|
isPathUnderCwd,
|
|
245
254
|
isReadOnlyCommand,
|
|
255
|
+
isRoomClosed,
|
|
246
256
|
isTerminal,
|
|
247
257
|
isValidIsolationMode,
|
|
248
258
|
latestChatSession,
|
|
@@ -251,6 +261,8 @@ import {
|
|
|
251
261
|
listCesarPlans,
|
|
252
262
|
listChatSessions,
|
|
253
263
|
listPlans,
|
|
264
|
+
listPresence,
|
|
265
|
+
listRooms,
|
|
254
266
|
listSessionWorktrees,
|
|
255
267
|
listSnapshots,
|
|
256
268
|
listStoredProviders,
|
|
@@ -285,9 +297,11 @@ import {
|
|
|
285
297
|
mergeStepResult,
|
|
286
298
|
mimeFromExt,
|
|
287
299
|
modelEntryToEngineDef,
|
|
300
|
+
normalizeDroppedPath,
|
|
288
301
|
normalizeSessionChunk,
|
|
289
302
|
normalizeTodos,
|
|
290
303
|
parseAndValidateUrl,
|
|
304
|
+
parseMentions,
|
|
291
305
|
parsePatch,
|
|
292
306
|
parseSearchResults,
|
|
293
307
|
parseStreamChunk,
|
|
@@ -307,6 +321,8 @@ import {
|
|
|
307
321
|
pruneToolCache,
|
|
308
322
|
rankByTaskClass,
|
|
309
323
|
rankEnginesByRating,
|
|
324
|
+
readActiveLease,
|
|
325
|
+
readEvents,
|
|
310
326
|
readFlows,
|
|
311
327
|
readOnlyDiff,
|
|
312
328
|
readPatchFromManifest,
|
|
@@ -315,6 +331,7 @@ import {
|
|
|
315
331
|
recentCommits,
|
|
316
332
|
recordForgeJudgment,
|
|
317
333
|
recordForgeOutcome,
|
|
334
|
+
recordPresence,
|
|
318
335
|
refreshCliGroup,
|
|
319
336
|
refreshCliGroupVersion,
|
|
320
337
|
refreshProbedCliModels,
|
|
@@ -322,8 +339,10 @@ import {
|
|
|
322
339
|
rehydrateSessionWorktree,
|
|
323
340
|
rejectTool,
|
|
324
341
|
releaseApplyLock,
|
|
342
|
+
releaseTurnLease,
|
|
325
343
|
relocateEffectPackage,
|
|
326
344
|
removeAuthKey,
|
|
345
|
+
removePresence,
|
|
327
346
|
removeSessionWorktree,
|
|
328
347
|
removeWorkspace,
|
|
329
348
|
renderProvenanceJson,
|
|
@@ -340,6 +359,9 @@ import {
|
|
|
340
359
|
resolveWorkingDir,
|
|
341
360
|
resumeChatSession,
|
|
342
361
|
revertSnapshot,
|
|
362
|
+
roomDir,
|
|
363
|
+
roomExists,
|
|
364
|
+
roomsDir,
|
|
343
365
|
runAgentInvestigateSynthesis,
|
|
344
366
|
runAgentTeamSynthesis,
|
|
345
367
|
runApiAgentLoop,
|
|
@@ -369,6 +391,7 @@ import {
|
|
|
369
391
|
setEngineStrengths,
|
|
370
392
|
setEngineWeaknesses,
|
|
371
393
|
sha256OfFile,
|
|
394
|
+
slugifyRoomId,
|
|
372
395
|
snapshotList,
|
|
373
396
|
snapshotRead,
|
|
374
397
|
snapshotWorkspace,
|
|
@@ -410,12 +433,12 @@ import {
|
|
|
410
433
|
worktreeRemoveBestEffort,
|
|
411
434
|
writeProvenanceReport,
|
|
412
435
|
writeRunStatus
|
|
413
|
-
} from "./chunk-
|
|
436
|
+
} from "./chunk-HAJIKZGU.js";
|
|
414
437
|
import {
|
|
415
438
|
apiDispatch,
|
|
416
439
|
apiStreamDispatch,
|
|
417
440
|
apiStreamDispatchWithHistory
|
|
418
|
-
} from "./chunk-
|
|
441
|
+
} from "./chunk-SOUF7XTW.js";
|
|
419
442
|
export {
|
|
420
443
|
AGON_HOME,
|
|
421
444
|
AGON_MODE_NAMES,
|
|
@@ -442,6 +465,7 @@ export {
|
|
|
442
465
|
GitError,
|
|
443
466
|
ISOLATION_MODES,
|
|
444
467
|
PASTE_MAX_AGE,
|
|
468
|
+
PRESENCE_TTL_MS,
|
|
445
469
|
PlanStateError,
|
|
446
470
|
RATINGS_PATH,
|
|
447
471
|
RUNS_DIR,
|
|
@@ -458,6 +482,7 @@ export {
|
|
|
458
482
|
WorktreeError,
|
|
459
483
|
absoluteGitDir,
|
|
460
484
|
acquireApplyLock,
|
|
485
|
+
acquireTurnLease,
|
|
461
486
|
addEngineNote,
|
|
462
487
|
addEngineTendency,
|
|
463
488
|
addWorkspace,
|
|
@@ -469,6 +494,7 @@ export {
|
|
|
469
494
|
apiDispatch,
|
|
470
495
|
apiStreamDispatch,
|
|
471
496
|
apiStreamDispatchWithHistory,
|
|
497
|
+
appendEvent,
|
|
472
498
|
appendMessage,
|
|
473
499
|
appendUserTurnIfAbsent,
|
|
474
500
|
applyEffectPackage,
|
|
@@ -499,6 +525,7 @@ export {
|
|
|
499
525
|
buildForgeProvenance,
|
|
500
526
|
buildHistoryPrimedPrompt,
|
|
501
527
|
buildImageAttachment,
|
|
528
|
+
buildKernContextSpine,
|
|
502
529
|
buildModelEntries,
|
|
503
530
|
buildReviewPrompt,
|
|
504
531
|
buildRolePrompt,
|
|
@@ -526,6 +553,7 @@ export {
|
|
|
526
553
|
clearLinesSequence,
|
|
527
554
|
clearProjectFileStateCaches,
|
|
528
555
|
clearSessionState,
|
|
556
|
+
closeRoom,
|
|
529
557
|
collectSourceFiles,
|
|
530
558
|
companionDispatch,
|
|
531
559
|
completeAgent,
|
|
@@ -566,6 +594,7 @@ export {
|
|
|
566
594
|
createResumeSession,
|
|
567
595
|
createRetrieveResultTool,
|
|
568
596
|
createReviewTool,
|
|
597
|
+
createRoom,
|
|
569
598
|
createRunDir,
|
|
570
599
|
createSessionWorktree,
|
|
571
600
|
createSidechainLogger,
|
|
@@ -584,7 +613,9 @@ export {
|
|
|
584
613
|
deleteThread,
|
|
585
614
|
detectLanguageFromPath,
|
|
586
615
|
detectPackageManager,
|
|
616
|
+
detectPingPong,
|
|
587
617
|
detectSynthesisInsightMention,
|
|
618
|
+
detectTrigger,
|
|
588
619
|
determineWinner,
|
|
589
620
|
diffFileCount,
|
|
590
621
|
diffLineCount,
|
|
@@ -600,6 +631,7 @@ export {
|
|
|
600
631
|
estimateTokens,
|
|
601
632
|
estimatedTokensToCost,
|
|
602
633
|
estimatedUsage,
|
|
634
|
+
evaluateStop,
|
|
603
635
|
executePlan,
|
|
604
636
|
executeToolCall,
|
|
605
637
|
executeToolCalls,
|
|
@@ -663,6 +695,7 @@ export {
|
|
|
663
695
|
isKernProject,
|
|
664
696
|
isPathUnderCwd,
|
|
665
697
|
isReadOnlyCommand,
|
|
698
|
+
isRoomClosed,
|
|
666
699
|
isTerminal,
|
|
667
700
|
isValidIsolationMode,
|
|
668
701
|
latestChatSession,
|
|
@@ -671,6 +704,8 @@ export {
|
|
|
671
704
|
listCesarPlans,
|
|
672
705
|
listChatSessions,
|
|
673
706
|
listPlans,
|
|
707
|
+
listPresence,
|
|
708
|
+
listRooms,
|
|
674
709
|
listSessionWorktrees,
|
|
675
710
|
listSnapshots,
|
|
676
711
|
listStoredProviders,
|
|
@@ -705,9 +740,11 @@ export {
|
|
|
705
740
|
mergeStepResult,
|
|
706
741
|
mimeFromExt,
|
|
707
742
|
modelEntryToEngineDef,
|
|
743
|
+
normalizeDroppedPath,
|
|
708
744
|
normalizeSessionChunk,
|
|
709
745
|
normalizeTodos,
|
|
710
746
|
parseAndValidateUrl,
|
|
747
|
+
parseMentions,
|
|
711
748
|
parsePatch,
|
|
712
749
|
parseSearchResults,
|
|
713
750
|
parseStreamChunk,
|
|
@@ -727,6 +764,8 @@ export {
|
|
|
727
764
|
pruneToolCache,
|
|
728
765
|
rankByTaskClass,
|
|
729
766
|
rankEnginesByRating,
|
|
767
|
+
readActiveLease,
|
|
768
|
+
readEvents,
|
|
730
769
|
readFlows,
|
|
731
770
|
readOnlyDiff,
|
|
732
771
|
readPatchFromManifest,
|
|
@@ -735,6 +774,7 @@ export {
|
|
|
735
774
|
recentCommits,
|
|
736
775
|
recordForgeJudgment,
|
|
737
776
|
recordForgeOutcome,
|
|
777
|
+
recordPresence,
|
|
738
778
|
refreshCliGroup,
|
|
739
779
|
refreshCliGroupVersion,
|
|
740
780
|
refreshProbedCliModels,
|
|
@@ -742,8 +782,10 @@ export {
|
|
|
742
782
|
rehydrateSessionWorktree,
|
|
743
783
|
rejectTool,
|
|
744
784
|
releaseApplyLock,
|
|
785
|
+
releaseTurnLease,
|
|
745
786
|
relocateEffectPackage,
|
|
746
787
|
removeAuthKey,
|
|
788
|
+
removePresence,
|
|
747
789
|
removeSessionWorktree,
|
|
748
790
|
removeWorkspace,
|
|
749
791
|
renderProvenanceJson,
|
|
@@ -760,6 +802,9 @@ export {
|
|
|
760
802
|
resolveWorkingDir,
|
|
761
803
|
resumeChatSession,
|
|
762
804
|
revertSnapshot,
|
|
805
|
+
roomDir,
|
|
806
|
+
roomExists,
|
|
807
|
+
roomsDir,
|
|
763
808
|
runAgentInvestigateSynthesis,
|
|
764
809
|
runAgentTeamSynthesis,
|
|
765
810
|
runApiAgentLoop,
|
|
@@ -789,6 +834,7 @@ export {
|
|
|
789
834
|
setEngineStrengths,
|
|
790
835
|
setEngineWeaknesses,
|
|
791
836
|
sha256OfFile,
|
|
837
|
+
slugifyRoomId,
|
|
792
838
|
snapshotList,
|
|
793
839
|
snapshotRead,
|
|
794
840
|
snapshotWorkspace,
|
|
@@ -831,4 +877,4 @@ export {
|
|
|
831
877
|
writeProvenanceReport,
|
|
832
878
|
writeRunStatus
|
|
833
879
|
};
|
|
834
|
-
//# sourceMappingURL=src-
|
|
880
|
+
//# sourceMappingURL=src-4A5FVACG.js.map
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
runUpdate,
|
|
11
11
|
suggestPermissionFix,
|
|
12
12
|
updateCommand
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-GPYWJO2Q.js";
|
|
14
|
+
import "./chunk-HSPQEDHX.js";
|
|
15
|
+
import "./chunk-DGTU4UWQ.js";
|
|
16
|
+
import "./chunk-HAJIKZGU.js";
|
|
17
|
+
import "./chunk-SOUF7XTW.js";
|
|
18
18
|
export {
|
|
19
19
|
DEFAULT_PACKAGE,
|
|
20
20
|
DEFAULT_TIMEOUT_MS,
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
suggestPermissionFix,
|
|
28
28
|
updateCommand
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=update-
|
|
30
|
+
//# sourceMappingURL=update-DLPMYTF3.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernlang/agon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The competitive multi-AI orchestration CLI. Engines compete in isolated git worktrees on the same task, the best test-passing solution is applied, and Glicko-2 ratings track each model over time. Modes: forge, brainstorm, synthesis, tribunal, council, campfire, think, nero, goal, conquer.",
|
|
6
6
|
"keywords": [
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@kernlang/agon-engines": "^0.1.1",
|
|
58
|
-
"@kernlang/agon-dedup": "^0.1.
|
|
58
|
+
"@kernlang/agon-dedup": "^0.1.5",
|
|
59
59
|
"@ai-sdk/anthropic": "^3.0.67",
|
|
60
60
|
"@ai-sdk/openai-compatible": "^2.0.40",
|
|
61
|
-
"@kernlang/protocol": "~3.5.
|
|
62
|
-
"@kernlang/terminal": "~3.5.
|
|
61
|
+
"@kernlang/protocol": "~3.5.8",
|
|
62
|
+
"@kernlang/terminal": "~3.5.8",
|
|
63
63
|
"ai": "^6.0.149",
|
|
64
64
|
"citty": "^0.1.6",
|
|
65
65
|
"ink": "^7.0.1",
|