agent-afk 5.310.3 → 5.310.4

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.
@@ -0,0 +1,9 @@
1
+ export declare function parseTaskRequestTime(obj: Record<string, unknown>): {
2
+ ok: true;
3
+ cron: string | undefined;
4
+ runAt: string | undefined;
5
+ expiresAt: string | undefined;
6
+ } | {
7
+ ok: false;
8
+ error: string;
9
+ };
@@ -1,6 +1,5 @@
1
1
  import type { AnthropicToolDef } from './types.js';
2
2
  export { agentTool, skillTool, composeTool } from './schemas.agent-tools.js';
3
- export { clipboardWriteTool, clipboardReadTool } from './schemas.interaction-tools.js';
4
3
  export declare const builtinToolSchemas: readonly AnthropicToolDef[];
5
4
  export declare const BUILTIN_TOOL_NAMES: string[];
6
5
  export declare const ALL_TOOL_SCHEMAS: readonly AnthropicToolDef[];
@@ -0,0 +1 @@
1
+ export declare function fail(message: string): void;
@@ -6,6 +6,9 @@ import type { ModelProvider } from '../../../agent/provider.js';
6
6
  import type { HookRegistry } from '../../../agent/hooks.js';
7
7
  import type { TraceWriter } from '../../../agent/trace/index.js';
8
8
  import type { CliConfig } from '../../config.js';
9
+ import { MemoryStore } from '../../../agent/memory/index.js';
10
+ import { StateStore } from '../../../agent/state/state-store.js';
11
+ import { WorkspaceStore } from '../../../agent/workspace/workspace-store.js';
9
12
  export interface BuildAgentSessionDeps {
10
13
  model: string;
11
14
  resumeConfig: Partial<AgentConfig>;
@@ -53,9 +56,6 @@ export declare function buildSharedDeps(a: {
53
56
  initialPermissionMode: PermissionMode | undefined;
54
57
  explicitProvider?: string;
55
58
  }): BuildAgentSessionDeps;
56
- import { MemoryStore } from '../../../agent/memory/index.js';
57
- import { StateStore } from '../../../agent/state/state-store.js';
58
- import { WorkspaceStore } from '../../../agent/workspace/workspace-store.js';
59
59
  export interface BootstrapSharedStores {
60
60
  sharedWorkspaceStore: WorkspaceStore | undefined;
61
61
  sharedMemoryStore: MemoryStore;
@@ -0,0 +1,14 @@
1
+ import { Command } from 'commander';
2
+ import { type ServiceManager, type ServiceName } from '../../service/index.js';
3
+ export interface RestartLine {
4
+ level: 'success' | 'warning' | 'error' | 'meta';
5
+ text: string;
6
+ }
7
+ export interface RestartReport {
8
+ lines: RestartLine[];
9
+ exitCode: 0 | 1;
10
+ }
11
+ export declare function parseServiceName(input: string): ServiceName;
12
+ export declare function restartServices(mgr: ServiceManager, target?: ServiceName): RestartReport;
13
+ export declare function runRestart(nameArg: string | undefined): void;
14
+ export declare function registerRestartCommand(program: Command): void;