@mrclrchtr/supi-context 2.6.0 → 2.7.0
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/README.md +51 -57
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/package.json +8 -5
- package/src/analysis.ts +146 -118
- package/src/capacity.ts +81 -0
- package/src/context.ts +39 -27
- package/src/entry-renderer.ts +23 -0
- package/src/format-helpers.ts +3 -5
- package/src/format-sections.ts +9 -13
- package/src/format-summary.ts +37 -31
- package/src/format.ts +6 -2
- package/src/report-component.ts +4 -3
- package/src/snapshot-component.ts +75 -0
- package/src/tool/guidance.ts +5 -2
- package/src/tool/output.ts +51 -0
- package/src/tool/render.ts +42 -42
- package/src/renderer.ts +0 -15
package/src/renderer.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { Text } from "@earendil-works/pi-tui";
|
|
3
|
-
import type { ContextAnalysis } from "./analysis.ts";
|
|
4
|
-
import { ContextReportComponent } from "./report-component.ts";
|
|
5
|
-
|
|
6
|
-
export function registerContextRenderer(pi: ExtensionAPI): void {
|
|
7
|
-
pi.registerMessageRenderer("supi-context", (message, _renderOptions, theme) => {
|
|
8
|
-
const analysis = (message.details as { analysis?: ContextAnalysis } | undefined)?.analysis;
|
|
9
|
-
if (!analysis) {
|
|
10
|
-
return new Text(theme.fg("dim", "No context analysis data"), 1, 0);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return new ContextReportComponent(analysis, theme);
|
|
14
|
-
});
|
|
15
|
-
}
|