agent-afk 5.250.1 → 5.251.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/plugins/load-entrypoints.d.ts +6 -1
- package/dist/cli.mjs +247 -247
- package/dist/index.mjs +111 -111
- package/dist/postinstall.mjs +46 -18
- package/dist/telegram.mjs +132 -132
- package/package.json +1 -1
- package/scripts/postinstall.mjs +46 -18
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { SdkPluginConfig } from '../types/sdk-types.js';
|
|
2
|
-
|
|
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>;
|