agent-afk 5.327.9 → 5.327.11
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/trace/otlp-export.builders.d.ts +1 -0
- package/dist/agent/trace/otlp-http-push.d.ts +17 -0
- package/dist/cli/render/status-line-format.d.ts +2 -0
- package/dist/cli/terminal-compositor.reset.d.ts +1 -0
- package/dist/cli.mjs +431 -415
- package/dist/config/env.d.ts +7 -0
- package/dist/config/env.misc.d.ts +7 -0
- package/dist/index.mjs +221 -218
- package/dist/insights/aggregators/index.d.ts +2 -1
- package/dist/insights/aggregators/shadow-git-observe.d.ts +11 -0
- package/dist/insights/html.guardrail-false-positives.d.ts +1 -0
- package/dist/insights/types.d.ts +1 -0
- package/dist/telegram/handlers/insights.d.ts +2 -0
- package/dist/telegram.mjs +250 -247
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export declare function strAttr(key: string, value: string): KeyValue;
|
|
|
4
4
|
export declare function intAttr(key: string, value: number): KeyValue;
|
|
5
5
|
export declare function boolAttr(key: string, value: boolean): KeyValue;
|
|
6
6
|
export declare function doubleAttr(key: string, value: number): KeyValue;
|
|
7
|
+
export declare const ROOT_PARENT_SENTINEL = "__root__";
|
|
7
8
|
export declare const SCOPE_NAME = "agent-afk.witness";
|
|
8
9
|
export declare const SCOPE_VERSION = "0.1.0";
|
|
9
10
|
export declare const GEN_AI_SYSTEM = "agent-afk";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OtlpExportRequest } from './otlp-export.js';
|
|
2
|
+
export type OtlpPushResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
status: number;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
status?: number;
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
10
|
+
export interface OtlpHttpPushOptions {
|
|
11
|
+
endpoint: string;
|
|
12
|
+
headers?: Record<string, string>;
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
fetchFn?: typeof fetch;
|
|
15
|
+
}
|
|
16
|
+
export declare function parseOtlpHeaders(raw: string): Record<string, string>;
|
|
17
|
+
export declare function pushOtlpHttp(payload: OtlpExportRequest, opts: OtlpHttpPushOptions): Promise<OtlpPushResult>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PermissionMode } from '../../agent/types/sdk-types.js';
|
|
2
|
+
import type { RiskCategory } from '../../agent/risk-classifier.js';
|
|
2
3
|
import { type QuotaWindows } from '../quota-indicator.js';
|
|
3
4
|
export interface StatusLineFields {
|
|
4
5
|
model: string;
|
|
@@ -9,6 +10,7 @@ export interface StatusLineFields {
|
|
|
9
10
|
contextUsedTokens?: number;
|
|
10
11
|
contextSparkline?: string;
|
|
11
12
|
permissionMode?: PermissionMode;
|
|
13
|
+
lastHeldCategory?: RiskCategory;
|
|
12
14
|
cwd?: string;
|
|
13
15
|
branch?: string;
|
|
14
16
|
pr?: number;
|