agent-afk 5.245.0 → 5.246.0

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.
@@ -719,6 +719,18 @@ export declare const ENV_REGISTRY: readonly [{
719
719
  readonly type: "string";
720
720
  readonly required: false;
721
721
  readonly category: "process";
722
+ }, {
723
+ readonly name: "USER";
724
+ readonly description: "Unix login name of the current user. Used as a default approver identity in improve/approve.";
725
+ readonly type: "string";
726
+ readonly required: false;
727
+ readonly category: "process";
728
+ }, {
729
+ readonly name: "USERNAME";
730
+ readonly description: "Windows login name of the current user. Fallback after USER when identifying the approver.";
731
+ readonly type: "string";
732
+ readonly required: false;
733
+ readonly category: "process";
722
734
  }, {
723
735
  readonly name: "AFK_DAEMON_CWD";
724
736
  readonly description: "Working directory used by the daemon process for spawned agent sessions.";
@@ -0,0 +1,22 @@
1
+ import { type EvalCaseStatus, type ProposalStatus } from './schemas.js';
2
+ export declare class ApproveError extends Error {
3
+ readonly code: 'not-found' | 'ambiguous-slug' | 'already-approved' | 'terminal-status' | 'invalid-transition';
4
+ constructor(code: 'not-found' | 'ambiguous-slug' | 'already-approved' | 'terminal-status' | 'invalid-transition', message: string);
5
+ }
6
+ export type ArtifactKind = 'proposal' | 'eval-case';
7
+ export interface ApproveOutcome {
8
+ slug: string;
9
+ kind: ArtifactKind;
10
+ previousStatus: ProposalStatus | EvalCaseStatus;
11
+ newStatus: 'approved';
12
+ approvedAt: string;
13
+ approvedBy: string;
14
+ jsonPath: string;
15
+ markdownPath: string;
16
+ }
17
+ export interface ApproveOptions {
18
+ approvedBy?: string;
19
+ now?: () => Date;
20
+ force?: boolean;
21
+ }
22
+ export declare function approveArtifact(slug: string, options?: ApproveOptions): ApproveOutcome;