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.
- package/dist/agent/pr-review-label.d.ts +32 -0
- package/dist/agent/provider.d.ts +37 -1
- package/dist/agent/types/sdk-types.d.ts +3 -3
- package/dist/agent/types/session-types.d.ts +4 -4
- package/dist/bundled-plugins/awa-bundled/skills/ship/SKILL.md +1 -14
- package/dist/cli/commands/improve/approve.d.ts +2 -0
- package/dist/cli/commands/improve/triage-helpers.d.ts +1 -0
- package/dist/cli/context-sampler.d.ts +1 -1
- package/dist/cli.mjs +263 -263
- package/dist/config/env.d.ts +12 -0
- package/dist/improve/approve.d.ts +22 -0
- package/dist/index.mjs +111 -111
- package/dist/telegram.mjs +130 -130
- package/package.json +1 -1
package/dist/config/env.d.ts
CHANGED
|
@@ -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;
|