agent-afk 5.250.1 → 5.251.1

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.
@@ -1,5 +1,10 @@
1
1
  import type { SdkPluginConfig } from '../types/sdk-types.js';
2
- export type PluginApi = Pick<typeof import('../../skills/skill-registry.js'), 'registerSkill' | 'listSkills' | 'getSkill'> & Pick<typeof import('../../skills/_lib/prompt-loader.js'), 'loadSkillPrompts'> & Pick<typeof import('../../config/env.js'), 'env'> & Pick<typeof import('../subagent.js'), 'SubagentManager'> & Pick<typeof import('../subagent/result.js'), 'describeFailure'> & Pick<typeof import('../tools/skill-bridge.js'), 'discoverPluginSkillBodies'> & Pick<typeof import('../facets/index.js'), 'getOrDeriveFacet' | 'listSessionIds' | 'deriveSessionFacet' | 'loadStoredSession'> & Pick<typeof import('../../paths.js'), 'getAgentFrameworkDir' | 'getSkillsDir' | 'getSessionsDir'>;
2
+ import type { HarnessHookEvent, HookHandler, HookRegistry, RegisterOptions } from '../hooks.js';
3
+ export type PluginApi = Pick<typeof import('../../skills/skill-registry.js'), 'registerSkill' | 'listSkills' | 'getSkill'> & Pick<typeof import('../../skills/_lib/prompt-loader.js'), 'loadSkillPrompts'> & Pick<typeof import('../../config/env.js'), 'env'> & Pick<typeof import('../subagent.js'), 'SubagentManager'> & Pick<typeof import('../subagent/result.js'), 'describeFailure'> & Pick<typeof import('../tools/skill-bridge.js'), 'discoverPluginSkillBodies'> & Pick<typeof import('../facets/index.js'), 'getOrDeriveFacet' | 'listSessionIds' | 'deriveSessionFacet' | 'loadStoredSession'> & Pick<typeof import('../../paths.js'), 'getAgentFrameworkDir' | 'getSkillsDir' | 'getSessionsDir'> & {
4
+ registerHook?: (event: HarnessHookEvent, handler: HookHandler, options?: RegisterOptions) => () => void;
5
+ };
6
+ export declare const registerPluginHook: NonNullable<PluginApi['registerHook']>;
7
+ export declare function installPluginHooks(registry: HookRegistry): void;
3
8
  export declare function _resetLoadedEntrypoints(): void;
4
9
  export type LoadEntrypointsOptions = {
5
10
  importer?: (specifier: string) => Promise<unknown>;
@@ -4,5 +4,6 @@ export interface CardSpec {
4
4
  title?: string;
5
5
  body: string | string[];
6
6
  leftPad?: number;
7
+ width?: number;
7
8
  }
8
9
  export declare function card(spec: CardSpec): string;
@@ -1,2 +1,3 @@
1
1
  import type { CommittedBandHost } from './terminal-compositor.committed-band-commit.js';
2
2
  export declare function writeWithScrollGuard(self: Pick<CommittedBandHost, 'scrollRegion'>, write: () => void): void;
3
+ export declare function bannerScrollSequence(rows: number, bannerRows: number, extraRows: number): string;