@kynver-app/runtime 0.1.48 → 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,15 +12,21 @@ 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;
16
26
  /** Board task metadata persisted on worker.json at dispatch. */
17
27
  taskTitle?: string | null;
18
28
  executorRef?: string | null;
19
29
  parentTaskId?: string | null;
20
- personaSlug?: string | null;
21
30
  /** Target PR on the board task row (review workers inherit parent prUrl). */
22
31
  taskPrUrl?: string | null;
23
32
  }): PrHandoffRequirement;
@@ -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" | "expert_review_task" | "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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynver-app/runtime",
3
- "version": "0.1.48",
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",