@buildaharness/aielia 0.3.0 → 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 +9 -5
- package/dist/cli-session-D0uLdT2A.js.map +0 -1
- package/dist/tui-app-DxLPSGh2.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Argv parsing for the `aielia` CLI. Pure — no process access — so it is unit-testable.
|
|
3
|
+
*
|
|
4
|
+
* Before this existed `main()` ignored argv entirely, so recognizing a few explicit cases is
|
|
5
|
+
* strictly additive: anything unrecognized (including no args at all) resolves to `'repl'`,
|
|
6
|
+
* exactly today's behavior.
|
|
7
|
+
*/
|
|
8
|
+
export type CliCommand = {
|
|
9
|
+
command: 'repl';
|
|
10
|
+
} | {
|
|
11
|
+
command: 'version';
|
|
12
|
+
} | {
|
|
13
|
+
command: 'help';
|
|
14
|
+
} | {
|
|
15
|
+
command: 'update';
|
|
16
|
+
dryRun: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** `argv` is the user-supplied arguments only, i.e. `process.argv.slice(2)`. */
|
|
19
|
+
export declare function parseCliArgs(argv: readonly string[]): CliCommand;
|
|
20
|
+
export declare function cliHelpText(version: string): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central glyph-to-meaning vocabulary for status marks printed by the CLI/TUI. Added because the
|
|
3
|
+
* live terminal comparison (`reports/cli_appearance_comparison_2026-09-17.md`) found `⚙` used for
|
|
4
|
+
* two unrelated meanings at once — `writeToolStep` (cli.ts) prefixed *every* tool-call step with
|
|
5
|
+
* it, so "Proposing to run: rm -rf /tmp/x" (about to ask for approval) and "Fetching
|
|
6
|
+
* https://…" (a routine, no-approval-needed read) were visually indistinguishable at a glance,
|
|
7
|
+
* unlike Codex's distinct glyph-per-state convention. The status-mark glyphs already used
|
|
8
|
+
* elsewhere in cli.ts (`✓`/`✗`/`○`/`▶`/`~` for plan tasks, layer-fired marks, batch outcomes) were
|
|
9
|
+
* already each used for one consistent meaning — only the tool-step glyph needed splitting.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ICONS: {
|
|
12
|
+
/** A routine, no-approval-needed tool step (read_file, fetch_url, web_search, list_reminders, …). */
|
|
13
|
+
readonly toolStep: "⚙";
|
|
14
|
+
/** A tool step that is itself the proposal of a state-changing action (write_file, run_shell_command) — printed on the same in-flight step line, before the separate "[needs approval — …]" prompt appears. */
|
|
15
|
+
readonly proposalStep: "⚠";
|
|
16
|
+
/** A read-only tool call `tool-policy.ts` denied before it executed — deliberately not `✗` (cli.ts already uses that, unprefixed, as the leading character of several unrelated config/undo-action error lines; reusing it here would misclassify those as `'tool'`-kind in tui-app.tsx's `TOOL_STEP_PREFIXES` match). */
|
|
17
|
+
readonly deniedStep: "⛔";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Marker `cli.ts`'s `printPlan()` prepends to its combined plan-status block (Phase 6, "distinct
|
|
21
|
+
* plan-mode UI") so `tui-app.tsx`'s `classifyLineKind` renders it as a dedicated `PlanBox` instead
|
|
22
|
+
* of plain `'system'` text — lives here rather than in `tui-app.tsx` itself so `cli.ts` (which
|
|
23
|
+
* `tui-app.tsx` already imports) doesn't need a reverse import back to it, the same reason the
|
|
24
|
+
* tool-step glyphs above live here instead of in either of those two files.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PLAN_LINE_PREFIX = "\u25A4PLAN\u25A4";
|
|
27
|
+
/** Picks the right glyph for one `AssistantToolStep`'s in-flight summary line — shared so `cli.ts` and any other surface printing a tool-step line stay in sync with the same mapping. */
|
|
28
|
+
export declare function toolStepIcon(tool: string): string;
|