@aidenhq/sdk 0.5.6 → 0.5.8
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 +1 -1
- package/dist/src/executor.d.ts +2 -0
- package/dist/src/provider.d.ts +4 -0
- package/dist/src/reviewer.d.ts +3 -1
- package/dist/src/reviewer.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Every module imports it, the official ones in this repo included: a service depe
|
|
|
13
13
|
(`"@aidenhq/sdk": "X.Y.Z"`), its `bun.lock` pins the integrity, and its `bunfig.toml` names `minimumReleaseAgeExcludes =
|
|
14
14
|
["@aidenhq/sdk"]` (our own scope is exempt from the 7-day rule, so a pin may be the day it is published). Not everything here
|
|
15
15
|
is on that path: the AI reviewer's service (its eval runs from a bare snapshot), the check recipes and the engineer image (no install step) and
|
|
16
|
-
the engines' `sdk/` folders (each runs from its module folder alone) and two files the kernel loads from the checkout (code review's `config.ts`, the merge gate) still hold copies (`scripts/sync-shared.ts`).
|
|
16
|
+
the engines' `sdk/` folders (each runs from its module folder alone) and two files the kernel loads from the checkout (code review's `config.ts`, the merge gate) still hold copies (`scripts/sync-shared.ts`). The kernel and compile import the SDK's source by path.
|
|
17
17
|
|
|
18
18
|
## Releasing
|
|
19
19
|
|
package/dist/src/executor.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export type ReviewContext = {
|
|
|
57
57
|
records: Record<string, unknown>[];
|
|
58
58
|
};
|
|
59
59
|
/** The task's other PRs merged into the change's base: `files` its own, `changed` those the base changed again since (undefined: not read). */
|
|
60
|
+
/** A merge's member-authored PR text (title, body, commit messages): the member's own words, read as a stated reason beside the request chain. */
|
|
61
|
+
memberText?: string;
|
|
60
62
|
siblings?: {
|
|
61
63
|
repo: string;
|
|
62
64
|
number: number;
|
package/dist/src/provider.d.ts
CHANGED
|
@@ -44,10 +44,14 @@ export type ProviderState = {
|
|
|
44
44
|
privacy_ack?: string;
|
|
45
45
|
/** When the model step finished: the provider was signed in and its probe passed. Latched: a quota stop or an expired sign-in never clears it. */
|
|
46
46
|
ready?: string;
|
|
47
|
+
/** A pause of `kind` that began `at`: `credential` is the login generation the failing attempt ran under, so a pause from a
|
|
48
|
+
* superseded login is ignored and a late unpause from that login can't clear the current one. Absent: the switch pause, or one no
|
|
49
|
+
* credential names, which clears as before. */
|
|
47
50
|
paused?: {
|
|
48
51
|
kind: "quota" | "auth" | "switch";
|
|
49
52
|
until?: string;
|
|
50
53
|
at: string;
|
|
54
|
+
credential?: string;
|
|
51
55
|
};
|
|
52
56
|
};
|
|
53
57
|
/** Which engine conversation a resumable session belongs to: one from another provider, account or engine never resumes. */
|
package/dist/src/reviewer.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export interface ReviewRequest {
|
|
|
58
58
|
* change cannot alter. Shown as PRODUCT_COMMITS, never as part of the diff a finding may quote.
|
|
59
59
|
*/
|
|
60
60
|
productCommits?: string;
|
|
61
|
+
/** A merge's repo-member PR text (title and body, read from GitHub by code): their own words, shown as MEMBER_PR_TEXT, apart from the request chain. */
|
|
62
|
+
memberText?: string;
|
|
61
63
|
/** The ledger's name for the model calls (the card's review, or an agent's check before filing). */
|
|
62
64
|
component?: string;
|
|
63
65
|
}
|
|
@@ -79,7 +81,7 @@ export interface Verdict {
|
|
|
79
81
|
*/
|
|
80
82
|
export declare function instanceDetails(card: ReviewCard | undefined, diff: string | undefined, toolCall?: ToolCall): string[];
|
|
81
83
|
/** The request fields a reviewer reads; anything else in a request (a policy, a model) is dropped. */
|
|
82
|
-
export declare const REQUEST_FIELDS: readonly ["card", "diff", "tool_call", "files", "chain", "requesterModel", "comments", "productCommits"];
|
|
84
|
+
export declare const REQUEST_FIELDS: readonly ["card", "diff", "tool_call", "files", "chain", "requesterModel", "comments", "productCommits", "memberText"];
|
|
83
85
|
/**
|
|
84
86
|
* The handler POST `<path>/review`, and the `/healthz` beside it: it answers with the service instance that serves now, so the
|
|
85
87
|
* kernel's review loop can fail the reviews a recreated service (an apply) lost instead of waiting out any window.
|
package/dist/src/reviewer.js
CHANGED
|
@@ -112,7 +112,7 @@ function walkArguments(args, parts, versions) {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
/** The request fields a reviewer reads; anything else in a request (a policy, a model) is dropped. */
|
|
115
|
-
export const REQUEST_FIELDS = ["card", "diff", "tool_call", "files", "chain", "requesterModel", "comments", "productCommits"];
|
|
115
|
+
export const REQUEST_FIELDS = ["card", "diff", "tool_call", "files", "chain", "requesterModel", "comments", "productCommits", "memberText"];
|
|
116
116
|
/** The longest a working review waits between keepalives to the kernel. */
|
|
117
117
|
const BEAT_MS = 60_000;
|
|
118
118
|
/** A beat the kernel never got is sent again at most this many times, with backoff (1 s, 2 s, 4 s), unless the review is over. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aidenhq/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "The shared code of AidenHQ modules: contract types, engine IO, the caller check and fence, write executors, the reviewer side, the judges' models and call, the source writer and the vendor MCP pass-through.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|