kuzushi 0.9.2 → 0.10.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/README.md +2 -0
- package/dist/bus/index.d.ts +1 -0
- package/dist/bus/index.js +2 -1
- package/dist/bus/index.js.map +1 -1
- package/dist/bus/workers/report-worker.d.ts +7 -1
- package/dist/bus/workers/report-worker.js +389 -132
- package/dist/bus/workers/report-worker.js.map +1 -1
- package/dist/bus/workers/triage-worker.d.ts +7 -0
- package/dist/bus/workers/triage-worker.js +33 -0
- package/dist/bus/workers/triage-worker.js.map +1 -1
- package/dist/cli/commands/monorepo-scan.js +29 -1
- package/dist/cli/commands/monorepo-scan.js.map +1 -1
- package/dist/cli/commands/scan.d.ts +3 -0
- package/dist/cli/commands/scan.js +85 -11
- package/dist/cli/commands/scan.js.map +1 -1
- package/dist/store.d.ts +5 -0
- package/dist/store.js +7 -0
- package/dist/store.js.map +1 -1
- package/dist/ui/App.d.ts +15 -0
- package/dist/ui/App.js +43 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/components/AgentActivity.d.ts +17 -0
- package/dist/ui/components/AgentActivity.js +44 -0
- package/dist/ui/components/AgentActivity.js.map +1 -0
- package/dist/ui/components/AnimatedCounter.d.ts +23 -0
- package/dist/ui/components/AnimatedCounter.js +36 -0
- package/dist/ui/components/AnimatedCounter.js.map +1 -0
- package/dist/ui/components/AttackChainDiagram.d.ts +24 -0
- package/dist/ui/components/AttackChainDiagram.js +63 -0
- package/dist/ui/components/AttackChainDiagram.js.map +1 -0
- package/dist/ui/components/Banner.d.ts +7 -0
- package/dist/ui/components/Banner.js +17 -0
- package/dist/ui/components/Banner.js.map +1 -0
- package/dist/ui/components/CodePreview.d.ts +23 -0
- package/dist/ui/components/CodePreview.js +49 -0
- package/dist/ui/components/CodePreview.js.map +1 -0
- package/dist/ui/components/CommandInput.d.ts +32 -0
- package/dist/ui/components/CommandInput.js +94 -0
- package/dist/ui/components/CommandInput.js.map +1 -0
- package/dist/ui/components/ConfigBanner.d.ts +27 -0
- package/dist/ui/components/ConfigBanner.js +33 -0
- package/dist/ui/components/ConfigBanner.js.map +1 -0
- package/dist/ui/components/ConfigConfirm.d.ts +34 -0
- package/dist/ui/components/ConfigConfirm.js +24 -0
- package/dist/ui/components/ConfigConfirm.js.map +1 -0
- package/dist/ui/components/DiffView.d.ts +19 -0
- package/dist/ui/components/DiffView.js +65 -0
- package/dist/ui/components/DiffView.js.map +1 -0
- package/dist/ui/components/ErrorCard.d.ts +20 -0
- package/dist/ui/components/ErrorCard.js +35 -0
- package/dist/ui/components/ErrorCard.js.map +1 -0
- package/dist/ui/components/ExportActions.d.ts +18 -0
- package/dist/ui/components/ExportActions.js +139 -0
- package/dist/ui/components/ExportActions.js.map +1 -0
- package/dist/ui/components/FindingCard.d.ts +19 -0
- package/dist/ui/components/FindingCard.js +79 -0
- package/dist/ui/components/FindingCard.js.map +1 -0
- package/dist/ui/components/InteractiveReview.d.ts +27 -0
- package/dist/ui/components/InteractiveReview.js +72 -0
- package/dist/ui/components/InteractiveReview.js.map +1 -0
- package/dist/ui/components/MonorepoProgress.d.ts +33 -0
- package/dist/ui/components/MonorepoProgress.js +45 -0
- package/dist/ui/components/MonorepoProgress.js.map +1 -0
- package/dist/ui/components/PipelineIndicator.d.ts +42 -0
- package/dist/ui/components/PipelineIndicator.js +139 -0
- package/dist/ui/components/PipelineIndicator.js.map +1 -0
- package/dist/ui/components/ProgressBar.d.ts +12 -0
- package/dist/ui/components/ProgressBar.js +9 -0
- package/dist/ui/components/ProgressBar.js.map +1 -0
- package/dist/ui/components/QualityGate.d.ts +10 -0
- package/dist/ui/components/QualityGate.js +13 -0
- package/dist/ui/components/QualityGate.js.map +1 -0
- package/dist/ui/components/ResultLine.d.ts +17 -0
- package/dist/ui/components/ResultLine.js +35 -0
- package/dist/ui/components/ResultLine.js.map +1 -0
- package/dist/ui/components/ResumeDiff.d.ts +33 -0
- package/dist/ui/components/ResumeDiff.js +16 -0
- package/dist/ui/components/ResumeDiff.js.map +1 -0
- package/dist/ui/components/ScanSummary.d.ts +10 -0
- package/dist/ui/components/ScanSummary.js +35 -0
- package/dist/ui/components/ScanSummary.js.map +1 -0
- package/dist/ui/components/SectionBox.d.ts +16 -0
- package/dist/ui/components/SectionBox.js +10 -0
- package/dist/ui/components/SectionBox.js.map +1 -0
- package/dist/ui/components/SetupWizard.d.ts +34 -0
- package/dist/ui/components/SetupWizard.js +136 -0
- package/dist/ui/components/SetupWizard.js.map +1 -0
- package/dist/ui/components/Spinner.d.ts +11 -0
- package/dist/ui/components/Spinner.js +24 -0
- package/dist/ui/components/Spinner.js.map +1 -0
- package/dist/ui/components/StageHeader.d.ts +13 -0
- package/dist/ui/components/StageHeader.js +22 -0
- package/dist/ui/components/StageHeader.js.map +1 -0
- package/dist/ui/components/StatusFooter.d.ts +25 -0
- package/dist/ui/components/StatusFooter.js +53 -0
- package/dist/ui/components/StatusFooter.js.map +1 -0
- package/dist/ui/components/TrophyScreen.d.ts +34 -0
- package/dist/ui/components/TrophyScreen.js +64 -0
- package/dist/ui/components/TrophyScreen.js.map +1 -0
- package/dist/ui/demo.d.ts +2 -0
- package/dist/ui/demo.js +327 -0
- package/dist/ui/demo.js.map +1 -0
- package/dist/ui/format.d.ts +86 -0
- package/dist/ui/format.js +207 -0
- package/dist/ui/format.js.map +1 -0
- package/dist/ui/hooks.d.ts +9 -0
- package/dist/ui/hooks.js +17 -0
- package/dist/ui/hooks.js.map +1 -0
- package/dist/ui/hyperlink.d.ts +20 -0
- package/dist/ui/hyperlink.js +83 -0
- package/dist/ui/hyperlink.js.map +1 -0
- package/dist/ui/icons.d.ts +31 -0
- package/dist/ui/icons.js +37 -0
- package/dist/ui/icons.js.map +1 -0
- package/dist/ui/markdown.d.ts +24 -0
- package/dist/ui/markdown.js +78 -0
- package/dist/ui/markdown.js.map +1 -0
- package/dist/ui/monorepo-render.d.ts +23 -0
- package/dist/ui/monorepo-render.js +68 -0
- package/dist/ui/monorepo-render.js.map +1 -0
- package/dist/ui/notify.d.ts +21 -0
- package/dist/ui/notify.js +61 -0
- package/dist/ui/notify.js.map +1 -0
- package/dist/ui/plain-renderer.d.ts +8 -0
- package/dist/ui/plain-renderer.js +132 -0
- package/dist/ui/plain-renderer.js.map +1 -0
- package/dist/ui/render.d.ts +18 -0
- package/dist/ui/render.js +38 -0
- package/dist/ui/render.js.map +1 -0
- package/dist/ui/repl.d.ts +21 -0
- package/dist/ui/repl.js +97 -0
- package/dist/ui/repl.js.map +1 -0
- package/dist/ui/review.d.ts +20 -0
- package/dist/ui/review.js +70 -0
- package/dist/ui/review.js.map +1 -0
- package/dist/ui/setup.d.ts +20 -0
- package/dist/ui/setup.js +120 -0
- package/dist/ui/setup.js.map +1 -0
- package/dist/ui/state.d.ts +224 -0
- package/dist/ui/state.js +137 -0
- package/dist/ui/state.js.map +1 -0
- package/dist/ui/summary-data.d.ts +19 -0
- package/dist/ui/summary-data.js +107 -0
- package/dist/ui/summary-data.js.map +1 -0
- package/dist/ui/theme.d.ts +30 -0
- package/dist/ui/theme.js +155 -0
- package/dist/ui/theme.js.map +1 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -175,6 +175,8 @@ kuzushi <repo> --sarif results.sarif # export SARIF for GitHub Code Scanning
|
|
|
175
175
|
|
|
176
176
|
**Live streaming** — SSE server streams pipeline events in real-time (`--stream`). Connect with `curl`, `EventSource`, or any SSE client to watch findings appear as they're triaged.
|
|
177
177
|
|
|
178
|
+
**Interactive terminal UI** — React+Ink-powered live display with pipeline progress tree, spinners, attack chain diagrams, and a trophy screen for confirmed exploits. Includes an interactive REPL during scans (pause, skip, inspect findings), a first-run setup wizard, config confirmation flow, inline code preview, and clickable file paths. Auto-detects terminal theme and falls back to plain text in non-TTY environments.
|
|
179
|
+
|
|
178
180
|
**Audit logging** — optional JSONL audit trail of every agent decision for debugging, accountability, and compliance records.
|
|
179
181
|
|
|
180
182
|
## Scan Presets
|
package/dist/bus/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface RegisterWorkersDeps {
|
|
|
9
9
|
db: Database.Database;
|
|
10
10
|
config: KuzushiConfig;
|
|
11
11
|
runtime: AgentRuntime;
|
|
12
|
+
uiStore?: import("../ui/state.js").UIStore;
|
|
12
13
|
}
|
|
13
14
|
export declare function shouldRegisterPocExecutorWorker(config: KuzushiConfig): boolean;
|
|
14
15
|
/** Register orchestrator + all built-in workers on a bus instance. */
|
package/dist/bus/index.js
CHANGED
|
@@ -45,6 +45,7 @@ export async function registerAllWorkers(bus, deps) {
|
|
|
45
45
|
db: deps.db,
|
|
46
46
|
knowledgeRegistry,
|
|
47
47
|
getRunHooks: (runId) => orchestrator.getRunHooks(runId),
|
|
48
|
+
getReplState: deps.uiStore ? () => deps.uiStore.getState().replState ?? undefined : undefined,
|
|
48
49
|
});
|
|
49
50
|
registerVerificationWorker(bus, {
|
|
50
51
|
config: deps.config,
|
|
@@ -101,7 +102,7 @@ export async function registerAllWorkers(bus, deps) {
|
|
|
101
102
|
registerReportWorker(bus, {
|
|
102
103
|
db: deps.db,
|
|
103
104
|
config: deps.config,
|
|
104
|
-
});
|
|
105
|
+
}, deps.uiStore);
|
|
105
106
|
}
|
|
106
107
|
export { createBus };
|
|
107
108
|
export * from "./types.js";
|
package/dist/bus/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bus/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;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,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type Database from "better-sqlite3";
|
|
2
2
|
import type { KuzushiConfig } from "../../types.js";
|
|
3
3
|
import type { MessageBus } from "../types.js";
|
|
4
|
+
import type { UIStore } from "../../ui/state.js";
|
|
4
5
|
export interface ReportWorkerDeps {
|
|
5
6
|
db: Database.Database;
|
|
6
7
|
config: KuzushiConfig;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Report worker: handles terminal output and final summary.
|
|
11
|
+
*
|
|
12
|
+
* When a UIStore is provided, all output is written as state updates
|
|
13
|
+
* (consumed by the Ink app or plain-text renderer).
|
|
14
|
+
* When no store is provided (tests, backward compat), falls back
|
|
15
|
+
* to the original console.log behavior.
|
|
10
16
|
*/
|
|
11
|
-
export declare function registerReportWorker(bus: MessageBus, deps: ReportWorkerDeps): void;
|
|
17
|
+
export declare function registerReportWorker(bus: MessageBus, deps: ReportWorkerDeps, store?: UIStore): void;
|