@kernlang/agon 0.1.3 → 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.
Files changed (34) hide show
  1. package/dist/{chunk-52VTWOLH.js → chunk-46WNYE4R.js} +118 -162
  2. package/dist/chunk-46WNYE4R.js.map +1 -0
  3. package/dist/{chunk-XOJPAFCJ.js → chunk-4NTH3EAR.js} +286 -541
  4. package/dist/chunk-4NTH3EAR.js.map +1 -0
  5. package/dist/{chunk-H7KZ34VX.js → chunk-73ETZFDH.js} +8 -27
  6. package/dist/chunk-73ETZFDH.js.map +1 -0
  7. package/dist/chunk-DGTU4UWQ.js +489 -0
  8. package/dist/chunk-DGTU4UWQ.js.map +1 -0
  9. package/dist/chunk-GPYWJO2Q.js +2924 -0
  10. package/dist/chunk-GPYWJO2Q.js.map +1 -0
  11. package/dist/{chunk-PFHGKBQT.js → chunk-HAJIKZGU.js} +912 -228
  12. package/dist/chunk-HAJIKZGU.js.map +1 -0
  13. package/dist/chunk-HSPQEDHX.js +102 -0
  14. package/dist/chunk-HSPQEDHX.js.map +1 -0
  15. package/dist/{chunk-5QMVQPHY.js → chunk-SOUF7XTW.js} +1 -1
  16. package/dist/{chunk-5QMVQPHY.js.map → chunk-SOUF7XTW.js.map} +1 -1
  17. package/dist/{dispatch-6LQSMMGI.js → dispatch-XHLJ44TF.js} +2 -2
  18. package/dist/{forge-6NV4WCMB.js → forge-ZI7NE73F.js} +6 -5
  19. package/dist/index.js +2070 -3551
  20. package/dist/index.js.map +1 -1
  21. package/dist/plan-mode-KIXDKD63.js +17 -0
  22. package/dist/{src-4VOZ6GIN.js → src-4A5FVACG.js} +53 -3
  23. package/dist/update-DLPMYTF3.js +30 -0
  24. package/dist/update-DLPMYTF3.js.map +1 -0
  25. package/package.json +4 -4
  26. package/dist/chunk-52VTWOLH.js.map +0 -1
  27. package/dist/chunk-H7KZ34VX.js.map +0 -1
  28. package/dist/chunk-PFHGKBQT.js.map +0 -1
  29. package/dist/chunk-XOJPAFCJ.js.map +0 -1
  30. package/dist/plan-mode-OSU42TOI.js +0 -15
  31. /package/dist/{dispatch-6LQSMMGI.js.map → dispatch-XHLJ44TF.js.map} +0 -0
  32. /package/dist/{forge-6NV4WCMB.js.map → forge-ZI7NE73F.js.map} +0 -0
  33. /package/dist/{plan-mode-OSU42TOI.js.map → plan-mode-KIXDKD63.js.map} +0 -0
  34. /package/dist/{src-4VOZ6GIN.js.map → src-4A5FVACG.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
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AGON_HOME,
4
+ AGON_MODE_NAMES,
4
5
  AgentSession,
5
6
  AgentTeam,
6
7
  AgonError,
@@ -24,6 +25,7 @@ import {
24
25
  GitError,
25
26
  ISOLATION_MODES,
26
27
  PASTE_MAX_AGE,
28
+ PRESENCE_TTL_MS,
27
29
  PlanStateError,
28
30
  RATINGS_PATH,
29
31
  RUNS_DIR,
@@ -40,6 +42,7 @@ import {
40
42
  WorktreeError,
41
43
  absoluteGitDir,
42
44
  acquireApplyLock,
45
+ acquireTurnLease,
43
46
  addEngineNote,
44
47
  addEngineTendency,
45
48
  addWorkspace,
@@ -48,6 +51,7 @@ import {
48
51
  advisorScore,
49
52
  agonPath,
50
53
  analyzeFlows,
54
+ appendEvent,
51
55
  appendMessage,
52
56
  appendUserTurnIfAbsent,
53
57
  applyEffectPackage,
@@ -78,6 +82,7 @@ import {
78
82
  buildForgeProvenance,
79
83
  buildHistoryPrimedPrompt,
80
84
  buildImageAttachment,
85
+ buildKernContextSpine,
81
86
  buildModelEntries,
82
87
  buildReviewPrompt,
83
88
  buildRolePrompt,
@@ -105,6 +110,7 @@ import {
105
110
  clearLinesSequence,
106
111
  clearProjectFileStateCaches,
107
112
  clearSessionState,
113
+ closeRoom,
108
114
  collectSourceFiles,
109
115
  companionDispatch,
110
116
  completeAgent,
@@ -145,6 +151,7 @@ import {
145
151
  createResumeSession,
146
152
  createRetrieveResultTool,
147
153
  createReviewTool,
154
+ createRoom,
148
155
  createRunDir,
149
156
  createSessionWorktree,
150
157
  createSidechainLogger,
@@ -163,7 +170,9 @@ import {
163
170
  deleteThread,
164
171
  detectLanguageFromPath,
165
172
  detectPackageManager,
173
+ detectPingPong,
166
174
  detectSynthesisInsightMention,
175
+ detectTrigger,
167
176
  determineWinner,
168
177
  diffFileCount,
169
178
  diffLineCount,
@@ -179,6 +188,7 @@ import {
179
188
  estimateTokens,
180
189
  estimatedTokensToCost,
181
190
  estimatedUsage,
191
+ evaluateStop,
182
192
  executePlan,
183
193
  executeToolCall,
184
194
  executeToolCalls,
@@ -225,6 +235,7 @@ import {
225
235
  gitDiffStat,
226
236
  gitStatusShort,
227
237
  gitTruncatedDiff,
238
+ hasProjectBrief,
228
239
  headChanged,
229
240
  headSha,
230
241
  hooksFailed,
@@ -241,6 +252,7 @@ import {
241
252
  isKernProject,
242
253
  isPathUnderCwd,
243
254
  isReadOnlyCommand,
255
+ isRoomClosed,
244
256
  isTerminal,
245
257
  isValidIsolationMode,
246
258
  latestChatSession,
@@ -249,6 +261,8 @@ import {
249
261
  listCesarPlans,
250
262
  listChatSessions,
251
263
  listPlans,
264
+ listPresence,
265
+ listRooms,
252
266
  listSessionWorktrees,
253
267
  listSnapshots,
254
268
  listStoredProviders,
@@ -283,9 +297,11 @@ import {
283
297
  mergeStepResult,
284
298
  mimeFromExt,
285
299
  modelEntryToEngineDef,
300
+ normalizeDroppedPath,
286
301
  normalizeSessionChunk,
287
302
  normalizeTodos,
288
303
  parseAndValidateUrl,
304
+ parseMentions,
289
305
  parsePatch,
290
306
  parseSearchResults,
291
307
  parseStreamChunk,
@@ -305,6 +321,8 @@ import {
305
321
  pruneToolCache,
306
322
  rankByTaskClass,
307
323
  rankEnginesByRating,
324
+ readActiveLease,
325
+ readEvents,
308
326
  readFlows,
309
327
  readOnlyDiff,
310
328
  readPatchFromManifest,
@@ -313,6 +331,7 @@ import {
313
331
  recentCommits,
314
332
  recordForgeJudgment,
315
333
  recordForgeOutcome,
334
+ recordPresence,
316
335
  refreshCliGroup,
317
336
  refreshCliGroupVersion,
318
337
  refreshProbedCliModels,
@@ -320,8 +339,10 @@ import {
320
339
  rehydrateSessionWorktree,
321
340
  rejectTool,
322
341
  releaseApplyLock,
342
+ releaseTurnLease,
323
343
  relocateEffectPackage,
324
344
  removeAuthKey,
345
+ removePresence,
325
346
  removeSessionWorktree,
326
347
  removeWorkspace,
327
348
  renderProvenanceJson,
@@ -338,6 +359,9 @@ import {
338
359
  resolveWorkingDir,
339
360
  resumeChatSession,
340
361
  revertSnapshot,
362
+ roomDir,
363
+ roomExists,
364
+ roomsDir,
341
365
  runAgentInvestigateSynthesis,
342
366
  runAgentTeamSynthesis,
343
367
  runApiAgentLoop,
@@ -367,6 +391,7 @@ import {
367
391
  setEngineStrengths,
368
392
  setEngineWeaknesses,
369
393
  sha256OfFile,
394
+ slugifyRoomId,
370
395
  snapshotList,
371
396
  snapshotRead,
372
397
  snapshotWorkspace,
@@ -408,14 +433,15 @@ import {
408
433
  worktreeRemoveBestEffort,
409
434
  writeProvenanceReport,
410
435
  writeRunStatus
411
- } from "./chunk-PFHGKBQT.js";
436
+ } from "./chunk-HAJIKZGU.js";
412
437
  import {
413
438
  apiDispatch,
414
439
  apiStreamDispatch,
415
440
  apiStreamDispatchWithHistory
416
- } from "./chunk-5QMVQPHY.js";
441
+ } from "./chunk-SOUF7XTW.js";
417
442
  export {
418
443
  AGON_HOME,
444
+ AGON_MODE_NAMES,
419
445
  AgentSession,
420
446
  AgentTeam,
421
447
  AgonError,
@@ -439,6 +465,7 @@ export {
439
465
  GitError,
440
466
  ISOLATION_MODES,
441
467
  PASTE_MAX_AGE,
468
+ PRESENCE_TTL_MS,
442
469
  PlanStateError,
443
470
  RATINGS_PATH,
444
471
  RUNS_DIR,
@@ -455,6 +482,7 @@ export {
455
482
  WorktreeError,
456
483
  absoluteGitDir,
457
484
  acquireApplyLock,
485
+ acquireTurnLease,
458
486
  addEngineNote,
459
487
  addEngineTendency,
460
488
  addWorkspace,
@@ -466,6 +494,7 @@ export {
466
494
  apiDispatch,
467
495
  apiStreamDispatch,
468
496
  apiStreamDispatchWithHistory,
497
+ appendEvent,
469
498
  appendMessage,
470
499
  appendUserTurnIfAbsent,
471
500
  applyEffectPackage,
@@ -496,6 +525,7 @@ export {
496
525
  buildForgeProvenance,
497
526
  buildHistoryPrimedPrompt,
498
527
  buildImageAttachment,
528
+ buildKernContextSpine,
499
529
  buildModelEntries,
500
530
  buildReviewPrompt,
501
531
  buildRolePrompt,
@@ -523,6 +553,7 @@ export {
523
553
  clearLinesSequence,
524
554
  clearProjectFileStateCaches,
525
555
  clearSessionState,
556
+ closeRoom,
526
557
  collectSourceFiles,
527
558
  companionDispatch,
528
559
  completeAgent,
@@ -563,6 +594,7 @@ export {
563
594
  createResumeSession,
564
595
  createRetrieveResultTool,
565
596
  createReviewTool,
597
+ createRoom,
566
598
  createRunDir,
567
599
  createSessionWorktree,
568
600
  createSidechainLogger,
@@ -581,7 +613,9 @@ export {
581
613
  deleteThread,
582
614
  detectLanguageFromPath,
583
615
  detectPackageManager,
616
+ detectPingPong,
584
617
  detectSynthesisInsightMention,
618
+ detectTrigger,
585
619
  determineWinner,
586
620
  diffFileCount,
587
621
  diffLineCount,
@@ -597,6 +631,7 @@ export {
597
631
  estimateTokens,
598
632
  estimatedTokensToCost,
599
633
  estimatedUsage,
634
+ evaluateStop,
600
635
  executePlan,
601
636
  executeToolCall,
602
637
  executeToolCalls,
@@ -643,6 +678,7 @@ export {
643
678
  gitDiffStat,
644
679
  gitStatusShort,
645
680
  gitTruncatedDiff,
681
+ hasProjectBrief,
646
682
  headChanged,
647
683
  headSha,
648
684
  hooksFailed,
@@ -659,6 +695,7 @@ export {
659
695
  isKernProject,
660
696
  isPathUnderCwd,
661
697
  isReadOnlyCommand,
698
+ isRoomClosed,
662
699
  isTerminal,
663
700
  isValidIsolationMode,
664
701
  latestChatSession,
@@ -667,6 +704,8 @@ export {
667
704
  listCesarPlans,
668
705
  listChatSessions,
669
706
  listPlans,
707
+ listPresence,
708
+ listRooms,
670
709
  listSessionWorktrees,
671
710
  listSnapshots,
672
711
  listStoredProviders,
@@ -701,9 +740,11 @@ export {
701
740
  mergeStepResult,
702
741
  mimeFromExt,
703
742
  modelEntryToEngineDef,
743
+ normalizeDroppedPath,
704
744
  normalizeSessionChunk,
705
745
  normalizeTodos,
706
746
  parseAndValidateUrl,
747
+ parseMentions,
707
748
  parsePatch,
708
749
  parseSearchResults,
709
750
  parseStreamChunk,
@@ -723,6 +764,8 @@ export {
723
764
  pruneToolCache,
724
765
  rankByTaskClass,
725
766
  rankEnginesByRating,
767
+ readActiveLease,
768
+ readEvents,
726
769
  readFlows,
727
770
  readOnlyDiff,
728
771
  readPatchFromManifest,
@@ -731,6 +774,7 @@ export {
731
774
  recentCommits,
732
775
  recordForgeJudgment,
733
776
  recordForgeOutcome,
777
+ recordPresence,
734
778
  refreshCliGroup,
735
779
  refreshCliGroupVersion,
736
780
  refreshProbedCliModels,
@@ -738,8 +782,10 @@ export {
738
782
  rehydrateSessionWorktree,
739
783
  rejectTool,
740
784
  releaseApplyLock,
785
+ releaseTurnLease,
741
786
  relocateEffectPackage,
742
787
  removeAuthKey,
788
+ removePresence,
743
789
  removeSessionWorktree,
744
790
  removeWorkspace,
745
791
  renderProvenanceJson,
@@ -756,6 +802,9 @@ export {
756
802
  resolveWorkingDir,
757
803
  resumeChatSession,
758
804
  revertSnapshot,
805
+ roomDir,
806
+ roomExists,
807
+ roomsDir,
759
808
  runAgentInvestigateSynthesis,
760
809
  runAgentTeamSynthesis,
761
810
  runApiAgentLoop,
@@ -785,6 +834,7 @@ export {
785
834
  setEngineStrengths,
786
835
  setEngineWeaknesses,
787
836
  sha256OfFile,
837
+ slugifyRoomId,
788
838
  snapshotList,
789
839
  snapshotRead,
790
840
  snapshotWorkspace,
@@ -827,4 +877,4 @@ export {
827
877
  writeProvenanceReport,
828
878
  writeRunStatus
829
879
  };
830
- //# sourceMappingURL=src-4VOZ6GIN.js.map
880
+ //# sourceMappingURL=src-4A5FVACG.js.map
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ DEFAULT_PACKAGE,
4
+ DEFAULT_TIMEOUT_MS,
5
+ DEFAULT_UPDATE_PACKAGE,
6
+ RESTART_DELAY_MS,
7
+ announcePhase,
8
+ buildNpmArgs,
9
+ runNpmInstall,
10
+ runUpdate,
11
+ suggestPermissionFix,
12
+ updateCommand
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
+ export {
19
+ DEFAULT_PACKAGE,
20
+ DEFAULT_TIMEOUT_MS,
21
+ DEFAULT_UPDATE_PACKAGE,
22
+ RESTART_DELAY_MS,
23
+ announcePhase,
24
+ buildNpmArgs,
25
+ runNpmInstall,
26
+ runUpdate,
27
+ suggestPermissionFix,
28
+ updateCommand
29
+ };
30
+ //# sourceMappingURL=update-DLPMYTF3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernlang/agon",
3
- "version": "0.1.3",
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.3",
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.7",
62
- "@kernlang/terminal": "~3.5.7",
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",