@nospt/plugin-dev-ai-hub-common 0.2.3 → 0.3.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/src/types.ts DELETED
@@ -1,101 +0,0 @@
1
- export type AssetType = 'instruction' | 'agent' | 'skill' | 'workflow';
2
-
3
- export type AiTool = 'all' | 'github-copilot' | 'claude-code' | 'google-gemini' | 'cursor';
4
-
5
- /** Lightweight summary returned by list endpoints — no markdown content. */
6
- export interface AiAssetSummary {
7
- id: string;
8
- providerId: string;
9
- name: string;
10
- /** Human-readable display name. Falls back to `name` when not set. */
11
- label?: string;
12
- description: string;
13
- type: AssetType;
14
- tools: AiTool[];
15
- tags: string[];
16
- author: string;
17
- icon?: string;
18
- version: string;
19
- installCount: number;
20
- syncedAt: string;
21
- createdAt: string;
22
- updatedAt: string;
23
- }
24
-
25
- export interface AiAsset {
26
- id: string;
27
- providerId: string;
28
- name: string;
29
- /** Human-readable display name. Falls back to `name` when not set. */
30
- label?: string;
31
- description: string;
32
- type: AssetType;
33
- tools: AiTool[];
34
- tags: string[];
35
- author: string;
36
- icon?: string;
37
- version: string;
38
- /** Override the install path for all tools */
39
- installPath?: string;
40
- /** Override the install path per tool */
41
- installPaths?: Record<string, string>;
42
- /** Pure markdown content from the .md file, never modified */
43
- content: string;
44
- /** Raw YAML of the metadata file */
45
- yamlRaw: string;
46
- /** Extra metadata stored from the envelope (e.g. resources for skills) */
47
- metadata?: Record<string, unknown>;
48
- /**
49
- * Content of bundled resource files for skills (path → file content).
50
- * Only populated for assets of type `skill` that declare `resources` in the envelope.
51
- */
52
- resourcesContent?: Record<string, string>;
53
- /** Path of the .yaml file in the repository */
54
- yamlPath: string;
55
- /** Path of the .md file in the repository */
56
- mdPath: string;
57
- repoUrl: string;
58
- branch: string;
59
- commitSha?: string;
60
- installCount: number;
61
- syncedAt: string;
62
- createdAt: string;
63
- updatedAt: string;
64
- }
65
-
66
- export interface AiAssetListResponse {
67
- items: AiAssetSummary[];
68
- totalCount: number;
69
- page: number;
70
- pageSize: number;
71
- }
72
-
73
- export interface AiHubProvider {
74
- id: string;
75
- type: 'github' | 'bitbucket' | 'azure-devops' | 'gitlab' | 'git';
76
- target: string;
77
- branch: string;
78
- lastSync?: string;
79
- lastCommit?: string;
80
- status: 'idle' | 'syncing' | 'error';
81
- error?: string;
82
- assetCount: number;
83
- }
84
-
85
- export interface AiHubStats {
86
- totalAssets: number;
87
- byType: Record<AssetType, number>;
88
- byTool: Record<string, number>;
89
- byProvider: Record<string, number>;
90
- lastSync?: string;
91
- }
92
-
93
- export interface AssetListFilter {
94
- type?: AssetType;
95
- tool?: string;
96
- tags?: string[];
97
- search?: string;
98
- providerId?: string;
99
- page?: number;
100
- pageSize?: number;
101
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src"
6
- },
7
- "include": ["src"]
8
- }