agent-afk 5.125.0 → 5.126.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.
@@ -68,6 +68,11 @@ export type ProviderEvent = {
68
68
  type: 'assistant.message';
69
69
  text: string;
70
70
  sessionId?: string;
71
+ } | {
72
+ type: 'notice';
73
+ text: string;
74
+ kind: 'truncation' | 'refusal';
75
+ sessionId?: string;
71
76
  } | {
72
77
  type: 'tool.use.start';
73
78
  toolUseId: string;
@@ -68,6 +68,10 @@ export type OutputEvent = {
68
68
  } | {
69
69
  type: 'panel';
70
70
  spec: PanelSpec;
71
+ } | {
72
+ type: 'notice';
73
+ text: string;
74
+ kind: 'truncation' | 'refusal';
71
75
  } | {
72
76
  type: 'paused';
73
77
  reason: 'usage-limit';
@@ -0,0 +1,7 @@
1
+ export declare function isFirstRun(): boolean;
2
+ export declare function markFirstRunSeen(): void;
3
+ export interface FirstRunBannerOpts {
4
+ isTTY: boolean;
5
+ isResume: boolean;
6
+ }
7
+ export declare function printFirstRunBanner(opts: FirstRunBannerOpts): boolean;
@@ -0,0 +1,10 @@
1
+ import { type SkillMetadata } from '../../../skills/index.js';
2
+ import { type DiscoveredSkill } from './state.js';
3
+ import type { SlashContext } from '../types.js';
4
+ import type { SkillManifestEntry } from '../../../agent/tools/skill-bridge.js';
5
+ type SkillSource = SkillManifestEntry['source'];
6
+ export declare function registryOriginToSource(origin: SkillMetadata['origin']): SkillSource;
7
+ export declare function friendlySource(source: SkillSource): string;
8
+ export declare function tryGetRegistrySkill(name: string, internalUnlocked: boolean): SkillMetadata | undefined;
9
+ export declare function renderSkillDetail(ctx: SlashContext, query: string, plugins: DiscoveredSkill[], internalUnlocked: boolean): void;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { SlashContext } from '../types.js';
2
+ import { type SearchableSkill } from './search.js';
3
+ import { type DiscoveredSkill } from './state.js';
4
+ export declare function buildSearchUniverse(plugins: DiscoveredSkill[], internalUnlocked: boolean): SearchableSkill[];
5
+ export type { SearchableSkill };
6
+ export declare function renderSkillSearch(ctx: SlashContext, universe: readonly SearchableSkill[], query: string): void;
@@ -0,0 +1,10 @@
1
+ export interface SearchableSkill {
2
+ name: string;
3
+ description: string;
4
+ hint?: string;
5
+ }
6
+ export interface SearchResult {
7
+ skill: SearchableSkill;
8
+ tier: 0 | 1 | 2 | 3;
9
+ }
10
+ export declare function searchSkills(universe: readonly SearchableSkill[], query: string): SearchResult[];