@agpm/core 0.0.2 → 0.1.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/cache.d.ts +38 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +118 -0
- package/dist/cache.js.map +1 -0
- package/dist/config.d.ts +46 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +56 -16
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts +63 -11
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +189 -77
- package/dist/discovery.js.map +1 -1
- package/dist/git.d.ts +25 -23
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +130 -42
- package/dist/git.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/targets.d.ts +46 -0
- package/dist/targets.d.ts.map +1 -0
- package/dist/targets.js +84 -0
- package/dist/targets.js.map +1 -0
- package/dist/validate.js +2 -2
- package/dist/validate.js.map +1 -1
- package/package.json +13 -2
- package/schemas/agpm-lock.json +66 -0
- package/schemas/agpm.json +99 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://agpm.dev/schemas/agpm.json",
|
|
4
|
+
"title": "AGPM Configuration",
|
|
5
|
+
"description": "Configuration file for the Agent Package Manager",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "JSON Schema reference"
|
|
11
|
+
},
|
|
12
|
+
"targets": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"description": "AI tools to install artifacts to. Only install to targets that are listed.",
|
|
15
|
+
"propertyNames": {
|
|
16
|
+
"enum": ["claude-code", "opencode", "codex"]
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": {
|
|
19
|
+
"oneOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Enable (true) or disable (false) this target"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Target-specific configuration options (currently empty)",
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"examples": [
|
|
32
|
+
{
|
|
33
|
+
"claude-code": true,
|
|
34
|
+
"opencode": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"claude-code": {},
|
|
38
|
+
"opencode": {}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"sources": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Git repositories or local paths containing artifacts",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"description": "Source configuration",
|
|
48
|
+
"properties": {
|
|
49
|
+
"name": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Display name for the source (e.g., 'anthropics/skills')"
|
|
52
|
+
},
|
|
53
|
+
"url": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Full git URL for cloning"
|
|
56
|
+
},
|
|
57
|
+
"format": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": ["auto", "claude-marketplace", "claude-plugin", "simple"],
|
|
60
|
+
"description": "Format for artifact discovery. Defaults to 'auto' if omitted."
|
|
61
|
+
},
|
|
62
|
+
"subdir": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Subdirectory within the repo to use as root"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": ["name", "url"],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"collections": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"description": "Collection references (expand to their artifacts at install time)",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "Collection reference in format: source/collection-name",
|
|
77
|
+
"examples": [
|
|
78
|
+
"anthropics/skills/office-suite",
|
|
79
|
+
"my-org/plugins/productivity"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"artifacts": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"description": "Individual artifact references to install",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "Artifact reference in format: source/name[@version]",
|
|
89
|
+
"examples": [
|
|
90
|
+
"anthropics/skills/pdf",
|
|
91
|
+
"anthropics/skills/pdf@1.0.0",
|
|
92
|
+
"anthropics/skills#experimental/new-skill@latest"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": ["targets", "sources", "artifacts"],
|
|
98
|
+
"additionalProperties": false
|
|
99
|
+
}
|