@buildaharness/aielia 0.3.1 → 0.3.2
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 +30 -7
- package/dist/agent-loop.d.ts +8 -8
- package/dist/ask-clarification-service.d.ts +1 -1
- package/dist/ask-mode-flag.d.ts +1 -1
- package/dist/assistant-session.d.ts +1 -1
- package/dist/assistant-types.d.ts +3 -3
- package/dist/assistant.d.ts +12 -12
- package/dist/batch-research-fixtures.d.ts +1 -1
- package/dist/benchmark-injected-failure.d.ts +1 -1
- package/dist/bin-CqkqT6KK.js +2107 -0
- package/dist/bin-CqkqT6KK.js.map +1 -0
- package/dist/bin-sea-bootstrap.d.ts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/claude-cli-llm-client.d.ts +2 -2
- package/dist/cli-args.d.ts +20 -0
- package/dist/cli-icons.d.ts +28 -0
- package/dist/{cli-session-D0uLdT2A.js → cli-session-BiX2DOni.js} +550 -121
- package/dist/cli-session-BiX2DOni.js.map +1 -0
- package/dist/cli.d.ts +31 -1
- package/dist/cli.js +1 -1691
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +14 -6
- package/dist/contradiction-checker.d.ts +1 -1
- package/dist/diff-format.d.ts +16 -0
- package/dist/execution-mode.d.ts +1 -1
- package/dist/fact-extraction.d.ts +4 -4
- package/dist/failure-mode-matcher.d.ts +1 -1
- package/dist/file-tools-mcp-server.mjs +2 -2
- package/dist/file-tools.d.ts +10 -2
- package/dist/harness-bridge.d.ts +4 -4
- package/dist/index.js +68 -68
- package/dist/index.js.map +1 -1
- package/dist/ink-select-prompt.d.ts +21 -0
- package/dist/markdown-line.d.ts +42 -0
- package/dist/mcp-server-asset.d.ts +24 -0
- package/dist/memory-service.d.ts +2 -2
- package/dist/network-containment.d.ts +1 -1
- package/dist/node-display-names.d.ts +1 -1
- package/dist/one-loop-flag.d.ts +1 -1
- package/dist/plan-drafting-service.d.ts +1 -1
- package/dist/plan-drafting.d.ts +4 -4
- package/dist/plan-mode-flag.d.ts +1 -1
- package/dist/plan-sketch-service.d.ts +1 -1
- package/dist/plan-sketch.d.ts +1 -1
- package/dist/plan-store.d.ts +2 -2
- package/dist/plan-templates/index.d.ts +1 -1
- package/dist/plan-verification.d.ts +1 -1
- package/dist/scripted-llm-client.d.ts +1 -1
- package/dist/sea-cache.d.ts +9 -0
- package/dist/self-update.d.ts +101 -0
- package/dist/shell-tools.d.ts +1 -1
- package/dist/spike.js.map +1 -1
- package/dist/tool-control-plane.d.ts +1 -1
- package/dist/tool-policy.d.ts +1 -1
- package/dist/tool-step.d.ts +10 -0
- package/dist/trace-events.d.ts +5 -5
- package/dist/trust-tagging.d.ts +1 -1
- package/dist/{tui-app-DxLPSGh2.js → tui-app-4_TrzESz.js} +176 -20
- package/dist/tui-app-4_TrzESz.js.map +1 -0
- package/dist/tui-app.d.ts +34 -9
- package/dist/tui-mode-flag.d.ts +1 -1
- package/dist/turn-intent-classifier.d.ts +5 -5
- package/dist/turn-policy.d.ts +1 -1
- package/dist/update-check-flag.d.ts +11 -0
- package/dist/version.d.ts +6 -0
- package/package.json +7 -3
- package/dist/cli-session-D0uLdT2A.js.map +0 -1
- package/dist/tui-app-DxLPSGh2.js.map +0 -1
package/dist/cli.d.ts
CHANGED
|
@@ -2,6 +2,18 @@ import { FsBackend } from '@buildaharness/runtime';
|
|
|
2
2
|
import { PersonalAssistant } from './assistant.js';
|
|
3
3
|
import { AssistantConfig, ConfigStore } from './config.js';
|
|
4
4
|
import { NonInteractiveApprovalMode } from './non-interactive-mode.js';
|
|
5
|
+
/**
|
|
6
|
+
* One choice in a structured multi-option prompt (Phase 7 of the internal plan
|
|
7
|
+
* — the numbered/arrow-key approval selector). `key` is both the single-character shortcut shown
|
|
8
|
+
* inline next to the option and the value `askSelect` resolves with; callers order options with
|
|
9
|
+
* the safe/fail-closed choice last, matching `askYesNo`'s own "no real answer → treat as declined"
|
|
10
|
+
* convention (see `askSelect`'s default implementation below, and `ink-select-prompt.tsx`'s
|
|
11
|
+
* `SelectPrompt`, which renders this same list with arrow-key highlight + per-key shortcuts).
|
|
12
|
+
*/
|
|
13
|
+
export interface SelectOption {
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
5
17
|
export interface RunCliOptions {
|
|
6
18
|
dataDir?: string;
|
|
7
19
|
configStore?: ConfigStore;
|
|
@@ -22,6 +34,8 @@ export interface RunCliOptions {
|
|
|
22
34
|
askYesNo?: (question: string) => Promise<boolean>;
|
|
23
35
|
/** Overrides the rl.question-based free-text prompt the clarification sub-loop uses for option numbers, edit notes, and "Other" free text — lets tests script a multi-step answer without faking stdin/a real TTY. */
|
|
24
36
|
askLine?: (question: string) => Promise<string>;
|
|
37
|
+
/** Overrides the rl.question-based structured multi-option prompt (Phase 7's approval selector) — lets tests script a selection by key without faking stdin/a real TTY. Resolves with the chosen `SelectOption.key`. */
|
|
38
|
+
askSelect?: (question: string, options: SelectOption[]) => Promise<string>;
|
|
25
39
|
/** Test seam: skip the interactive first-run setup regardless of TTY state (also implied when `assistant` is passed). */
|
|
26
40
|
skipFirstRunSetup?: boolean;
|
|
27
41
|
/** Test seam: stub `claude` binary detection for the first-run setup. */
|
|
@@ -35,7 +49,7 @@ export interface CliInstance {
|
|
|
35
49
|
close(): void;
|
|
36
50
|
/**
|
|
37
51
|
* Additive, read-only accessor for the pinned-input TUI shell's status line
|
|
38
|
-
* (
|
|
52
|
+
* (the internal plan Phase 3) — the same two signals
|
|
39
53
|
* printStatus() already renders as part of `/status` (lastPlanStatus !== undefined,
|
|
40
54
|
* spendCapStatusLine()), just exposed here instead of only printed. Returns short indicator
|
|
41
55
|
* strings in priority order; empty when there's nothing to report. Not used by the ordinary
|
|
@@ -50,6 +64,22 @@ export interface CliInstance {
|
|
|
50
64
|
* getting exactly today's behavior; every option here has a real-filesystem/real-stdio default.
|
|
51
65
|
*/
|
|
52
66
|
export declare function runCli(options?: RunCliOptions): Promise<CliInstance>;
|
|
67
|
+
/**
|
|
68
|
+
* Phase 4 of the internal plan: `tuiMode` is resolved from the
|
|
69
|
+
* same persisted-config + env-override chain every other config key uses (not just the env var
|
|
70
|
+
* alone), so `/config set tuiMode enabled` works exactly like `/config set oneLoopMode enabled`
|
|
71
|
+
* already does. This is a second, separate `configStore.load()` from the one `runCli()` performs
|
|
72
|
+
* internally — an accepted duplication (one extra small JSON read at startup) rather than
|
|
73
|
+
* threading a pre-resolved config through `runCli()`'s options, since `runCli()` must remain
|
|
74
|
+
* callable on its own (tests, `non-interactive-mode.ts`) with no knowledge of this gate.
|
|
75
|
+
*
|
|
76
|
+
* `shouldLaunchTuiApp` (tui-mode-flag.ts) additionally requires both stdio streams to be a real
|
|
77
|
+
* TTY — this repo's documented piped/scripted workflow (`printf 'msg\nexit\n' | node dist/cli.js`)
|
|
78
|
+
* and every non-interactive shell always take the `runCli()` branch below regardless of the flag.
|
|
79
|
+
* `runTuiApp` is imported dynamically so a disabled (the default) or non-TTY run never loads Ink
|
|
80
|
+
* at all — `main()` behaves byte-for-byte as it does today in both those cases.
|
|
81
|
+
*/
|
|
82
|
+
export declare function main(argv?: readonly string[]): Promise<void>;
|
|
53
83
|
/**
|
|
54
84
|
* True when `entryArg` (a `process.argv[1]` value) refers to the same file as
|
|
55
85
|
* `moduleHref` (an `import.meta.url`).
|