@nodeskai/genehub-types 0.1.0 → 2026.3.2-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.
- package/dist/index.d.ts +132 -7
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -799,7 +799,7 @@ declare const GeneTag: z.ZodEnum<["ability", "personality", "knowledge", "tool"]
|
|
|
799
799
|
type GeneTag = z.infer<typeof GeneTag>;
|
|
800
800
|
declare const GeneSource: z.ZodEnum<["official", "clawhub", "evomap", "community", "agent"]>;
|
|
801
801
|
type GeneSource = z.infer<typeof GeneSource>;
|
|
802
|
-
declare const ReviewStatus: z.ZodEnum<["draft", "pending", "approved", "rejected"]>;
|
|
802
|
+
declare const ReviewStatus: z.ZodEnum<["draft", "pending", "approved", "rejected", "flagged"]>;
|
|
803
803
|
type ReviewStatus = z.infer<typeof ReviewStatus>;
|
|
804
804
|
declare const ProductId: z.ZodEnum<["openclaw", "nanobot", "deskclaw", "generic"]>;
|
|
805
805
|
type ProductId = z.infer<typeof ProductId>;
|
|
@@ -835,11 +835,19 @@ type Gene = {
|
|
|
835
835
|
avg_rating: number;
|
|
836
836
|
effectiveness_score: number;
|
|
837
837
|
review_status: ReviewStatus;
|
|
838
|
+
ai_score: number | null;
|
|
839
|
+
ai_verdict: string | null;
|
|
840
|
+
ai_enriched: boolean;
|
|
838
841
|
is_published: boolean;
|
|
839
842
|
created_at: string;
|
|
840
843
|
updated_at: string;
|
|
841
844
|
deleted_at: string | null;
|
|
842
845
|
};
|
|
846
|
+
type GenomeGeneRef = {
|
|
847
|
+
slug: string;
|
|
848
|
+
version: string;
|
|
849
|
+
config_override?: Record<string, unknown>;
|
|
850
|
+
};
|
|
843
851
|
type Genome = {
|
|
844
852
|
id: string;
|
|
845
853
|
name: string;
|
|
@@ -847,12 +855,10 @@ type Genome = {
|
|
|
847
855
|
version: string;
|
|
848
856
|
description: string;
|
|
849
857
|
short_description: string;
|
|
858
|
+
category: string;
|
|
859
|
+
tags: string[];
|
|
850
860
|
icon: string | null;
|
|
851
|
-
genes:
|
|
852
|
-
slug: string;
|
|
853
|
-
version: string;
|
|
854
|
-
config_override?: Record<string, unknown>;
|
|
855
|
-
}[];
|
|
861
|
+
genes: GenomeGeneRef[];
|
|
856
862
|
compatibility: string[];
|
|
857
863
|
install_count: number;
|
|
858
864
|
avg_rating: number;
|
|
@@ -862,6 +868,54 @@ type Genome = {
|
|
|
862
868
|
updated_at: string;
|
|
863
869
|
deleted_at: string | null;
|
|
864
870
|
};
|
|
871
|
+
type GenomeVersion = {
|
|
872
|
+
id: string;
|
|
873
|
+
genome_id: string;
|
|
874
|
+
version: string;
|
|
875
|
+
genes: GenomeGeneRef[];
|
|
876
|
+
changelog: string;
|
|
877
|
+
is_latest: boolean;
|
|
878
|
+
published_at: string;
|
|
879
|
+
};
|
|
880
|
+
type GenomeResolveResult = {
|
|
881
|
+
genome: {
|
|
882
|
+
slug: string;
|
|
883
|
+
name: string;
|
|
884
|
+
version: string;
|
|
885
|
+
};
|
|
886
|
+
genes: {
|
|
887
|
+
slug: string;
|
|
888
|
+
version: string;
|
|
889
|
+
manifest: unknown;
|
|
890
|
+
config_override?: Record<string, unknown>;
|
|
891
|
+
resolved_from: 'direct' | 'dependency';
|
|
892
|
+
}[];
|
|
893
|
+
compatibility: string[];
|
|
894
|
+
conflicts: string[];
|
|
895
|
+
warnings: string[];
|
|
896
|
+
};
|
|
897
|
+
type GeneReview = {
|
|
898
|
+
id: string;
|
|
899
|
+
gene_id: string;
|
|
900
|
+
reviewer: string;
|
|
901
|
+
score: number | null;
|
|
902
|
+
verdict: string | null;
|
|
903
|
+
comments: string[];
|
|
904
|
+
changes_made: Record<string, unknown> | null;
|
|
905
|
+
feedback: string | null;
|
|
906
|
+
model: string | null;
|
|
907
|
+
created_at: string;
|
|
908
|
+
};
|
|
909
|
+
type GeneRelation = {
|
|
910
|
+
id: string;
|
|
911
|
+
source_gene_id: string;
|
|
912
|
+
target_gene_id: string;
|
|
913
|
+
relation_type: 'synergy' | 'conflict' | 'extends' | 'replaces';
|
|
914
|
+
strength: number;
|
|
915
|
+
reason: string | null;
|
|
916
|
+
created_by: string;
|
|
917
|
+
created_at: string;
|
|
918
|
+
};
|
|
865
919
|
type GeneVersion = {
|
|
866
920
|
id: string;
|
|
867
921
|
gene_id: string;
|
|
@@ -903,7 +957,74 @@ type GeneListResponse = ApiResponse<PaginatedData<Gene>>;
|
|
|
903
957
|
type GeneDetailResponse = ApiResponse<Gene>;
|
|
904
958
|
type GeneManifestResponse = ApiResponse<Gene['manifest']>;
|
|
905
959
|
type GeneVersionsResponse = ApiResponse<GeneVersion[]>;
|
|
960
|
+
type GenomeListParams = {
|
|
961
|
+
q?: string;
|
|
962
|
+
category?: string;
|
|
963
|
+
sort?: 'newest' | 'popular' | 'rating';
|
|
964
|
+
page?: number;
|
|
965
|
+
page_size?: number;
|
|
966
|
+
};
|
|
967
|
+
type GenomeListResponse = ApiResponse<PaginatedData<Genome>>;
|
|
906
968
|
type GenomeDetailResponse = ApiResponse<Genome>;
|
|
969
|
+
type GenomeVersionsResponse = ApiResponse<GenomeVersion[]>;
|
|
970
|
+
type GenomeResolveResponse = ApiResponse<GenomeResolveResult>;
|
|
971
|
+
type CreateGenomeRequest = {
|
|
972
|
+
name: string;
|
|
973
|
+
slug: string;
|
|
974
|
+
version: string;
|
|
975
|
+
description?: string;
|
|
976
|
+
short_description?: string;
|
|
977
|
+
category?: string;
|
|
978
|
+
tags?: string[];
|
|
979
|
+
icon?: string;
|
|
980
|
+
genes: {
|
|
981
|
+
slug: string;
|
|
982
|
+
version: string;
|
|
983
|
+
config_override?: Record<string, unknown>;
|
|
984
|
+
}[];
|
|
985
|
+
compatibility?: string[];
|
|
986
|
+
author?: {
|
|
987
|
+
type: string;
|
|
988
|
+
id?: string;
|
|
989
|
+
name: string;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
type PublishGenomeVersionRequest = {
|
|
993
|
+
version: string;
|
|
994
|
+
genes: {
|
|
995
|
+
slug: string;
|
|
996
|
+
version: string;
|
|
997
|
+
config_override?: Record<string, unknown>;
|
|
998
|
+
}[];
|
|
999
|
+
changelog?: string;
|
|
1000
|
+
};
|
|
1001
|
+
type FederatedSearchParams = {
|
|
1002
|
+
q: string;
|
|
1003
|
+
category?: string;
|
|
1004
|
+
limit?: number;
|
|
1005
|
+
};
|
|
1006
|
+
type FederatedGeneItem = {
|
|
1007
|
+
slug: string;
|
|
1008
|
+
name: string;
|
|
1009
|
+
description: string | null;
|
|
1010
|
+
version: string | null;
|
|
1011
|
+
category: string | null;
|
|
1012
|
+
tags: string[];
|
|
1013
|
+
source: 'local' | 'clawhub';
|
|
1014
|
+
score: number;
|
|
1015
|
+
install_count: number | null;
|
|
1016
|
+
avg_rating: number | null;
|
|
1017
|
+
clawhub_display_name?: string;
|
|
1018
|
+
};
|
|
1019
|
+
type FederatedSearchResponse = ApiResponse<{
|
|
1020
|
+
query: string;
|
|
1021
|
+
total: number;
|
|
1022
|
+
items: FederatedGeneItem[];
|
|
1023
|
+
sources: {
|
|
1024
|
+
local: number;
|
|
1025
|
+
clawhub: number;
|
|
1026
|
+
};
|
|
1027
|
+
}>;
|
|
907
1028
|
type CreateGeneRequest = {
|
|
908
1029
|
manifest: Gene['manifest'];
|
|
909
1030
|
source?: string;
|
|
@@ -944,6 +1065,10 @@ declare const ERROR_CODES: {
|
|
|
944
1065
|
readonly GENE_MANIFEST_INVALID: 20004;
|
|
945
1066
|
readonly GENE_VERSION_NOT_FOUND: 20005;
|
|
946
1067
|
readonly GENOME_NOT_FOUND: 30001;
|
|
1068
|
+
readonly GENOME_SLUG_EXISTS: 30002;
|
|
1069
|
+
readonly GENOME_VERSION_CONFLICT: 30003;
|
|
1070
|
+
readonly GENOME_VALIDATION_FAILED: 30004;
|
|
1071
|
+
readonly GENOME_VERSION_NOT_FOUND: 30005;
|
|
947
1072
|
readonly DEPENDENCY_RESOLVE_FAILED: 40001;
|
|
948
1073
|
readonly COMPATIBILITY_MISMATCH: 40002;
|
|
949
1074
|
readonly LEARNING_TASK_TIMEOUT: 50001;
|
|
@@ -951,4 +1076,4 @@ declare const ERROR_CODES: {
|
|
|
951
1076
|
readonly INTERNAL_ERROR: 90001;
|
|
952
1077
|
};
|
|
953
1078
|
|
|
954
|
-
export { type ApiErrorResponse, type ApiResponse, type Author, AuthorSchema, AuthorType, type CompatibilityEntry, CompatibilityEntrySchema, type CreateGeneRequest, type DependencyEntry, DependencyEntrySchema, ERROR_CODES, type EffectivenessReport, type Gene, type GeneAdapter, GeneCategory, type GeneConfig, GeneConfigSchema, type GeneDetailResponse, type GeneListParams, type GeneListResponse, type GeneManifest, type GeneManifestResponse, GeneManifestSchema, GeneSource, GeneTag, type GeneVersion, type GeneVersionsResponse, type Genome, type GenomeDetailResponse, type InstallOptions, type InstallResult, type InstalledGene, type Learning, LearningDecision, LearningMode, type LearningScenario, LearningScenarioSchema, LearningSchema, type McpServer, McpServerSchema, NanobotConfigSchema, OpenClawConfigSchema, type PaginatedData, ProductId, type ResolveRequest, type ResolveResponse, type ResolvedGene, ReviewStatus, type Rule, RuleSchema, type Skill, SkillSchema, type UninstallOptions, type UninstallResult };
|
|
1079
|
+
export { type ApiErrorResponse, type ApiResponse, type Author, AuthorSchema, AuthorType, type CompatibilityEntry, CompatibilityEntrySchema, type CreateGeneRequest, type CreateGenomeRequest, type DependencyEntry, DependencyEntrySchema, ERROR_CODES, type EffectivenessReport, type FederatedGeneItem, type FederatedSearchParams, type FederatedSearchResponse, type Gene, type GeneAdapter, GeneCategory, type GeneConfig, GeneConfigSchema, type GeneDetailResponse, type GeneListParams, type GeneListResponse, type GeneManifest, type GeneManifestResponse, GeneManifestSchema, type GeneRelation, type GeneReview, GeneSource, GeneTag, type GeneVersion, type GeneVersionsResponse, type Genome, type GenomeDetailResponse, type GenomeGeneRef, type GenomeListParams, type GenomeListResponse, type GenomeResolveResponse, type GenomeResolveResult, type GenomeVersion, type GenomeVersionsResponse, type InstallOptions, type InstallResult, type InstalledGene, type Learning, LearningDecision, LearningMode, type LearningScenario, LearningScenarioSchema, LearningSchema, type McpServer, McpServerSchema, NanobotConfigSchema, OpenClawConfigSchema, type PaginatedData, ProductId, type PublishGenomeVersionRequest, type ResolveRequest, type ResolveResponse, type ResolvedGene, ReviewStatus, type Rule, RuleSchema, type Skill, SkillSchema, type UninstallOptions, type UninstallResult };
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,10 @@ var ERROR_CODES = {
|
|
|
9
9
|
GENE_MANIFEST_INVALID: 20004,
|
|
10
10
|
GENE_VERSION_NOT_FOUND: 20005,
|
|
11
11
|
GENOME_NOT_FOUND: 30001,
|
|
12
|
+
GENOME_SLUG_EXISTS: 30002,
|
|
13
|
+
GENOME_VERSION_CONFLICT: 30003,
|
|
14
|
+
GENOME_VALIDATION_FAILED: 30004,
|
|
15
|
+
GENOME_VERSION_NOT_FOUND: 30005,
|
|
12
16
|
DEPENDENCY_RESOLVE_FAILED: 40001,
|
|
13
17
|
COMPATIBILITY_MISMATCH: 40002,
|
|
14
18
|
LEARNING_TASK_TIMEOUT: 50001,
|
|
@@ -30,7 +34,7 @@ var GeneCategory = z.enum([
|
|
|
30
34
|
]);
|
|
31
35
|
var GeneTag = z.enum(["ability", "personality", "knowledge", "tool"]);
|
|
32
36
|
var GeneSource = z.enum(["official", "clawhub", "evomap", "community", "agent"]);
|
|
33
|
-
var ReviewStatus = z.enum(["draft", "pending", "approved", "rejected"]);
|
|
37
|
+
var ReviewStatus = z.enum(["draft", "pending", "approved", "rejected", "flagged"]);
|
|
34
38
|
var ProductId = z.enum(["openclaw", "nanobot", "deskclaw", "generic"]);
|
|
35
39
|
var AuthorType = z.enum(["human", "agent"]);
|
|
36
40
|
var LearningMode = z.enum(["learn", "create", "forget"]);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api.ts","../src/enums.ts","../src/manifest.ts"],"sourcesContent":["import type { Gene, GeneVersion, Genome } from './gene.js';\n\nexport type ApiResponse<T = unknown> = {\n code: number;\n message: string;\n data: T;\n};\n\nexport type ApiErrorResponse = {\n code: number;\n error_code: string;\n message: string;\n data: null;\n};\n\nexport type PaginatedData<T> = {\n items: T[];\n total: number;\n page: number;\n page_size: number;\n total_pages: number;\n};\n\nexport type GeneListParams = {\n q?: string;\n category?: string;\n tags?: string[];\n compatibility?: string;\n sort?: 'newest' | 'popular' | 'rating';\n page?: number;\n page_size?: number;\n};\n\nexport type GeneListResponse = ApiResponse<PaginatedData<Gene>>;\nexport type GeneDetailResponse = ApiResponse<Gene>;\nexport type GeneManifestResponse = ApiResponse<Gene['manifest']>;\nexport type GeneVersionsResponse = ApiResponse<GeneVersion[]>;\nexport type GenomeDetailResponse = ApiResponse<Genome>;\n\nexport type CreateGeneRequest = {\n manifest: Gene['manifest'];\n source?: string;\n source_ref?: string;\n};\n\nexport type ResolveRequest = {\n slug: string;\n version?: string;\n product?: string;\n};\n\nexport type ResolvedGene = {\n slug: string;\n version: string;\n manifest: unknown;\n optional: boolean;\n};\n\nexport type ResolveResponse = ApiResponse<{\n plan: ResolvedGene[];\n warnings: string[];\n}>;\n\nexport type EffectivenessReport = {\n gene_slug: string;\n gene_version: string;\n product: string;\n instance_id: string;\n metric_type: 'user_positive' | 'user_negative' | 'agent_self_eval' | 'task_success';\n value: number;\n context?: string;\n timestamp: string;\n};\n\nexport const ERROR_CODES = {\n TOKEN_INVALID: 10001,\n TOKEN_EXPIRED: 10002,\n PERMISSION_DENIED: 10003,\n GENE_NOT_FOUND: 20001,\n GENE_VERSION_CONFLICT: 20002,\n GENE_SLUG_EXISTS: 20003,\n GENE_MANIFEST_INVALID: 20004,\n GENE_VERSION_NOT_FOUND: 20005,\n GENOME_NOT_FOUND: 30001,\n DEPENDENCY_RESOLVE_FAILED: 40001,\n COMPATIBILITY_MISMATCH: 40002,\n LEARNING_TASK_TIMEOUT: 50001,\n LEARNING_CALLBACK_FAILED: 50002,\n INTERNAL_ERROR: 90001,\n} as const;\n","import { z } from 'zod';\n\nexport const GeneCategory = z.enum([\n 'development',\n 'data',\n 'operations',\n 'network',\n 'creative',\n 'communication',\n 'security',\n 'efficiency',\n]);\nexport type GeneCategory = z.infer<typeof GeneCategory>;\n\nexport const GeneTag = z.enum(['ability', 'personality', 'knowledge', 'tool']);\nexport type GeneTag = z.infer<typeof GeneTag>;\n\nexport const GeneSource = z.enum(['official', 'clawhub', 'evomap', 'community', 'agent']);\nexport type GeneSource = z.infer<typeof GeneSource>;\n\nexport const ReviewStatus = z.enum(['draft', 'pending', 'approved', 'rejected']);\nexport type ReviewStatus = z.infer<typeof ReviewStatus>;\n\nexport const ProductId = z.enum(['openclaw', 'nanobot', 'deskclaw', 'generic']);\nexport type ProductId = z.infer<typeof ProductId>;\n\nexport const AuthorType = z.enum(['human', 'agent']);\nexport type AuthorType = z.infer<typeof AuthorType>;\n\nexport const LearningMode = z.enum(['learn', 'create', 'forget']);\nexport type LearningMode = z.infer<typeof LearningMode>;\n\nexport const LearningDecision = z.enum([\n 'direct_install',\n 'learned',\n 'failed',\n 'created',\n 'forgotten',\n 'simplified',\n 'forget_failed',\n]);\nexport type LearningDecision = z.infer<typeof LearningDecision>;\n","import { z } from 'zod';\nimport { AuthorType, GeneCategory, GeneTag, ProductId } from './enums.js';\n\nconst SLUG_REGEX = /^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$/;\nconst SEMVER_REGEX = /^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?$/;\n\nexport const AuthorSchema = z.object({\n type: AuthorType,\n name: z.string().max(128),\n ref: z.string().optional().default(''),\n});\nexport type Author = z.infer<typeof AuthorSchema>;\n\nexport const CompatibilityEntrySchema = z.object({\n product: ProductId,\n min_version: z.string().optional().default('0.0.0'),\n});\nexport type CompatibilityEntry = z.infer<typeof CompatibilityEntrySchema>;\n\nexport const DependencyEntrySchema = z.object({\n slug: z.string().regex(SLUG_REGEX),\n version: z.string(),\n optional: z.boolean().optional().default(false),\n});\nexport type DependencyEntry = z.infer<typeof DependencyEntrySchema>;\n\nexport const SkillSchema = z.object({\n name: z.string().min(1).max(128),\n always: z.boolean().optional().default(false),\n content: z.string().optional(),\n file: z.string().optional(),\n});\nexport type Skill = z.infer<typeof SkillSchema>;\n\nexport const RuleSchema = z.object({\n name: z.string().min(1).max(128),\n content: z.string(),\n applies_to: z.string().optional(),\n});\nexport type Rule = z.infer<typeof RuleSchema>;\n\nexport const OpenClawConfigSchema = z.object({\n openclaw_config: z.record(z.unknown()).optional(),\n tool_allow: z.array(z.string()).optional(),\n});\n\nexport const NanobotConfigSchema = z.object({\n capabilities: z.array(z.string()).optional(),\n requires: z\n .object({\n bins: z.array(z.string()).optional(),\n env: z.array(z.string()).optional(),\n })\n .optional(),\n always: z.boolean().optional(),\n os: z.array(z.string()).optional(),\n install: z\n .array(\n z.object({\n id: z.string(),\n kind: z.string(),\n formula: z.string().optional(),\n bins: z.array(z.string()).optional(),\n label: z.string().optional(),\n }),\n )\n .optional(),\n});\n\nexport const GeneConfigSchema = z.object({\n common: z.record(z.unknown()).optional(),\n openclaw: OpenClawConfigSchema.optional(),\n nanobot: NanobotConfigSchema.optional(),\n});\nexport type GeneConfig = z.infer<typeof GeneConfigSchema>;\n\nexport const McpServerSchema = z.object({\n name: z.string(),\n transport: z.enum(['stdio', 'http']).optional().default('stdio'),\n command: z.string().optional(),\n args: z.array(z.string()).optional(),\n env: z.record(z.string()).optional(),\n url: z.string().optional(),\n headers: z.record(z.string()).optional(),\n});\nexport type McpServer = z.infer<typeof McpServerSchema>;\n\nexport const LearningScenarioSchema = z.object({\n title: z.string(),\n context: z.string(),\n expected_focus: z.string(),\n});\nexport type LearningScenario = z.infer<typeof LearningScenarioSchema>;\n\nexport const LearningSchema = z.object({\n force_deep_learn: z.boolean().optional().default(false),\n objectives: z.array(z.string()).optional(),\n scenarios: z.array(LearningScenarioSchema).optional(),\n});\nexport type Learning = z.infer<typeof LearningSchema>;\n\nexport const GeneManifestSchema = z.object({\n slug: z.string().regex(SLUG_REGEX, 'slug 必须为 kebab-case,3-64 字符'),\n name: z.string().min(1).max(128),\n version: z.string().regex(SEMVER_REGEX, '版本号必须符合 SemVer'),\n description: z.string(),\n short_description: z.string().max(256),\n category: GeneCategory,\n tags: z.array(GeneTag).min(1),\n icon: z.string().max(64).optional(),\n author: AuthorSchema.optional(),\n\n compatibility: z.array(CompatibilityEntrySchema).min(1),\n\n dependencies: z.array(DependencyEntrySchema).optional().default([]),\n synergies: z.array(z.string()).optional().default([]),\n\n skill: SkillSchema,\n rules: z.array(RuleSchema).optional().default([]),\n config: GeneConfigSchema.optional(),\n mcp_servers: z.array(McpServerSchema).optional().default([]),\n learning: LearningSchema.optional(),\n});\nexport type GeneManifest = z.infer<typeof GeneManifestSchema>;\n"],"mappings":";AA0EO,IAAM,cAAc;AAAA,EACzB,eAAe;AAAA,EACf,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,gBAAgB;AAClB;;;ACzFA,SAAS,SAAS;AAEX,IAAM,eAAe,EAAE,KAAK;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGM,IAAM,UAAU,EAAE,KAAK,CAAC,WAAW,eAAe,aAAa,MAAM,CAAC;AAGtE,IAAM,aAAa,EAAE,KAAK,CAAC,YAAY,WAAW,UAAU,aAAa,OAAO,CAAC;AAGjF,IAAM,eAAe,EAAE,KAAK,CAAC,SAAS,WAAW,YAAY,UAAU,CAAC;AAGxE,IAAM,YA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AAE,MAAM,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAClE,WAAWA,GAAE,MAAMA,GAAE,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAEpD,OAAO;AAAA,EACP,OAAOA,GAAE,MAAM,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAChD,QAAQ,iBAAiB,SAAS;AAAA,EAClC,aAAaA,GAAE,MAAM,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAC3D,UAAU,eAAe,SAAS;AACpC,CAAC;","names":["z","z"]}
|
|
1
|
+
{"version":3,"sources":["../src/api.ts","../src/enums.ts","../src/manifest.ts"],"sourcesContent":["import type { Gene, GeneVersion, Genome, GenomeResolveResult, GenomeVersion } from './gene.js';\n\nexport type ApiResponse<T = unknown> = {\n code: number;\n message: string;\n data: T;\n};\n\nexport type ApiErrorResponse = {\n code: number;\n error_code: string;\n message: string;\n data: null;\n};\n\nexport type PaginatedData<T> = {\n items: T[];\n total: number;\n page: number;\n page_size: number;\n total_pages: number;\n};\n\nexport type GeneListParams = {\n q?: string;\n category?: string;\n tags?: string[];\n compatibility?: string;\n sort?: 'newest' | 'popular' | 'rating';\n page?: number;\n page_size?: number;\n};\n\nexport type GeneListResponse = ApiResponse<PaginatedData<Gene>>;\nexport type GeneDetailResponse = ApiResponse<Gene>;\nexport type GeneManifestResponse = ApiResponse<Gene['manifest']>;\nexport type GeneVersionsResponse = ApiResponse<GeneVersion[]>;\nexport type GenomeListParams = {\n q?: string;\n category?: string;\n sort?: 'newest' | 'popular' | 'rating';\n page?: number;\n page_size?: number;\n};\n\nexport type GenomeListResponse = ApiResponse<PaginatedData<Genome>>;\nexport type GenomeDetailResponse = ApiResponse<Genome>;\nexport type GenomeVersionsResponse = ApiResponse<GenomeVersion[]>;\nexport type GenomeResolveResponse = ApiResponse<GenomeResolveResult>;\n\nexport type CreateGenomeRequest = {\n name: string;\n slug: string;\n version: string;\n description?: string;\n short_description?: string;\n category?: string;\n tags?: string[];\n icon?: string;\n genes: { slug: string; version: string; config_override?: Record<string, unknown> }[];\n compatibility?: string[];\n author?: { type: string; id?: string; name: string };\n};\n\nexport type PublishGenomeVersionRequest = {\n version: string;\n genes: { slug: string; version: string; config_override?: Record<string, unknown> }[];\n changelog?: string;\n};\n\nexport type FederatedSearchParams = {\n q: string;\n category?: string;\n limit?: number;\n};\n\nexport type FederatedGeneItem = {\n slug: string;\n name: string;\n description: string | null;\n version: string | null;\n category: string | null;\n tags: string[];\n source: 'local' | 'clawhub';\n score: number;\n install_count: number | null;\n avg_rating: number | null;\n clawhub_display_name?: string;\n};\n\nexport type FederatedSearchResponse = ApiResponse<{\n query: string;\n total: number;\n items: FederatedGeneItem[];\n sources: { local: number; clawhub: number };\n}>;\n\nexport type CreateGeneRequest = {\n manifest: Gene['manifest'];\n source?: string;\n source_ref?: string;\n};\n\nexport type ResolveRequest = {\n slug: string;\n version?: string;\n product?: string;\n};\n\nexport type ResolvedGene = {\n slug: string;\n version: string;\n manifest: unknown;\n optional: boolean;\n};\n\nexport type ResolveResponse = ApiResponse<{\n plan: ResolvedGene[];\n warnings: string[];\n}>;\n\nexport type EffectivenessReport = {\n gene_slug: string;\n gene_version: string;\n product: string;\n instance_id: string;\n metric_type: 'user_positive' | 'user_negative' | 'agent_self_eval' | 'task_success';\n value: number;\n context?: string;\n timestamp: string;\n};\n\nexport const ERROR_CODES = {\n TOKEN_INVALID: 10001,\n TOKEN_EXPIRED: 10002,\n PERMISSION_DENIED: 10003,\n GENE_NOT_FOUND: 20001,\n GENE_VERSION_CONFLICT: 20002,\n GENE_SLUG_EXISTS: 20003,\n GENE_MANIFEST_INVALID: 20004,\n GENE_VERSION_NOT_FOUND: 20005,\n GENOME_NOT_FOUND: 30001,\n GENOME_SLUG_EXISTS: 30002,\n GENOME_VERSION_CONFLICT: 30003,\n GENOME_VALIDATION_FAILED: 30004,\n GENOME_VERSION_NOT_FOUND: 30005,\n DEPENDENCY_RESOLVE_FAILED: 40001,\n COMPATIBILITY_MISMATCH: 40002,\n LEARNING_TASK_TIMEOUT: 50001,\n LEARNING_CALLBACK_FAILED: 50002,\n INTERNAL_ERROR: 90001,\n} as const;\n","import { z } from 'zod';\n\nexport const GeneCategory = z.enum([\n 'development',\n 'data',\n 'operations',\n 'network',\n 'creative',\n 'communication',\n 'security',\n 'efficiency',\n]);\nexport type GeneCategory = z.infer<typeof GeneCategory>;\n\nexport const GeneTag = z.enum(['ability', 'personality', 'knowledge', 'tool']);\nexport type GeneTag = z.infer<typeof GeneTag>;\n\nexport const GeneSource = z.enum(['official', 'clawhub', 'evomap', 'community', 'agent']);\nexport type GeneSource = z.infer<typeof GeneSource>;\n\nexport const ReviewStatus = z.enum(['draft', 'pending', 'approved', 'rejected', 'flagged']);\nexport type ReviewStatus = z.infer<typeof ReviewStatus>;\n\nexport const ProductId = z.enum(['openclaw', 'nanobot', 'deskclaw', 'generic']);\nexport type ProductId = z.infer<typeof ProductId>;\n\nexport const AuthorType = z.enum(['human', 'agent']);\nexport type AuthorType = z.infer<typeof AuthorType>;\n\nexport const LearningMode = z.enum(['learn', 'create', 'forget']);\nexport type LearningMode = z.infer<typeof LearningMode>;\n\nexport const LearningDecision = z.enum([\n 'direct_install',\n 'learned',\n 'failed',\n 'created',\n 'forgotten',\n 'simplified',\n 'forget_failed',\n]);\nexport type LearningDecision = z.infer<typeof LearningDecision>;\n","import { z } from 'zod';\nimport { AuthorType, GeneCategory, GeneTag, ProductId } from './enums.js';\n\nconst SLUG_REGEX = /^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$/;\nconst SEMVER_REGEX = /^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?$/;\n\nexport const AuthorSchema = z.object({\n type: AuthorType,\n name: z.string().max(128),\n ref: z.string().optional().default(''),\n});\nexport type Author = z.infer<typeof AuthorSchema>;\n\nexport const CompatibilityEntrySchema = z.object({\n product: ProductId,\n min_version: z.string().optional().default('0.0.0'),\n});\nexport type CompatibilityEntry = z.infer<typeof CompatibilityEntrySchema>;\n\nexport const DependencyEntrySchema = z.object({\n slug: z.string().regex(SLUG_REGEX),\n version: z.string(),\n optional: z.boolean().optional().default(false),\n});\nexport type DependencyEntry = z.infer<typeof DependencyEntrySchema>;\n\nexport const SkillSchema = z.object({\n name: z.string().min(1).max(128),\n always: z.boolean().optional().default(false),\n content: z.string().optional(),\n file: z.string().optional(),\n});\nexport type Skill = z.infer<typeof SkillSchema>;\n\nexport const RuleSchema = z.object({\n name: z.string().min(1).max(128),\n content: z.string(),\n applies_to: z.string().optional(),\n});\nexport type Rule = z.infer<typeof RuleSchema>;\n\nexport const OpenClawConfigSchema = z.object({\n openclaw_config: z.record(z.unknown()).optional(),\n tool_allow: z.array(z.string()).optional(),\n});\n\nexport const NanobotConfigSchema = z.object({\n capabilities: z.array(z.string()).optional(),\n requires: z\n .object({\n bins: z.array(z.string()).optional(),\n env: z.array(z.string()).optional(),\n })\n .optional(),\n always: z.boolean().optional(),\n os: z.array(z.string()).optional(),\n install: z\n .array(\n z.object({\n id: z.string(),\n kind: z.string(),\n formula: z.string().optional(),\n bins: z.array(z.string()).optional(),\n label: z.string().optional(),\n }),\n )\n .optional(),\n});\n\nexport const GeneConfigSchema = z.object({\n common: z.record(z.unknown()).optional(),\n openclaw: OpenClawConfigSchema.optional(),\n nanobot: NanobotConfigSchema.optional(),\n});\nexport type GeneConfig = z.infer<typeof GeneConfigSchema>;\n\nexport const McpServerSchema = z.object({\n name: z.string(),\n transport: z.enum(['stdio', 'http']).optional().default('stdio'),\n command: z.string().optional(),\n args: z.array(z.string()).optional(),\n env: z.record(z.string()).optional(),\n url: z.string().optional(),\n headers: z.record(z.string()).optional(),\n});\nexport type McpServer = z.infer<typeof McpServerSchema>;\n\nexport const LearningScenarioSchema = z.object({\n title: z.string(),\n context: z.string(),\n expected_focus: z.string(),\n});\nexport type LearningScenario = z.infer<typeof LearningScenarioSchema>;\n\nexport const LearningSchema = z.object({\n force_deep_learn: z.boolean().optional().default(false),\n objectives: z.array(z.string()).optional(),\n scenarios: z.array(LearningScenarioSchema).optional(),\n});\nexport type Learning = z.infer<typeof LearningSchema>;\n\nexport const GeneManifestSchema = z.object({\n slug: z.string().regex(SLUG_REGEX, 'slug 必须为 kebab-case,3-64 字符'),\n name: z.string().min(1).max(128),\n version: z.string().regex(SEMVER_REGEX, '版本号必须符合 SemVer'),\n description: z.string(),\n short_description: z.string().max(256),\n category: GeneCategory,\n tags: z.array(GeneTag).min(1),\n icon: z.string().max(64).optional(),\n author: AuthorSchema.optional(),\n\n compatibility: z.array(CompatibilityEntrySchema).min(1),\n\n dependencies: z.array(DependencyEntrySchema).optional().default([]),\n synergies: z.array(z.string()).optional().default([]),\n\n skill: SkillSchema,\n rules: z.array(RuleSchema).optional().default([]),\n config: GeneConfigSchema.optional(),\n mcp_servers: z.array(McpServerSchema).optional().default([]),\n learning: LearningSchema.optional(),\n});\nexport type GeneManifest = z.infer<typeof GeneManifestSchema>;\n"],"mappings":";AAoIO,IAAM,cAAc;AAAA,EACzB,eAAe;AAAA,EACf,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,yBAAyB;AAAA,EACzB,0BAA0B;AAAA,EAC1B,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,gBAAgB;AAClB;;;ACvJA,SAAS,SAAS;AAEX,IAAM,eAAe,EAAE,KAAK;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGM,IAAM,UAAU,EAAE,KAAK,CAA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O,EAAE,IAAI,CAAC;AAAA,EAC5B,MAAMA,GAAE,OAAO,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAClC,QAAQ,aAAa,SAAS;AAAA,EAE9B,eAAeA,GAAE,MAAM,wBAAwB,EAAE,IAAI,CAAC;AAAA,EAEtD,cAAcA,GAAE,MAAM,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAClE,WAAWA,GAAE,MAAMA,GAAE,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAEpD,OAAO;AAAA,EACP,OAAOA,GAAE,MAAM,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAChD,QAAQ,iBAAiB,SAAS;AAAA,EAClC,aAAaA,GAAE,MAAM,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAAA,EAC3D,UAAU,eAAe,SAAS;AACpC,CAAC;","names":["z","z"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodeskai/genehub-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2026.3.2-1",
|
|
4
4
|
"description": "GeneHub 共享类型定义与 Zod schemas",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/NoDeskAI/genehub.git",
|
|
35
|
+
"url": "git+https://github.com/NoDeskAI/genehub.git",
|
|
36
36
|
"directory": "packages/types"
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/NoDeskAI/genehub",
|