@kernlang/agon 0.1.4 → 0.1.6
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-FCCH7IPJ.js → chunk-3PDYVGRS.js} +107 -24
- package/dist/chunk-3PDYVGRS.js.map +1 -0
- package/dist/{chunk-ATUT2BUQ.js → chunk-6IF2AV4Y.js} +28 -10
- package/dist/chunk-6IF2AV4Y.js.map +1 -0
- package/dist/{chunk-4LVYSUMN.js → chunk-7WZ2O5WZ.js} +6 -27
- package/dist/chunk-7WZ2O5WZ.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-WE32YJKT.js → chunk-NBV37VMW.js} +2 -2
- package/dist/{chunk-WE32YJKT.js.map → chunk-NBV37VMW.js.map} +1 -1
- package/dist/{chunk-O6YP55RV.js → chunk-PUNBDLQO.js} +141 -96
- package/dist/chunk-PUNBDLQO.js.map +1 -0
- package/dist/{chunk-C22VTCS6.js → chunk-TMNHJOKU.js} +1193 -226
- package/dist/chunk-TMNHJOKU.js.map +1 -0
- package/dist/{chunk-5QMVQPHY.js → chunk-XWHC6VAH.js} +3 -2
- package/dist/chunk-XWHC6VAH.js.map +1 -0
- package/dist/{dispatch-6LQSMMGI.js → dispatch-S3CR5HKX.js} +2 -2
- package/dist/engines/codex.json +3 -0
- package/dist/{forge-ES4RN7YM.js → forge-GUOEJ5DJ.js} +6 -6
- package/dist/index.js +561 -128
- package/dist/index.js.map +1 -1
- package/dist/plan-mode-35BONR7S.js +17 -0
- package/dist/{src-WJGIOESS.js → src-3NWTITZM.js} +55 -3
- package/dist/{update-HHN4PJQI.js → update-H3LE4ZSI.js} +6 -6
- package/package.json +5 -4
- package/dist/chunk-4LVYSUMN.js.map +0 -1
- package/dist/chunk-5QMVQPHY.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-S3CR5HKX.js.map} +0 -0
- /package/dist/{forge-ES4RN7YM.js.map → forge-GUOEJ5DJ.js.map} +0 -0
- /package/dist/{plan-mode-4XRC2ZC7.js.map → plan-mode-35BONR7S.js.map} +0 -0
- /package/dist/{src-WJGIOESS.js.map → src-3NWTITZM.js.map} +0 -0
- /package/dist/{update-HHN4PJQI.js.map → update-H3LE4ZSI.js.map} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
buildStepExecutors,
|
|
4
|
+
handleExitPlanMode,
|
|
5
|
+
handleProposePlan
|
|
6
|
+
} from "./chunk-PUNBDLQO.js";
|
|
7
|
+
import "./chunk-HSPQEDHX.js";
|
|
8
|
+
import "./chunk-3PDYVGRS.js";
|
|
9
|
+
import "./chunk-NBV37VMW.js";
|
|
10
|
+
import "./chunk-TMNHJOKU.js";
|
|
11
|
+
import "./chunk-XWHC6VAH.js";
|
|
12
|
+
export {
|
|
13
|
+
buildStepExecutors,
|
|
14
|
+
handleExitPlanMode,
|
|
15
|
+
handleProposePlan
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=plan-mode-35BONR7S.js.map
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AgentSession,
|
|
6
6
|
AgentTeam,
|
|
7
7
|
AgonError,
|
|
8
|
+
CESAR_STEP_TYPES,
|
|
8
9
|
CORPUS_PATH,
|
|
9
10
|
CommandRegistry,
|
|
10
11
|
ConfigError,
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
GitError,
|
|
26
27
|
ISOLATION_MODES,
|
|
27
28
|
PASTE_MAX_AGE,
|
|
29
|
+
PRESENCE_TTL_MS,
|
|
28
30
|
PlanStateError,
|
|
29
31
|
RATINGS_PATH,
|
|
30
32
|
RUNS_DIR,
|
|
@@ -41,6 +43,7 @@ import {
|
|
|
41
43
|
WorktreeError,
|
|
42
44
|
absoluteGitDir,
|
|
43
45
|
acquireApplyLock,
|
|
46
|
+
acquireTurnLease,
|
|
44
47
|
addEngineNote,
|
|
45
48
|
addEngineTendency,
|
|
46
49
|
addWorkspace,
|
|
@@ -49,6 +52,7 @@ import {
|
|
|
49
52
|
advisorScore,
|
|
50
53
|
agonPath,
|
|
51
54
|
analyzeFlows,
|
|
55
|
+
appendEvent,
|
|
52
56
|
appendMessage,
|
|
53
57
|
appendUserTurnIfAbsent,
|
|
54
58
|
applyEffectPackage,
|
|
@@ -79,6 +83,7 @@ import {
|
|
|
79
83
|
buildForgeProvenance,
|
|
80
84
|
buildHistoryPrimedPrompt,
|
|
81
85
|
buildImageAttachment,
|
|
86
|
+
buildKernContextSpine,
|
|
82
87
|
buildModelEntries,
|
|
83
88
|
buildReviewPrompt,
|
|
84
89
|
buildRolePrompt,
|
|
@@ -106,6 +111,7 @@ import {
|
|
|
106
111
|
clearLinesSequence,
|
|
107
112
|
clearProjectFileStateCaches,
|
|
108
113
|
clearSessionState,
|
|
114
|
+
closeRoom,
|
|
109
115
|
collectSourceFiles,
|
|
110
116
|
companionDispatch,
|
|
111
117
|
completeAgent,
|
|
@@ -146,6 +152,7 @@ import {
|
|
|
146
152
|
createResumeSession,
|
|
147
153
|
createRetrieveResultTool,
|
|
148
154
|
createReviewTool,
|
|
155
|
+
createRoom,
|
|
149
156
|
createRunDir,
|
|
150
157
|
createSessionWorktree,
|
|
151
158
|
createSidechainLogger,
|
|
@@ -164,7 +171,9 @@ import {
|
|
|
164
171
|
deleteThread,
|
|
165
172
|
detectLanguageFromPath,
|
|
166
173
|
detectPackageManager,
|
|
174
|
+
detectPingPong,
|
|
167
175
|
detectSynthesisInsightMention,
|
|
176
|
+
detectTrigger,
|
|
168
177
|
determineWinner,
|
|
169
178
|
diffFileCount,
|
|
170
179
|
diffLineCount,
|
|
@@ -173,6 +182,7 @@ import {
|
|
|
173
182
|
discoverExtensionDirs,
|
|
174
183
|
discoverMcpServers,
|
|
175
184
|
effectPackageDiff,
|
|
185
|
+
encodeImagesForDispatch,
|
|
176
186
|
engineHealth,
|
|
177
187
|
ensureAgonHome,
|
|
178
188
|
ensureCurrentWorkspace,
|
|
@@ -180,6 +190,7 @@ import {
|
|
|
180
190
|
estimateTokens,
|
|
181
191
|
estimatedTokensToCost,
|
|
182
192
|
estimatedUsage,
|
|
193
|
+
evaluateStop,
|
|
183
194
|
executePlan,
|
|
184
195
|
executeToolCall,
|
|
185
196
|
executeToolCalls,
|
|
@@ -243,6 +254,7 @@ import {
|
|
|
243
254
|
isKernProject,
|
|
244
255
|
isPathUnderCwd,
|
|
245
256
|
isReadOnlyCommand,
|
|
257
|
+
isRoomClosed,
|
|
246
258
|
isTerminal,
|
|
247
259
|
isValidIsolationMode,
|
|
248
260
|
latestChatSession,
|
|
@@ -251,6 +263,8 @@ import {
|
|
|
251
263
|
listCesarPlans,
|
|
252
264
|
listChatSessions,
|
|
253
265
|
listPlans,
|
|
266
|
+
listPresence,
|
|
267
|
+
listRooms,
|
|
254
268
|
listSessionWorktrees,
|
|
255
269
|
listSnapshots,
|
|
256
270
|
listStoredProviders,
|
|
@@ -285,9 +299,11 @@ import {
|
|
|
285
299
|
mergeStepResult,
|
|
286
300
|
mimeFromExt,
|
|
287
301
|
modelEntryToEngineDef,
|
|
302
|
+
normalizeDroppedPath,
|
|
288
303
|
normalizeSessionChunk,
|
|
289
304
|
normalizeTodos,
|
|
290
305
|
parseAndValidateUrl,
|
|
306
|
+
parseMentions,
|
|
291
307
|
parsePatch,
|
|
292
308
|
parseSearchResults,
|
|
293
309
|
parseStreamChunk,
|
|
@@ -307,6 +323,8 @@ import {
|
|
|
307
323
|
pruneToolCache,
|
|
308
324
|
rankByTaskClass,
|
|
309
325
|
rankEnginesByRating,
|
|
326
|
+
readActiveLease,
|
|
327
|
+
readEvents,
|
|
310
328
|
readFlows,
|
|
311
329
|
readOnlyDiff,
|
|
312
330
|
readPatchFromManifest,
|
|
@@ -315,6 +333,7 @@ import {
|
|
|
315
333
|
recentCommits,
|
|
316
334
|
recordForgeJudgment,
|
|
317
335
|
recordForgeOutcome,
|
|
336
|
+
recordPresence,
|
|
318
337
|
refreshCliGroup,
|
|
319
338
|
refreshCliGroupVersion,
|
|
320
339
|
refreshProbedCliModels,
|
|
@@ -322,8 +341,10 @@ import {
|
|
|
322
341
|
rehydrateSessionWorktree,
|
|
323
342
|
rejectTool,
|
|
324
343
|
releaseApplyLock,
|
|
344
|
+
releaseTurnLease,
|
|
325
345
|
relocateEffectPackage,
|
|
326
346
|
removeAuthKey,
|
|
347
|
+
removePresence,
|
|
327
348
|
removeSessionWorktree,
|
|
328
349
|
removeWorkspace,
|
|
329
350
|
renderProvenanceJson,
|
|
@@ -340,12 +361,16 @@ import {
|
|
|
340
361
|
resolveWorkingDir,
|
|
341
362
|
resumeChatSession,
|
|
342
363
|
revertSnapshot,
|
|
364
|
+
roomDir,
|
|
365
|
+
roomExists,
|
|
366
|
+
roomsDir,
|
|
343
367
|
runAgentInvestigateSynthesis,
|
|
344
368
|
runAgentTeamSynthesis,
|
|
345
369
|
runApiAgentLoop,
|
|
346
370
|
runHooks,
|
|
347
371
|
runPostSynthesisFitnessCheck,
|
|
348
372
|
runToolLoop,
|
|
373
|
+
sanitizePlanSteps,
|
|
349
374
|
sanitizeRunLabel,
|
|
350
375
|
saveAuthStore,
|
|
351
376
|
saveCesarPlan,
|
|
@@ -369,6 +394,7 @@ import {
|
|
|
369
394
|
setEngineStrengths,
|
|
370
395
|
setEngineWeaknesses,
|
|
371
396
|
sha256OfFile,
|
|
397
|
+
slugifyRoomId,
|
|
372
398
|
snapshotList,
|
|
373
399
|
snapshotRead,
|
|
374
400
|
snapshotWorkspace,
|
|
@@ -410,18 +436,19 @@ import {
|
|
|
410
436
|
worktreeRemoveBestEffort,
|
|
411
437
|
writeProvenanceReport,
|
|
412
438
|
writeRunStatus
|
|
413
|
-
} from "./chunk-
|
|
439
|
+
} from "./chunk-TMNHJOKU.js";
|
|
414
440
|
import {
|
|
415
441
|
apiDispatch,
|
|
416
442
|
apiStreamDispatch,
|
|
417
443
|
apiStreamDispatchWithHistory
|
|
418
|
-
} from "./chunk-
|
|
444
|
+
} from "./chunk-XWHC6VAH.js";
|
|
419
445
|
export {
|
|
420
446
|
AGON_HOME,
|
|
421
447
|
AGON_MODE_NAMES,
|
|
422
448
|
AgentSession,
|
|
423
449
|
AgentTeam,
|
|
424
450
|
AgonError,
|
|
451
|
+
CESAR_STEP_TYPES,
|
|
425
452
|
CORPUS_PATH,
|
|
426
453
|
CommandRegistry,
|
|
427
454
|
ConfigError,
|
|
@@ -442,6 +469,7 @@ export {
|
|
|
442
469
|
GitError,
|
|
443
470
|
ISOLATION_MODES,
|
|
444
471
|
PASTE_MAX_AGE,
|
|
472
|
+
PRESENCE_TTL_MS,
|
|
445
473
|
PlanStateError,
|
|
446
474
|
RATINGS_PATH,
|
|
447
475
|
RUNS_DIR,
|
|
@@ -458,6 +486,7 @@ export {
|
|
|
458
486
|
WorktreeError,
|
|
459
487
|
absoluteGitDir,
|
|
460
488
|
acquireApplyLock,
|
|
489
|
+
acquireTurnLease,
|
|
461
490
|
addEngineNote,
|
|
462
491
|
addEngineTendency,
|
|
463
492
|
addWorkspace,
|
|
@@ -469,6 +498,7 @@ export {
|
|
|
469
498
|
apiDispatch,
|
|
470
499
|
apiStreamDispatch,
|
|
471
500
|
apiStreamDispatchWithHistory,
|
|
501
|
+
appendEvent,
|
|
472
502
|
appendMessage,
|
|
473
503
|
appendUserTurnIfAbsent,
|
|
474
504
|
applyEffectPackage,
|
|
@@ -499,6 +529,7 @@ export {
|
|
|
499
529
|
buildForgeProvenance,
|
|
500
530
|
buildHistoryPrimedPrompt,
|
|
501
531
|
buildImageAttachment,
|
|
532
|
+
buildKernContextSpine,
|
|
502
533
|
buildModelEntries,
|
|
503
534
|
buildReviewPrompt,
|
|
504
535
|
buildRolePrompt,
|
|
@@ -526,6 +557,7 @@ export {
|
|
|
526
557
|
clearLinesSequence,
|
|
527
558
|
clearProjectFileStateCaches,
|
|
528
559
|
clearSessionState,
|
|
560
|
+
closeRoom,
|
|
529
561
|
collectSourceFiles,
|
|
530
562
|
companionDispatch,
|
|
531
563
|
completeAgent,
|
|
@@ -566,6 +598,7 @@ export {
|
|
|
566
598
|
createResumeSession,
|
|
567
599
|
createRetrieveResultTool,
|
|
568
600
|
createReviewTool,
|
|
601
|
+
createRoom,
|
|
569
602
|
createRunDir,
|
|
570
603
|
createSessionWorktree,
|
|
571
604
|
createSidechainLogger,
|
|
@@ -584,7 +617,9 @@ export {
|
|
|
584
617
|
deleteThread,
|
|
585
618
|
detectLanguageFromPath,
|
|
586
619
|
detectPackageManager,
|
|
620
|
+
detectPingPong,
|
|
587
621
|
detectSynthesisInsightMention,
|
|
622
|
+
detectTrigger,
|
|
588
623
|
determineWinner,
|
|
589
624
|
diffFileCount,
|
|
590
625
|
diffLineCount,
|
|
@@ -593,6 +628,7 @@ export {
|
|
|
593
628
|
discoverExtensionDirs,
|
|
594
629
|
discoverMcpServers,
|
|
595
630
|
effectPackageDiff,
|
|
631
|
+
encodeImagesForDispatch,
|
|
596
632
|
engineHealth,
|
|
597
633
|
ensureAgonHome,
|
|
598
634
|
ensureCurrentWorkspace,
|
|
@@ -600,6 +636,7 @@ export {
|
|
|
600
636
|
estimateTokens,
|
|
601
637
|
estimatedTokensToCost,
|
|
602
638
|
estimatedUsage,
|
|
639
|
+
evaluateStop,
|
|
603
640
|
executePlan,
|
|
604
641
|
executeToolCall,
|
|
605
642
|
executeToolCalls,
|
|
@@ -663,6 +700,7 @@ export {
|
|
|
663
700
|
isKernProject,
|
|
664
701
|
isPathUnderCwd,
|
|
665
702
|
isReadOnlyCommand,
|
|
703
|
+
isRoomClosed,
|
|
666
704
|
isTerminal,
|
|
667
705
|
isValidIsolationMode,
|
|
668
706
|
latestChatSession,
|
|
@@ -671,6 +709,8 @@ export {
|
|
|
671
709
|
listCesarPlans,
|
|
672
710
|
listChatSessions,
|
|
673
711
|
listPlans,
|
|
712
|
+
listPresence,
|
|
713
|
+
listRooms,
|
|
674
714
|
listSessionWorktrees,
|
|
675
715
|
listSnapshots,
|
|
676
716
|
listStoredProviders,
|
|
@@ -705,9 +745,11 @@ export {
|
|
|
705
745
|
mergeStepResult,
|
|
706
746
|
mimeFromExt,
|
|
707
747
|
modelEntryToEngineDef,
|
|
748
|
+
normalizeDroppedPath,
|
|
708
749
|
normalizeSessionChunk,
|
|
709
750
|
normalizeTodos,
|
|
710
751
|
parseAndValidateUrl,
|
|
752
|
+
parseMentions,
|
|
711
753
|
parsePatch,
|
|
712
754
|
parseSearchResults,
|
|
713
755
|
parseStreamChunk,
|
|
@@ -727,6 +769,8 @@ export {
|
|
|
727
769
|
pruneToolCache,
|
|
728
770
|
rankByTaskClass,
|
|
729
771
|
rankEnginesByRating,
|
|
772
|
+
readActiveLease,
|
|
773
|
+
readEvents,
|
|
730
774
|
readFlows,
|
|
731
775
|
readOnlyDiff,
|
|
732
776
|
readPatchFromManifest,
|
|
@@ -735,6 +779,7 @@ export {
|
|
|
735
779
|
recentCommits,
|
|
736
780
|
recordForgeJudgment,
|
|
737
781
|
recordForgeOutcome,
|
|
782
|
+
recordPresence,
|
|
738
783
|
refreshCliGroup,
|
|
739
784
|
refreshCliGroupVersion,
|
|
740
785
|
refreshProbedCliModels,
|
|
@@ -742,8 +787,10 @@ export {
|
|
|
742
787
|
rehydrateSessionWorktree,
|
|
743
788
|
rejectTool,
|
|
744
789
|
releaseApplyLock,
|
|
790
|
+
releaseTurnLease,
|
|
745
791
|
relocateEffectPackage,
|
|
746
792
|
removeAuthKey,
|
|
793
|
+
removePresence,
|
|
747
794
|
removeSessionWorktree,
|
|
748
795
|
removeWorkspace,
|
|
749
796
|
renderProvenanceJson,
|
|
@@ -760,12 +807,16 @@ export {
|
|
|
760
807
|
resolveWorkingDir,
|
|
761
808
|
resumeChatSession,
|
|
762
809
|
revertSnapshot,
|
|
810
|
+
roomDir,
|
|
811
|
+
roomExists,
|
|
812
|
+
roomsDir,
|
|
763
813
|
runAgentInvestigateSynthesis,
|
|
764
814
|
runAgentTeamSynthesis,
|
|
765
815
|
runApiAgentLoop,
|
|
766
816
|
runHooks,
|
|
767
817
|
runPostSynthesisFitnessCheck,
|
|
768
818
|
runToolLoop,
|
|
819
|
+
sanitizePlanSteps,
|
|
769
820
|
sanitizeRunLabel,
|
|
770
821
|
saveAuthStore,
|
|
771
822
|
saveCesarPlan,
|
|
@@ -789,6 +840,7 @@ export {
|
|
|
789
840
|
setEngineStrengths,
|
|
790
841
|
setEngineWeaknesses,
|
|
791
842
|
sha256OfFile,
|
|
843
|
+
slugifyRoomId,
|
|
792
844
|
snapshotList,
|
|
793
845
|
snapshotRead,
|
|
794
846
|
snapshotWorkspace,
|
|
@@ -831,4 +883,4 @@ export {
|
|
|
831
883
|
writeProvenanceReport,
|
|
832
884
|
writeRunStatus
|
|
833
885
|
};
|
|
834
|
-
//# sourceMappingURL=src-
|
|
886
|
+
//# sourceMappingURL=src-3NWTITZM.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-6IF2AV4Y.js";
|
|
14
|
+
import "./chunk-HSPQEDHX.js";
|
|
15
|
+
import "./chunk-NBV37VMW.js";
|
|
16
|
+
import "./chunk-TMNHJOKU.js";
|
|
17
|
+
import "./chunk-XWHC6VAH.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-H3LE4ZSI.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.6",
|
|
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,12 @@
|
|
|
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.6",
|
|
59
|
+
"@kernlang/agon-mcp": "^0.1.6",
|
|
59
60
|
"@ai-sdk/anthropic": "^3.0.67",
|
|
60
61
|
"@ai-sdk/openai-compatible": "^2.0.40",
|
|
61
|
-
"@kernlang/protocol": "~3.5.
|
|
62
|
-
"@kernlang/terminal": "~3.5.
|
|
62
|
+
"@kernlang/protocol": "~3.5.8",
|
|
63
|
+
"@kernlang/terminal": "~3.5.8",
|
|
63
64
|
"ai": "^6.0.149",
|
|
64
65
|
"citty": "^0.1.6",
|
|
65
66
|
"ink": "^7.0.1",
|