@hugex/artifact 0.9.0 → 0.10.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.
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { McpRequestContext } from '../context';
|
|
2
2
|
import type { McpDomain } from './artifacts';
|
|
3
|
-
|
|
3
|
+
import { clearSkillsCatalogCache } from '../skillsCatalog';
|
|
4
|
+
/** Compatibility alias retained for existing tests and callers. */
|
|
4
5
|
export declare const guideLimits: {
|
|
5
6
|
fetchTimeoutMs: number;
|
|
6
7
|
cacheTtlMs: number;
|
|
7
8
|
maxFileBytes: number;
|
|
9
|
+
maxCachedFiles: number;
|
|
8
10
|
};
|
|
11
|
+
export declare const clearGuideCache: typeof clearSkillsCatalogCache;
|
|
9
12
|
export declare const PERSONAL_AGENT_GUIDANCE = "Para leer o editar agentes personales por ID se requiere el m\u00F3dulo flow y el rol de admin del tenant o superadmin. Para buscarlos, usa worker_list con type \"personal-agent\". Para crearlos, usa el mismo type en worker_create. Listar con ese filtro y crear tambi\u00E9n exigen el m\u00F3dulo personal-agents a los admins del tenant. Los agentes nuevos quedan con group \"none\". Al editar se conserva el tipo. worker_run ejecuta flows de tipo agent-flow.";
|
|
10
13
|
export declare const guideDomain: McpDomain;
|
|
11
|
-
export declare function clearGuideCache(): void;
|
|
12
14
|
export declare function executeGuideTool(name: string, args: Record<string, unknown>, context: McpRequestContext, serverVersion: string): Promise<import("../tools").ToolTextResult>;
|
|
@@ -5,7 +5,7 @@ import type { ArtifactEnv } from '../types';
|
|
|
5
5
|
import type { McpRequestContext } from './context';
|
|
6
6
|
export declare const MAX_BODY_BYTES: number;
|
|
7
7
|
export declare const SERVER_NAME = "hugex";
|
|
8
|
-
export declare const SERVER_VERSION = "2.
|
|
8
|
+
export declare const SERVER_VERSION = "2.6.0";
|
|
9
9
|
export declare const DEFAULT_PROTOCOL_VERSION = "2025-11-25";
|
|
10
10
|
export declare const SUPPORTED_PROTOCOL_VERSIONS: readonly ['2024-11-05', '2025-03-26', '2025-06-18', '2025-11-25'];
|
|
11
11
|
export type AccessMode = 'phase1' | 'rbac';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ArtifactEnv } from '../types';
|
|
2
|
+
export declare const skillCatalogLimits: {
|
|
3
|
+
fetchTimeoutMs: number;
|
|
4
|
+
cacheTtlMs: number;
|
|
5
|
+
maxFileBytes: number;
|
|
6
|
+
maxCachedFiles: number;
|
|
7
|
+
};
|
|
8
|
+
export interface ManifestFile {
|
|
9
|
+
path: string;
|
|
10
|
+
sha256: string;
|
|
11
|
+
bytes: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ManifestSkill {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
version: string;
|
|
17
|
+
files: ManifestFile[];
|
|
18
|
+
frontmatter?: Record<string, string | Record<string, string>>;
|
|
19
|
+
}
|
|
20
|
+
export interface SkillManifest {
|
|
21
|
+
version: string;
|
|
22
|
+
contract: string;
|
|
23
|
+
minServerVersion: string;
|
|
24
|
+
skills: ManifestSkill[];
|
|
25
|
+
}
|
|
26
|
+
export declare function clearSkillsCatalogCache(): void;
|
|
27
|
+
export declare function parseManifest(value: unknown, major: string): SkillManifest | null;
|
|
28
|
+
export type ManifestLoad = {
|
|
29
|
+
ok: true;
|
|
30
|
+
base: string;
|
|
31
|
+
manifest: SkillManifest;
|
|
32
|
+
} | {
|
|
33
|
+
ok: false;
|
|
34
|
+
error: 'unavailable' | 'rejected' | 'unconfigured';
|
|
35
|
+
};
|
|
36
|
+
export type FileLoad = {
|
|
37
|
+
ok: true;
|
|
38
|
+
bytes: Uint8Array;
|
|
39
|
+
} | {
|
|
40
|
+
ok: false;
|
|
41
|
+
error: 'unavailable' | 'integrity';
|
|
42
|
+
};
|
|
43
|
+
export declare function loadSkillsManifest(env: ArtifactEnv, serverVersion: string, refresh?: boolean): Promise<ManifestLoad>;
|
|
44
|
+
export declare function invalidateSkillsManifest(base: string): void;
|
|
45
|
+
export declare function loadSkillFile(base: string, skill: string, file: ManifestFile): Promise<FileLoad>;
|
|
46
|
+
export declare function resourceUri(skill: string, path: string): string;
|