@ashx-j/lunr 0.2.18 → 0.2.19
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 +8 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +2 -2
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +11 -8
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +0 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +0 -22
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/node-runtime/{builtin-extensions-QATGXENO.js → builtin-extensions-322XDDEM.js} +2 -2
- package/dist/node-runtime/{chunk-ZBV7FAHG.js → chunk-4FX25LWP.js} +2 -2
- package/dist/node-runtime/{chunk-R5EDISSV.js → chunk-JHYKXIMM.js} +5 -2
- package/dist/node-runtime/{chunk-NI6OTSBH.js → chunk-TFBIJTM3.js} +4 -4
- package/dist/node-runtime/{chunk-G4P75AIS.js → chunk-TXHKBRHZ.js} +2 -23
- package/dist/node-runtime/{chunk-EBF6COVM.js → chunk-ZRCBN365.js} +2 -2
- package/dist/node-runtime/cli-runtime.js +1 -1
- package/dist/node-runtime/{command-AAV3YRR5.js → command-DWUM5X3U.js} +1 -1
- package/dist/node-runtime/{gateway-OAC4OBBL.js → gateway-UZXMFGWY.js} +1 -1
- package/dist/node-runtime/index.js +4 -4
- package/dist/node-runtime/{interactive-mode-2SZUO53H.js → interactive-mode-QT5IKGQ5.js} +1 -1
- package/dist/node-runtime/{interactive-view-S6J3QHEF.js → interactive-view-ILS6TAN5.js} +1 -1
- package/dist/node-runtime/{lunr-cron-AUUYP4N4.js → lunr-cron-QPBTKBGI.js} +1 -1
- package/dist/node-runtime/main.js +3 -3
- package/dist/node-runtime/rpc-entry.js +3 -3
- 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/package.json +4 -4
- package/dist/modes/interactive/injected-context.d.ts +0 -2
- package/dist/modes/interactive/injected-context.d.ts.map +0 -1
- package/dist/modes/interactive/injected-context.js +0 -7
- package/dist/modes/interactive/injected-context.js.map +0 -1
|
@@ -87,7 +87,6 @@ import { TrustSelectorComponent } from "./components/trust-selector.js";
|
|
|
87
87
|
import { renderUsageBox } from "./components/usage-view.js";
|
|
88
88
|
import { UserMessageComponent } from "./components/user-message.js";
|
|
89
89
|
import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
|
|
90
|
-
import { buildInjectedContextLines } from "./injected-context.js";
|
|
91
90
|
import { getModelSearchText } from "./model-search.js";
|
|
92
91
|
import { wrapSkillTagAutocomplete } from "./skill-tag-autocomplete.js";
|
|
93
92
|
import { computeSmoothRevealStep, countGraphemesBeforeToolCall, countMessageGraphemes, sliceMessageContent, } from "./smooth-streaming.js";
|
|
@@ -3312,7 +3311,6 @@ export class InteractiveMode {
|
|
|
3312
3311
|
updateFooter: true,
|
|
3313
3312
|
populateHistory: true,
|
|
3314
3313
|
});
|
|
3315
|
-
this.renderInjectedContextIfNeeded();
|
|
3316
3314
|
this.renderProjectTrustWarningIfNeeded();
|
|
3317
3315
|
// Show compaction info if session was compacted
|
|
3318
3316
|
const allEntries = this.sessionManager.getEntries();
|
|
@@ -3346,26 +3344,6 @@ export class InteractiveMode {
|
|
|
3346
3344
|
rebuildChatFromMessages() {
|
|
3347
3345
|
this.chatContainer.clear();
|
|
3348
3346
|
this.renderSessionEntries(this.sessionManager.buildContextEntries());
|
|
3349
|
-
this.renderInjectedContextIfNeeded();
|
|
3350
|
-
}
|
|
3351
|
-
sessionHasConversation() {
|
|
3352
|
-
return this.sessionManager.getEntries().some((entry) => entry.type === "message" && (entry.message.role === "user" || entry.message.role === "assistant"));
|
|
3353
|
-
}
|
|
3354
|
-
renderInjectedContextIfNeeded() {
|
|
3355
|
-
if (this.sessionHasConversation())
|
|
3356
|
-
return;
|
|
3357
|
-
const paths = this.session.resourceLoader
|
|
3358
|
-
.getAgentsFiles()
|
|
3359
|
-
.agentsFiles.map((file) => this.formatContextPath(file.path));
|
|
3360
|
-
const lines = buildInjectedContextLines(paths);
|
|
3361
|
-
if (lines.length === 0)
|
|
3362
|
-
return;
|
|
3363
|
-
if (this.chatContainer.children.length > 0) {
|
|
3364
|
-
this.chatContainer.addChild(new Spacer(1));
|
|
3365
|
-
}
|
|
3366
|
-
const [title, ...files] = lines;
|
|
3367
|
-
this.chatContainer.addChild(new Text(theme.fg("customMessageLabel", title ?? "injected context") +
|
|
3368
|
-
(files.length > 0 ? `\n${theme.fg("dim", files.join("\n"))}` : ""), 1, 0));
|
|
3369
3347
|
}
|
|
3370
3348
|
// =========================================================================
|
|
3371
3349
|
// Key handlers
|