agent-afk 5.176.2 → 5.177.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/daemon/task-lifecycle.d.ts +2 -0
- package/dist/agent/facets/index.d.ts +1 -1
- package/dist/agent/facets/schema.d.ts +16 -1
- package/dist/agent/tools/handlers/get-facet.d.ts +2 -0
- package/dist/agent/tools/handlers/index.d.ts +2 -1
- package/dist/agent/tools/schemas.facet.d.ts +3 -0
- package/dist/cli.mjs +609 -606
- package/dist/index.mjs +234 -230
- package/dist/telegram.mjs +292 -288
- package/package.json +1 -1
|
@@ -17,7 +17,9 @@ export interface RetryPolicy {
|
|
|
17
17
|
maxAttempts: number;
|
|
18
18
|
backoffStrategy: 'fixed' | 'exponential';
|
|
19
19
|
backoffBaseMs: number;
|
|
20
|
+
maxBackoffMs?: number;
|
|
20
21
|
}
|
|
21
22
|
export declare const DEFAULT_RETRY_POLICY: RetryPolicy;
|
|
23
|
+
export declare const DEFAULT_MAX_BACKOFF_MS: number;
|
|
22
24
|
export declare const DEFAULT_LEASE_TTL_MS: number;
|
|
23
25
|
export declare function computeBackoffMs(attempts: number, policy: RetryPolicy): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FACET_VERSION, SessionFacetSchema, StoredSessionInputSchema, FacetOutcomeSchema, SubagentPersistenceSchema, SubagentInvocationSchema, WorldChangesSchema, type SessionFacet, type StoredSessionInput, type ToolEventInput, type FacetOutcome, type SubagentInvocation, type WorldChanges, } from './schema.js';
|
|
1
|
+
export { FACET_VERSION, SessionFacetSchema, StoredSessionInputSchema, FacetOutcomeSchema, SubagentPersistenceSchema, SubagentInvocationSchema, WorldChangesSchema, TokenBreakdownSchema, type SessionFacet, type StoredSessionInput, type ToolEventInput, type FacetOutcome, type SubagentInvocation, type WorldChanges, type TokenBreakdown, } from './schema.js';
|
|
2
2
|
export { deriveSessionFacet, type DeriveOptions } from './derive.js';
|
|
3
3
|
export { getOrDeriveFacet, loadStoredSession, listSessionIds, type FacetStoreOptions, } from './store.js';
|
|
4
4
|
export { createFacetSessionEndHook } from './session-end-hook.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const FACET_VERSION =
|
|
2
|
+
export declare const FACET_VERSION = 2;
|
|
3
3
|
export declare const ToolEventInputSchema: z.ZodObject<{
|
|
4
4
|
toolName: z.ZodString;
|
|
5
5
|
toolUseId: z.ZodOptional<z.ZodString>;
|
|
@@ -78,6 +78,14 @@ export declare const WorldChangesSchema: z.ZodObject<{
|
|
|
78
78
|
commits: z.ZodNumber;
|
|
79
79
|
mutated: z.ZodBoolean;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
|
+
export declare const TokenBreakdownSchema: z.ZodObject<{
|
|
82
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
cache_read: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
cache_creation: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
cost_usd: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type TokenBreakdown = z.infer<typeof TokenBreakdownSchema>;
|
|
81
89
|
export declare const SessionFacetSchema: z.ZodObject<{
|
|
82
90
|
facet_version: z.ZodNumber;
|
|
83
91
|
session_id: z.ZodString;
|
|
@@ -133,6 +141,13 @@ export declare const SessionFacetSchema: z.ZodObject<{
|
|
|
133
141
|
commits: z.ZodNumber;
|
|
134
142
|
mutated: z.ZodBoolean;
|
|
135
143
|
}, z.core.$strip>;
|
|
144
|
+
token_breakdown: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
cache_read: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
cache_creation: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
cost_usd: z.ZodNumber;
|
|
150
|
+
}, z.core.$strip>>;
|
|
136
151
|
decisions: z.ZodArray<z.ZodString>;
|
|
137
152
|
evidence_pointers: z.ZodArray<z.ZodString>;
|
|
138
153
|
}, z.core.$loose>;
|
|
@@ -23,5 +23,6 @@ import { browserCloseHandler } from './browser-close.js';
|
|
|
23
23
|
import { waitForHandler } from './wait-for.js';
|
|
24
24
|
import { patchApplyHandler } from './patch-apply.js';
|
|
25
25
|
import { testRunHandler } from './test-run.js';
|
|
26
|
+
import { getFacetHandler } from './get-facet.js';
|
|
26
27
|
export declare function createBuiltinHandlers(permissionMode?: string, cwd?: string): Map<string, ToolHandler>;
|
|
27
|
-
export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, createScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, };
|
|
28
|
+
export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, createScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, getFacetHandler, };
|