@aidenhq/sdk 0.5.7 → 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.
@@ -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;
@@ -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.
@@ -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.7",
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": {