agent-afk 5.307.13 → 5.307.14

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,6 +1,7 @@
1
1
  export declare function errorMessage(err: unknown): string;
2
2
  export declare function ensureError(err: unknown): Error;
3
3
  export declare function isErrnoCode(err: unknown, code: string): boolean;
4
+ export declare function isEnoent(err: unknown): boolean;
4
5
  export declare function isEgressBlocked(err: unknown): boolean;
5
6
  export declare function extractEgressBlockedError(err: unknown): Error | null;
6
7
  export declare function fetchFailedMessage(err: unknown): string;
@@ -0,0 +1,11 @@
1
+ export declare function normalizeFlag(flag: string): string;
2
+ export declare function extractFlagsFromBody(body: string): string[];
3
+ export declare function parseFlagsField(after: string, followingLines: readonly string[]): string[] | null;
4
+ export declare function resolveSkillFlags(frontmatterFlags: readonly string[] | null | undefined, argumentHint: string | undefined, body: string): string[];
5
+ export interface ParsedSkillMd {
6
+ frontmatter: Record<string, string> | null;
7
+ frontmatterFlags: string[] | null;
8
+ body: string;
9
+ }
10
+ export declare function parseSkillMd(content: string): ParsedSkillMd;
11
+ export declare function harvestFlagsFromSkillMd(content: string): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.307.13",
3
+ "version": "5.307.14",
4
4
  "description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",