balladeer 1.0.14 → 1.0.16
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/behavior-map-schema.d.ts +107 -0
- package/dist/behavior-map-schema.js +232 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +77 -2
- package/dist/commands/guidance.d.ts +1 -1
- package/dist/commands/guidance.js +6 -0
- package/dist/commands/judge.d.ts +271 -0
- package/dist/commands/judge.js +1170 -0
- package/dist/commands/map.d.ts +120 -0
- package/dist/commands/map.js +601 -0
- package/dist/commands/mcp.d.ts +6 -0
- package/dist/commands/mcp.js +53 -0
- package/dist/commands/offers.d.ts +265 -0
- package/dist/commands/offers.js +801 -0
- package/dist/commands/risk.d.ts +29 -0
- package/dist/commands/risk.js +133 -0
- package/dist/copy.d.ts +24 -1
- package/dist/copy.js +91 -0
- package/dist/guidance-hook.mjs +230 -74
- package/dist/guidance.d.ts +2 -0
- package/dist/guidance.js +7 -1
- package/dist/headless-agent.d.ts +166 -0
- package/dist/headless-agent.js +416 -0
- package/dist/hook-trust.d.ts +31 -0
- package/dist/hook-trust.js +63 -0
- package/dist/judge-brief.d.ts +36 -0
- package/dist/judge-brief.js +89 -0
- package/dist/judge-hook.d.ts +84 -0
- package/dist/judge-hook.js +420 -0
- package/dist/map-brief.d.ts +16 -0
- package/dist/map-brief.js +41 -0
- package/dist/offer-brief.d.ts +95 -0
- package/dist/offer-brief.js +217 -0
- package/dist/owned-process.d.ts +65 -0
- package/dist/owned-process.js +146 -0
- package/dist/promise-meaning.d.ts +126 -0
- package/dist/promise-meaning.js +292 -0
- package/dist/risk/contract.d.ts +145 -0
- package/dist/risk/contract.js +74 -0
- package/dist/risk/describe.d.ts +7 -0
- package/dist/risk/describe.js +45 -0
- package/dist/risk/diff.d.ts +26 -0
- package/dist/risk/diff.js +174 -0
- package/dist/risk/extract.d.ts +43 -0
- package/dist/risk/extract.js +336 -0
- package/dist/risk/git.d.ts +30 -0
- package/dist/risk/git.js +118 -0
- package/dist/risk/import-graph.d.ts +41 -0
- package/dist/risk/import-graph.js +487 -0
- package/dist/risk/index.d.ts +20 -0
- package/dist/risk/index.js +20 -0
- package/dist/risk/paths.d.ts +16 -0
- package/dist/risk/paths.js +73 -0
- package/dist/risk/pipeline.d.ts +47 -0
- package/dist/risk/pipeline.js +121 -0
- package/dist/risk/priors.d.ts +18 -0
- package/dist/risk/priors.js +86 -0
- package/dist/risk/resources.d.ts +56 -0
- package/dist/risk/resources.js +374 -0
- package/dist/risk/score.d.ts +85 -0
- package/dist/risk/score.js +543 -0
- package/dist/risk/symbols.d.ts +35 -0
- package/dist/risk/symbols.js +348 -0
- package/dist/risk/text.d.ts +43 -0
- package/dist/risk/text.js +277 -0
- package/dist/risk/validate.d.ts +19 -0
- package/dist/risk/validate.js +154 -0
- package/dist/scratch-worktree.d.ts +51 -0
- package/dist/scratch-worktree.js +153 -0
- package/dist/self-update.d.ts +29 -2
- package/dist/self-update.js +96 -11
- package/dist/user-scope.d.ts +2 -0
- package/dist/user-scope.js +26 -2
- package/dist/wire.d.ts +55 -2
- package/dist/wire.js +5 -1
- package/package.json +1 -1
package/dist/wire.d.ts
CHANGED
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* runtime dependency at all: Node 22 builtins and global fetch, nothing else.
|
|
6
6
|
* A contract test compares the scope list below against the server's.
|
|
7
7
|
*/
|
|
8
|
-
export declare const CLI_VERSION = "1.0.
|
|
8
|
+
export declare const CLI_VERSION = "1.0.16";
|
|
9
9
|
export declare const CLI_INVOCATION = "npx -y balladeer@latest";
|
|
10
10
|
export declare const CLIENT_HEADER = "x-balladeer-client";
|
|
11
|
-
|
|
11
|
+
/** What the last background update came to: `started:1.0.16`, `installed:1.0.16`, `failed:exit-1`, `unstartable:launcher`. */
|
|
12
|
+
export declare const UPDATE_STATE_HEADER = "x-balladeer-update-state";
|
|
13
|
+
/** Which host's hook made this guidance fetch: `claude` or `codex`. */
|
|
14
|
+
export declare const HOOK_HOST_HEADER = "x-balladeer-hook";
|
|
15
|
+
export declare const CLIENT_HEADER_VALUE = "balladeer/1.0.16";
|
|
12
16
|
export declare const DEFAULT_CONTROL_PLANE = "https://envelopes.balladeer.ai";
|
|
13
17
|
export type DelegatedScope = "repository:enroll" | "agent:issue" | "ci:connect" | "workspace:invite" | "candidate:propose";
|
|
14
18
|
export declare const DELEGATED_SCOPES: readonly DelegatedScope[];
|
|
@@ -695,4 +699,53 @@ export type JsonStep = Readonly<{
|
|
|
695
699
|
}> | Readonly<{
|
|
696
700
|
step: "whoami";
|
|
697
701
|
session: PairSessionSummary;
|
|
702
|
+
}>
|
|
703
|
+
/** One behavior map built, or the reason it was not. The map itself stays on disk. */
|
|
704
|
+
| Readonly<{
|
|
705
|
+
step: "behavior_map";
|
|
706
|
+
promiseId: string;
|
|
707
|
+
status: "written" | "failed";
|
|
708
|
+
path?: string;
|
|
709
|
+
reason?: string;
|
|
710
|
+
errors?: readonly string[];
|
|
711
|
+
client?: "claude" | "codex";
|
|
712
|
+
model?: string;
|
|
713
|
+
durationMs?: number;
|
|
714
|
+
inputTokens?: number;
|
|
715
|
+
outputTokens?: number;
|
|
716
|
+
dropped?: number;
|
|
717
|
+
/** Closed-list words the agent got wrong, read as the nearest allowed one and reported. */
|
|
718
|
+
coerced?: number;
|
|
719
|
+
}>
|
|
720
|
+
/** `map --check` and `map --stale`: which maps no longer point at the code or the meaning. */
|
|
721
|
+
| Readonly<{
|
|
722
|
+
step: "behavior_maps";
|
|
723
|
+
checked: number;
|
|
724
|
+
stale: readonly string[];
|
|
725
|
+
digestChecked: boolean;
|
|
726
|
+
}>
|
|
727
|
+
/**
|
|
728
|
+
* A judge run that produced no verdict line: nothing to judge, no login on
|
|
729
|
+
* this machine, or judges still running when the time ran out. Verdicts
|
|
730
|
+
* themselves are printed as `balladeer-judge-verdict/v1` objects.
|
|
731
|
+
*/
|
|
732
|
+
| Readonly<{
|
|
733
|
+
step: "judge";
|
|
734
|
+
status: "not_judged" | "still_judging" | "nothing_to_judge";
|
|
735
|
+
reason: string;
|
|
736
|
+
message: string;
|
|
737
|
+
promiseIds?: readonly string[];
|
|
738
|
+
exitCode: number;
|
|
739
|
+
}>
|
|
740
|
+
/**
|
|
741
|
+
* A reading for offers that produced no `balladeer-offers/v1` result: an
|
|
742
|
+
* empty change, or a reader that did not answer. Nothing is recorded either
|
|
743
|
+
* way; a result itself is printed as its own object.
|
|
744
|
+
*/
|
|
745
|
+
| Readonly<{
|
|
746
|
+
step: "offers";
|
|
747
|
+
status: "not_read" | "nothing_to_read";
|
|
748
|
+
reason: string;
|
|
749
|
+
message: string;
|
|
750
|
+
exitCode: number;
|
|
698
751
|
}>;
|
package/dist/wire.js
CHANGED
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
* runtime dependency at all: Node 22 builtins and global fetch, nothing else.
|
|
6
6
|
* A contract test compares the scope list below against the server's.
|
|
7
7
|
*/
|
|
8
|
-
export const CLI_VERSION = "1.0.
|
|
8
|
+
export const CLI_VERSION = "1.0.16";
|
|
9
9
|
export const CLI_INVOCATION = "npx -y balladeer@latest";
|
|
10
10
|
export const CLIENT_HEADER = "x-balladeer-client";
|
|
11
|
+
/** What the last background update came to: `started:1.0.16`, `installed:1.0.16`, `failed:exit-1`, `unstartable:launcher`. */
|
|
12
|
+
export const UPDATE_STATE_HEADER = "x-balladeer-update-state";
|
|
13
|
+
/** Which host's hook made this guidance fetch: `claude` or `codex`. */
|
|
14
|
+
export const HOOK_HOST_HEADER = "x-balladeer-hook";
|
|
11
15
|
export const CLIENT_HEADER_VALUE = `balladeer/${CLI_VERSION}`;
|
|
12
16
|
export const DEFAULT_CONTROL_PLANE = "https://envelopes.balladeer.ai";
|
|
13
17
|
export const DELEGATED_SCOPES = [
|