agent-afk 5.20.8 → 5.21.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/session/model-slots.d.ts +7 -0
- package/dist/cli.mjs +422 -422
- package/dist/config/mutate.d.ts +2 -1
- package/dist/config/settable-keys.d.ts +3 -2
- package/dist/index.mjs +150 -150
- package/dist/telegram.mjs +193 -193
- package/package.json +1 -1
package/dist/config/mutate.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ModelSlotBinding } from '../agent/session/model-slots.js';
|
|
1
2
|
import { type EnvKeyClass, type ConfigKeyClass } from './settable-keys.js';
|
|
2
3
|
export declare const RESTART_NOTE = "effective on the next session/daemon restart; the current session is unchanged";
|
|
3
4
|
export declare class UnknownKeyError extends Error {
|
|
@@ -58,7 +59,7 @@ export interface ConfigOptions {
|
|
|
58
59
|
export interface ConfigWriteResult {
|
|
59
60
|
path: string;
|
|
60
61
|
class: ConfigKeyClass;
|
|
61
|
-
value: string | number | boolean | number[];
|
|
62
|
+
value: string | number | boolean | number[] | ModelSlotBinding;
|
|
62
63
|
persistedTo: string;
|
|
63
64
|
}
|
|
64
65
|
export declare function setConfigValue(path: string, rawValue: unknown, opts?: ConfigOptions): ConfigWriteResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type EnvVarMeta } from './env.js';
|
|
2
|
+
import { type ModelSlotBinding } from '../agent/session/model-slots.js';
|
|
2
3
|
export declare const INHERITED_ENV_KEYS: ReadonlySet<string>;
|
|
3
4
|
export declare const PROTECTED_ENV_KEYS: ReadonlySet<string>;
|
|
4
5
|
export type EnvKeyClass = 'settable' | 'secret' | 'protected' | 'non-config' | 'unknown';
|
|
@@ -12,7 +13,7 @@ export type CoerceResult = {
|
|
|
12
13
|
};
|
|
13
14
|
export declare function coerceEnvValue(meta: EnvVarMeta, raw: string): CoerceResult;
|
|
14
15
|
export type ConfigKeyTier = 'agent' | 'human';
|
|
15
|
-
export type ConfigKeyType = 'string' | 'number' | 'boolean' | 'enum' | 'number-array';
|
|
16
|
+
export type ConfigKeyType = 'string' | 'number' | 'boolean' | 'enum' | 'number-array' | 'model-slot';
|
|
16
17
|
export interface ConfigKeySpec {
|
|
17
18
|
readonly path: string;
|
|
18
19
|
readonly tier: ConfigKeyTier;
|
|
@@ -31,7 +32,7 @@ export type ConfigKeyClass = 'agent' | 'human' | 'unknown';
|
|
|
31
32
|
export declare function classifyConfigKey(path: string): ConfigKeyClass;
|
|
32
33
|
export type ConfigCoerceResult = {
|
|
33
34
|
ok: true;
|
|
34
|
-
value: string | number | boolean | number[];
|
|
35
|
+
value: string | number | boolean | number[] | ModelSlotBinding;
|
|
35
36
|
} | {
|
|
36
37
|
ok: false;
|
|
37
38
|
error: string;
|