@kynver-app/runtime 0.1.47 → 0.1.49

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.
@@ -1,7 +1,10 @@
1
1
  import type { GitAncestry } from "../git.js";
2
+ import type { PrHandoffExec } from "./pr-handoff-gh.js";
2
3
  import type { PrHandoffRequirement, PrHandoffSnapshot } from "./pr-handoff.types.js";
4
+ export declare function isGhNoCommitsBetweenError(detail: string | null | undefined): boolean;
3
5
  /** Best-effort PR URL from free text (completion summary / final result). */
4
6
  export declare function extractPrUrlFromText(value: unknown): string | null;
7
+ export declare function countCommitsAheadOfBase(worktreePath: string, baseRef: string, exec: PrHandoffExec): number | null;
5
8
  /**
6
9
  * Board-dispatched implementation workers with code changes must land with a PR
7
10
  * URL before AgentOS completion is posted.
@@ -9,10 +12,23 @@ export declare function extractPrUrlFromText(value: unknown): string | null;
9
12
  export declare function assessPrHandoffRequirement(input: {
10
13
  dispatched?: boolean;
11
14
  routingRule?: string | null;
15
+ personaSlug?: string | null;
12
16
  prUrl?: string | null;
13
17
  patchPath?: string | null;
14
18
  artifactBundlePath?: string | null;
19
+ baseRef?: string | null;
20
+ exec?: PrHandoffExec;
21
+ worker?: {
22
+ personaSlug?: string | null;
23
+ routingRule?: string | null;
24
+ };
15
25
  snapshot: PrHandoffSnapshot;
26
+ /** Board task metadata persisted on worker.json at dispatch. */
27
+ taskTitle?: string | null;
28
+ executorRef?: string | null;
29
+ parentTaskId?: string | null;
30
+ /** Target PR on the board task row (review workers inherit parent prUrl). */
31
+ taskPrUrl?: string | null;
16
32
  }): PrHandoffRequirement;
17
33
  export declare function buildPrHandoffSnapshotFromStatus(status: {
18
34
  changedFiles: string[];
@@ -11,7 +11,7 @@ export interface PrHandoffSnapshot {
11
11
  gitAncestry: GitAncestry;
12
12
  finalResult: unknown;
13
13
  }
14
- export type PrHandoffSkipReason = "not_dispatched" | "review_lane" | "already_has_pr" | "no_work_product" | "patch_or_bundle";
14
+ export type PrHandoffSkipReason = "not_dispatched" | "review_lane" | "expert_review_task" | "review_artifact" | "no_remote_branch_delta" | "already_has_pr" | "no_work_product" | "patch_or_bundle";
15
15
  export interface PrHandoffNotRequired {
16
16
  required: false;
17
17
  reason: PrHandoffSkipReason;
package/dist/status.d.ts CHANGED
@@ -55,6 +55,11 @@ export interface HarnessWorkerRecord {
55
55
  /** Routing audit — which rule selected model/provider (dispatch inference). */
56
56
  routingRule?: string;
57
57
  requestedModel?: string;
58
+ /** Board task metadata for landing/PR-handoff gates (set at dispatch). */
59
+ executorRef?: string;
60
+ parentTaskId?: string;
61
+ taskTitle?: string;
62
+ taskPrUrl?: string;
58
63
  /** Set when stale-reconcile patches a dead/stale worker record. */
59
64
  reconciledAt?: string;
60
65
  reconcileReason?: string;
@@ -20,6 +20,10 @@ export interface SpawnWorkerOptions {
20
20
  provider?: string;
21
21
  routingRule?: string;
22
22
  requestedModel?: string;
23
+ executorRef?: string;
24
+ parentTaskId?: string;
25
+ taskTitle?: string;
26
+ taskPrUrl?: string;
23
27
  }
24
28
  export declare function spawnWorkerProcess(run: HarnessRunRecord, opts: SpawnWorkerOptions): HarnessWorkerRecord;
25
29
  export declare function startWorker(args: Record<string, string | boolean>): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynver-app/runtime",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "Kynver AgentOS local execution runtime and CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",