@ai-primitives-hub/core 0.0.1-alpha.2 → 0.1.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.
Files changed (78) hide show
  1. package/dist/domain/bundle/types.d.ts +8 -0
  2. package/dist/domain/bundle/types.d.ts.map +1 -1
  3. package/dist/domain/bundle/types.js +11 -0
  4. package/dist/domain/bundle/types.js.map +1 -1
  5. package/dist/domain/collection/manifest-validator.d.ts +33 -2
  6. package/dist/domain/collection/manifest-validator.d.ts.map +1 -1
  7. package/dist/domain/collection/manifest-validator.js +291 -1
  8. package/dist/domain/collection/manifest-validator.js.map +1 -1
  9. package/dist/domain/collection/types.d.ts +106 -0
  10. package/dist/domain/collection/types.d.ts.map +1 -1
  11. package/dist/domain/collection/types.js +8 -12
  12. package/dist/domain/collection/types.js.map +1 -1
  13. package/dist/domain/collection/validate.d.ts +1 -1
  14. package/dist/domain/collection/validate.d.ts.map +1 -1
  15. package/dist/domain/collection/validate.js +17 -2
  16. package/dist/domain/collection/validate.js.map +1 -1
  17. package/dist/domain/hub/validate.d.ts +22 -14
  18. package/dist/domain/hub/validate.d.ts.map +1 -1
  19. package/dist/domain/hub/validate.js +138 -3
  20. package/dist/domain/hub/validate.js.map +1 -1
  21. package/dist/domain/index.d.ts +2 -0
  22. package/dist/domain/index.d.ts.map +1 -1
  23. package/dist/domain/index.js +2 -0
  24. package/dist/domain/index.js.map +1 -1
  25. package/dist/domain/install/integrity.d.ts +67 -0
  26. package/dist/domain/install/integrity.d.ts.map +1 -0
  27. package/dist/domain/install/integrity.js +98 -0
  28. package/dist/domain/install/integrity.js.map +1 -0
  29. package/dist/domain/install/layout.d.ts +124 -0
  30. package/dist/domain/install/layout.d.ts.map +1 -1
  31. package/dist/domain/install/layout.js +119 -0
  32. package/dist/domain/install/layout.js.map +1 -1
  33. package/dist/domain/install/target.d.ts +19 -3
  34. package/dist/domain/install/target.d.ts.map +1 -1
  35. package/dist/domain/install/target.js +12 -1
  36. package/dist/domain/install/target.js.map +1 -1
  37. package/dist/domain/mcp/index.d.ts +6 -0
  38. package/dist/domain/mcp/index.d.ts.map +1 -0
  39. package/dist/domain/mcp/index.js +22 -0
  40. package/dist/domain/mcp/index.js.map +1 -0
  41. package/dist/domain/mcp/inputs.d.ts +58 -0
  42. package/dist/domain/mcp/inputs.d.ts.map +1 -0
  43. package/dist/domain/mcp/inputs.js +59 -0
  44. package/dist/domain/mcp/inputs.js.map +1 -0
  45. package/dist/domain/primitive/types.d.ts +11 -1
  46. package/dist/domain/primitive/types.d.ts.map +1 -1
  47. package/dist/domain/primitive/types.js +60 -1
  48. package/dist/domain/primitive/types.js.map +1 -1
  49. package/dist/domain/source/types.d.ts +1 -1
  50. package/dist/domain/source/types.d.ts.map +1 -1
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +13 -1
  54. package/dist/index.js.map +1 -1
  55. package/dist/ports/azure-devops-api.d.ts +19 -0
  56. package/dist/ports/azure-devops-api.d.ts.map +1 -0
  57. package/dist/ports/azure-devops-api.js +10 -0
  58. package/dist/ports/azure-devops-api.js.map +1 -0
  59. package/dist/ports/filesystem.d.ts +11 -0
  60. package/dist/ports/filesystem.d.ts.map +1 -1
  61. package/dist/ports/index.d.ts +3 -0
  62. package/dist/ports/index.d.ts.map +1 -1
  63. package/dist/ports/index.js +3 -0
  64. package/dist/ports/index.js.map +1 -1
  65. package/dist/ports/log-sink.d.ts +18 -0
  66. package/dist/ports/log-sink.d.ts.map +1 -0
  67. package/dist/ports/log-sink.js +14 -0
  68. package/dist/ports/log-sink.js.map +1 -0
  69. package/dist/ports/primitive-index-store.d.ts +29 -0
  70. package/dist/ports/primitive-index-store.d.ts.map +1 -0
  71. package/dist/ports/primitive-index-store.js +3 -0
  72. package/dist/ports/primitive-index-store.js.map +1 -0
  73. package/dist/ports/target-writer.d.ts +40 -0
  74. package/dist/ports/target-writer.d.ts.map +1 -1
  75. package/dist/public/schemas/collection.schema.json +26 -2
  76. package/dist/public/schemas/deployment-manifest.schema.json +254 -0
  77. package/dist/public/schemas/hub-config.schema.json +4 -2
  78. package/package.json +8 -8
