open-multi-agent-kit 0.94.0 → 0.94.1
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/CHANGELOG.md +6 -0
- package/README.md +3 -2
- package/dist/core/github-star-nudge.d.ts +15 -0
- package/dist/core/github-star-nudge.d.ts.map +1 -0
- package/dist/core/github-star-nudge.js +21 -0
- package/dist/core/github-star-nudge.js.map +1 -0
- package/dist/core/settings-manager.d.ts +5 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +9 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +4 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +55 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/settings.md +11 -0
- package/docs/usage.md +1 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +15 -15
- package/package.json +5 -5
|
@@ -16,6 +16,7 @@ import { parseSkillBlock } from "../../core/agent-session.js";
|
|
|
16
16
|
import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
|
|
17
17
|
import { parseBangInvocation } from "../../core/bang-skill-invocation.js";
|
|
18
18
|
import { FooterDataProvider } from "../../core/footer-data-provider.js";
|
|
19
|
+
import { githubStarNudgeBody, githubStarNudgeTitle, OMK_GITHUB_STAR_URL, shouldShowGithubStarNudge, } from "../../core/github-star-nudge.js";
|
|
19
20
|
import { configureHttpDispatcher, formatHttpIdleTimeoutMs } from "../../core/http-dispatcher.js";
|
|
20
21
|
import { KeybindingsManager } from "../../core/keybindings.js";
|
|
21
22
|
import { createCompactionSummaryMessage } from "../../core/messages.js";
|
|
@@ -31,6 +32,7 @@ import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/cha
|
|
|
31
32
|
import { copyToClipboard } from "../../utils/clipboard.js";
|
|
32
33
|
import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
|
|
33
34
|
import { parseGitUrl } from "../../utils/git.js";
|
|
35
|
+
import { openBrowser } from "../../utils/open-browser.js";
|
|
34
36
|
import { getCwdRelativePath } from "../../utils/paths.js";
|
|
35
37
|
import { killTrackedDetachedChildren } from "../../utils/shell.js";
|
|
36
38
|
import { ensureTool } from "../../utils/tools-manager.js";
|
|
@@ -505,6 +507,28 @@ export class InteractiveMode {
|
|
|
505
507
|
this.editor.setAutocompleteProvider?.(provider);
|
|
506
508
|
}
|
|
507
509
|
}
|
|
510
|
+
showGithubStarNudgeIfNeeded() {
|
|
511
|
+
if (!shouldShowGithubStarNudge({ githubStarred: this.settingsManager.getGithubStarred() })) {
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
const starUrl = OMK_GITHUB_STAR_URL;
|
|
515
|
+
const starLink = getCapabilities().hyperlinks
|
|
516
|
+
? hyperlink(theme.fg("accent", "open repo & star"), starUrl)
|
|
517
|
+
: theme.fg("accent", starUrl);
|
|
518
|
+
const actionLine = theme.fg("muted", "Star it, then run ") +
|
|
519
|
+
theme.bold(theme.fg("accent", "/star")) +
|
|
520
|
+
theme.fg("muted", " so this stops. Link: ") +
|
|
521
|
+
starLink;
|
|
522
|
+
if (this.chatContainer.children.length > 0) {
|
|
523
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
524
|
+
}
|
|
525
|
+
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("accent", text)));
|
|
526
|
+
this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("accent", githubStarNudgeTitle()))}\n${githubStarNudgeBody()}`, 1, 0));
|
|
527
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
528
|
+
this.chatContainer.addChild(new Text(actionLine, 1, 0));
|
|
529
|
+
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("accent", text)));
|
|
530
|
+
this.ui.requestRender();
|
|
531
|
+
}
|
|
508
532
|
showStartupNoticesIfNeeded() {
|
|
509
533
|
if (this.startupNoticesShown) {
|
|
510
534
|
return;
|
|
@@ -1421,6 +1445,7 @@ export class InteractiveMode {
|
|
|
1421
1445
|
this.setupExtensionShortcuts(extensionRunner);
|
|
1422
1446
|
this.showLoadedResources({ force: false, showDiagnosticsWhenQuiet: true });
|
|
1423
1447
|
this.showStartupNoticesIfNeeded();
|
|
1448
|
+
this.showGithubStarNudgeIfNeeded();
|
|
1424
1449
|
}
|
|
1425
1450
|
applyRuntimeSettings() {
|
|
1426
1451
|
configureHttpDispatcher(this.settingsManager.getHttpIdleTimeoutMs());
|
|
@@ -2267,6 +2292,10 @@ export class InteractiveMode {
|
|
|
2267
2292
|
this.editor.setText("");
|
|
2268
2293
|
return;
|
|
2269
2294
|
}
|
|
2295
|
+
if (text === "/star" || text.startsWith("/star ")) {
|
|
2296
|
+
this.handleStarCommand(text);
|
|
2297
|
+
return true;
|
|
2298
|
+
}
|
|
2270
2299
|
if (text === "/changelog") {
|
|
2271
2300
|
this.handleChangelogCommand();
|
|
2272
2301
|
this.editor.setText("");
|
|
@@ -4758,6 +4787,32 @@ export class InteractiveMode {
|
|
|
4758
4787
|
this.chatContainer.addChild(new Text(info, 1, 0));
|
|
4759
4788
|
this.ui.requestRender();
|
|
4760
4789
|
}
|
|
4790
|
+
handleStarCommand(text) {
|
|
4791
|
+
const arg = text === "/star" ? "" : text.slice("/star".length).trim().toLowerCase();
|
|
4792
|
+
const reset = arg === "reset" || arg === "again" || arg === "clear";
|
|
4793
|
+
if (reset) {
|
|
4794
|
+
this.settingsManager.setGithubStarred(false);
|
|
4795
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
4796
|
+
this.chatContainer.addChild(new Text(theme.fg("warning", "Star nudge reset. It will show again on the next interactive launch until you /star."), 1, 0));
|
|
4797
|
+
this.ui.requestRender();
|
|
4798
|
+
return;
|
|
4799
|
+
}
|
|
4800
|
+
openBrowser(OMK_GITHUB_STAR_URL);
|
|
4801
|
+
this.settingsManager.setGithubStarred(true);
|
|
4802
|
+
const starLink = getCapabilities().hyperlinks
|
|
4803
|
+
? hyperlink(theme.fg("accent", OMK_GITHUB_STAR_URL), OMK_GITHUB_STAR_URL)
|
|
4804
|
+
: theme.fg("accent", OMK_GITHUB_STAR_URL);
|
|
4805
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
4806
|
+
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("accent", text)));
|
|
4807
|
+
this.chatContainer.addChild(new Text([
|
|
4808
|
+
theme.bold(theme.fg("accent", "Thanks — star nudge off")),
|
|
4809
|
+
theme.fg("muted", "Opened the repo (if a browser is available). Hit the star if you have not yet."),
|
|
4810
|
+
`${theme.fg("muted", "Repo: ")}${starLink}`,
|
|
4811
|
+
theme.fg("dim", "Forgot already? /star reset brings the nag back."),
|
|
4812
|
+
].join("\n"), 1, 0));
|
|
4813
|
+
this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("accent", text)));
|
|
4814
|
+
this.ui.requestRender();
|
|
4815
|
+
}
|
|
4761
4816
|
handleChangelogCommand() {
|
|
4762
4817
|
const changelogPath = getChangelogPath();
|
|
4763
4818
|
const allEntries = parseChangelog(changelogPath);
|