@@ -0,0 +1,254 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/AmadeusITGroup/ai-primitives-hub/schemas/deployment-manifest.schema.json",
4
+ "title": "AI Primitives Hub release deployment manifest",
5
+ "description": "Versioned, self-contained release archive manifest. Legacy manifests without formatVersion remain compatibility content and are validated by the runtime compatibility validator.",
6
+ "type": "object",
7
+ "required": [
8
+ "formatVersion",
9
+ "id",
10
+ "version",
11
+ "name",
12
+ "items",
13
+ "files",
14
+ "provenance"
15
+ ],
16
+ "properties": {
17
+ "formatVersion": {
18
+ "const": 1,
19
+ "description": "Version of the self-contained release manifest contract."
20
+ },
21
+ "id": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "version": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "name": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "description": {
34
+ "type": "string"
35
+ },
36
+ "author": {
37
+ "type": "string"
38
+ },
39
+ "tags": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "environments": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "readme": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "license": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ },
59
+ "repository": {
60
+ "type": "string"
61
+ },
62
+ "items": {
63
+ "type": "array",
64
+ "items": {
65
+ "$ref": "#/definitions/item"
66
+ }
67
+ },
68
+ "prompts": {
69
+ "type": "array",
70
+ "description": "Legacy compatibility projection of canonical items.",
71
+ "items": {
72
+ "$ref": "#/definitions/legacyItem"
73
+ }
74
+ },
75
+ "files": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/definitions/file"
79
+ }
80
+ },
81
+ "provenance": {
82
+ "$ref": "#/definitions/provenance"
83
+ },
84
+ "dependencies": {
85
+ "type": "array"
86
+ },
87
+ "mcpServers": {
88
+ "type": "object"
89
+ },
90
+ "mcpInputs": {
91
+ "type": "array"
92
+ }
93
+ },
94
+ "additionalProperties": true,
95
+ "definitions": {
96
+ "bundlePath": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
100
+ },
101
+ "item": {
102
+ "type": "object",
103
+ "required": [
104
+ "id",
105
+ "path",
106
+ "kind"
107
+ ],
108
+ "properties": {
109
+ "id": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "path": {
114
+ "$ref": "#/definitions/bundlePath"
115
+ },
116
+ "kind": {
117
+ "type": "string",
118
+ "enum": [
119
+ "prompt",
120
+ "instruction",
121
+ "chat-mode",
122
+ "agent",
123
+ "skill",
124
+ "plugin",
125
+ "hook",
126
+ "mcp-server",
127
+ "steering",
128
+ "spec",
129
+ "command",
130
+ "rule",
131
+ "output-style",
132
+ "tool",
133
+ "power",
134
+ "knowledge",
135
+ "playbook"
136
+ ]
137
+ },
138
+ "name": {
139
+ "type": "string"
140
+ },
141
+ "description": {
142
+ "type": "string"
143
+ },
144
+ "tags": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false
152
+ },
153
+ "legacyItem": {
154
+ "type": "object",
155
+ "required": [
156
+ "id",
157
+ "file",
158
+ "type"
159
+ ],
160
+ "properties": {
161
+ "id": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "file": {
166
+ "$ref": "#/definitions/bundlePath"
167
+ },
168
+ "type": {
169
+ "type": "string",
170
+ "minLength": 1
171
+ },
172
+ "name": {
173
+ "type": "string"
174
+ },
175
+ "description": {
176
+ "type": "string"
177
+ },
178
+ "tags": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ }
183
+ }
184
+ },
185
+ "additionalProperties": false
186
+ },
187
+ "file": {
188
+ "type": "object",
189
+ "required": [
190
+ "path",
191
+ "role",
192
+ "size",
193
+ "sha256"
194
+ ],
195
+ "properties": {
196
+ "path": {
197
+ "$ref": "#/definitions/bundlePath"
198
+ },
199
+ "role": {
200
+ "type": "string",
201
+ "enum": [
202
+ "installable",
203
+ "metadata",
204
+ "ignored"
205
+ ]
206
+ },
207
+ "size": {
208
+ "type": "integer",
209
+ "minimum": 0
210
+ },
211
+ "sha256": {
212
+ "type": "string",
213
+ "pattern": "^sha256:[a-f0-9]{64}$"
214
+ }
215
+ },
216
+ "additionalProperties": false
217
+ },
218
+ "provenance": {
219
+ "type": "object",
220
+ "required": [
221
+ "source",
222
+ "revision",
223
+ "collectionPath",
224
+ "sourceSnapshotPath",
225
+ "license",
226
+ "licensePath"
227
+ ],
228
+ "properties": {
229
+ "source": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ },
233
+ "revision": {
234
+ "type": "string",
235
+ "minLength": 1
236
+ },
237
+ "collectionPath": {
238
+ "$ref": "#/definitions/bundlePath"
239
+ },
240
+ "sourceSnapshotPath": {
241
+ "$ref": "#/definitions/bundlePath"
242
+ },
243
+ "license": {
244
+ "type": "string",
245
+ "minLength": 1
246
+ },
247
+ "licensePath": {
248
+ "$ref": "#/definitions/bundlePath"
249
+ }
250
+ },
251
+ "additionalProperties": true
252
+ }
253
+ }
254
+ }
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "type": {
78
78
  "type": "string",
79
- "description": "Type of the source repository (github, local, awesome-copilot, local-awesome-copilot, apm, local-apm, skills)",
79
+ "description": "Type of the source repository (github, local, awesome-copilot, local-awesome-copilot, apm, local-apm, skills, local-skills, azure-devops)",
80
80
  "enum": [
81
81
  "github",
82
82
  "local",
@@ -84,7 +84,9 @@
84
84
  "local-awesome-copilot",
85
85
  "apm",
86
86
  "local-apm",
87
- "skills"
87
+ "skills",
88
+ "local-skills",
89
+ "azure-devops"
88
90
  ]
89
91
  },
90
92
  "url": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-primitives-hub/core",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.1.0",
4
4
  "description": "Core domain types and port interfaces for AI Primitives Hub. No dependency on other @ai-primitives-hub packages.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,19 +24,19 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "js-yaml": "^4.1.1",
28
- "semver": "^7.5.4"
27
+ "js-yaml": "^4.3.1",
28
+ "semver": "^7.8.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/js-yaml": "^4.0.9",
32
- "@types/node": "^22.0.0",
33
- "@types/semver": "^7.5.6",
34
- "@vitest/coverage-v8": "^4.1.7",
32
+ "@types/node": "^22.20.1",
33
+ "@types/semver": "^7.7.1",
34
+ "@vitest/coverage-v8": "^4.1.10",
35
35
  "typescript": "^5.9.3",
36
- "vitest": "^4.1.7"
36
+ "vitest": "^4.1.10"
37
37
  },
38
38
  "engines": {
39
- "node": ">=18.0.0"
39
+ "node": ">=24.0.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc",