Skip to content

Commit 0656679

Browse files
committed
chore: add JSON schema for software.json
1 parent 75892d1 commit 0656679

File tree

5 files changed

+261
-129
lines changed

5 files changed

+261
-129
lines changed

resources/prompts.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ $schema: 'https://raw.githubusercontent.com/context-hub/generator/refs/heads/mai
44

55
import:
66
- path: ./prompts/cover-class-by-docs.yaml
7+
- path: ./prompts/xml-json-schema-update.yaml
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
$schema: 'https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json'
4+
5+
prompts:
6+
- id: xml-json-schema-update
7+
description: Update XML and JSON schema for DLOAD config files
8+
messages:
9+
- role: user
10+
content: |
11+
Look at `dload.xml`. It's an example of a DLOAD XML config file.
12+
13+
1. Need to sync `dload.xsd` wit the `dload.xml` file and configs from `src/Module/Common/Config` folder.
14+
Read all of them and update the `dload.xsd` file.
15+
2. If there are any changes in the XML schema, update the `resources/software.schema.json` that
16+
describes the `software` section of the DLOAD XML config file but for json format.

resources/software.json

Lines changed: 131 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,140 @@
1-
[
2-
{
3-
"name": "RoadRunner",
4-
"alias": "rr",
5-
"binary": {
6-
"name": "rr",
7-
"pattern": "/^(roadrunner|rr)(?:\\.exe)?$/",
8-
"version-command": "--version"
1+
{
2+
"$schema": "./software.schema.json",
3+
"software": [
4+
{
5+
"name": "RoadRunner",
6+
"alias": "rr",
7+
"binary": {
8+
"name": "rr",
9+
"pattern": "/^(roadrunner|rr)(?:\\.exe)?$/",
10+
"version-command": "--version"
11+
},
12+
"homepage": "https://roadrunner.dev",
13+
"description": "High-performance PHP application server, load-balancer and process manager written in Golang",
14+
"repositories": [
15+
{
16+
"type": "github",
17+
"uri": "roadrunner-server/roadrunner",
18+
"asset-pattern": "/^roadrunner-.*/"
19+
}
20+
]
921
},
10-
"homepage": "https://roadrunner.dev",
11-
"description": "High-performance PHP application server, load-balancer and process manager written in Golang",
12-
"repositories": [
13-
{
14-
"type": "github",
15-
"uri": "roadrunner-server/roadrunner",
16-
"asset-pattern": "/^roadrunner-.*/"
22+
{
23+
"name": "Temporal",
24+
"alias": "temporal",
25+
"description": "Temporal SDK",
26+
"homepage": "https://temporal.io",
27+
"repositories": [
28+
{
29+
"type": "github",
30+
"uri": "temporalio/cli",
31+
"asset-pattern": "/^temporal_cli_.*/"
32+
}
33+
],
34+
"binary": {
35+
"name": "temporal",
36+
"version-command": "--version"
1737
}
18-
]
19-
},
20-
{
21-
"name": "Temporal",
22-
"alias": "temporal",
23-
"description": "Temporal SDK",
24-
"homepage": "https://temporal.io",
25-
"repositories": [
26-
{
27-
"type": "github",
28-
"uri": "temporalio/cli",
29-
"asset-pattern": "/^temporal_cli_.*/"
30-
}
31-
],
32-
"binary": {
33-
"name": "temporal",
34-
"version-command": "--version"
35-
}
36-
},
37-
{
38-
"name": "Dolt",
39-
"alias": "dolt",
40-
"description": "Dolt is a SQL database that you can fork, clone, branch, merge, push and pull just like a git repository.",
41-
"homepage": "https://www.dolthub.com",
42-
"repositories": [
43-
{
44-
"type": "github",
45-
"uri": "dolthub/dolt",
46-
"asset-pattern": "/^dolt-.*/"
38+
},
39+
{
40+
"name": "Dolt",
41+
"alias": "dolt",
42+
"description": "Dolt is a SQL database that you can fork, clone, branch, merge, push and pull just like a git repository.",
43+
"homepage": "https://www.dolthub.com",
44+
"repositories": [
45+
{
46+
"type": "github",
47+
"uri": "dolthub/dolt",
48+
"asset-pattern": "/^dolt-.*/"
49+
}
50+
],
51+
"binary": {
52+
"name": "dolt",
53+
"version-command": "--version"
4754
}
48-
],
49-
"binary": {
50-
"name": "dolt",
51-
"version-command": "--version"
52-
}
53-
},
54-
{
55-
"name": "ProtoC PHP gRPC Plugin",
56-
"alias": "protoc-gen-php-grpc",
57-
"description": "Protobuf PHP gRPC generator plugin",
58-
"repositories": [
59-
{
60-
"type": "github",
61-
"uri": "roadrunner-server/roadrunner",
62-
"asset-pattern": "/^protoc-gen-php-grpc-.*/"
55+
},
56+
{
57+
"name": "ProtoC PHP gRPC Plugin",
58+
"alias": "protoc-gen-php-grpc",
59+
"description": "Protobuf PHP gRPC generator plugin",
60+
"repositories": [
61+
{
62+
"type": "github",
63+
"uri": "roadrunner-server/roadrunner",
64+
"asset-pattern": "/^protoc-gen-php-grpc-.*/"
65+
}
66+
],
67+
"binary": {
68+
"name": "protoc-gen-php-grpc"
6369
}
64-
],
65-
"binary": {
66-
"name": "protoc-gen-php-grpc"
67-
}
68-
},
69-
{
70-
"name": "Protobuf compiler",
71-
"alias": "protoc",
72-
"homepage": "https://protobuf.dev/",
73-
"repositories": [
74-
{
75-
"type": "github",
76-
"uri": "protocolbuffers/protobuf",
77-
"asset-pattern": "/^protoc-.*/"
70+
},
71+
{
72+
"name": "Protobuf compiler",
73+
"alias": "protoc",
74+
"homepage": "https://protobuf.dev/",
75+
"repositories": [
76+
{
77+
"type": "github",
78+
"uri": "protocolbuffers/protobuf",
79+
"asset-pattern": "/^protoc-.*/"
80+
}
81+
],
82+
"binary": {
83+
"name": "protoc",
84+
"version-command": "--version"
7885
}
79-
],
80-
"binary": {
81-
"name": "protoc",
82-
"version-command": "--version"
83-
}
84-
},
85-
{
86-
"name": "TigerBeetle ",
87-
"alias": "tigerbeetle",
88-
"description": "TigerBeetle is a financial transactions database designed for mission critical safety and performance to power the next 30 years of OLTP.",
89-
"homepage": "https://tigerbeetle.com/",
90-
"repositories": [
91-
{
92-
"type": "github",
93-
"uri": "tigerbeetle/tigerbeetle",
94-
"asset-pattern": "/^tigerbeetle-.*/"
86+
},
87+
{
88+
"name": "TigerBeetle ",
89+
"alias": "tigerbeetle",
90+
"description": "TigerBeetle is a financial transactions database designed for mission critical safety and performance to power the next 30 years of OLTP.",
91+
"homepage": "https://tigerbeetle.com/",
92+
"repositories": [
93+
{
94+
"type": "github",
95+
"uri": "tigerbeetle/tigerbeetle",
96+
"asset-pattern": "/^tigerbeetle-.*/"
97+
}
98+
],
99+
"binary": {
100+
"name": "tigerbeetle",
101+
"version-command": "version"
95102
}
96-
],
97-
"binary": {
98-
"name": "tigerbeetle",
99-
"version-command": "version"
100-
}
101-
},
102-
{
103-
"name": "CTX",
104-
"alias": "ctx",
105-
"description": "Context generator and MCP server",
106-
"homepage": "https://docs.ctxgithub.com/",
107-
"repositories": [
108-
{
109-
"type": "github",
110-
"uri": "context-hub/generator",
111-
"asset-pattern": "/^ctx-.*/"
103+
},
104+
{
105+
"name": "CTX",
106+
"alias": "ctx",
107+
"description": "Context generator and MCP server",
108+
"homepage": "https://docs.ctxgithub.com/",
109+
"repositories": [
110+
{
111+
"type": "github",
112+
"uri": "context-hub/generator",
113+
"asset-pattern": "/^ctx-.*/"
114+
}
115+
],
116+
"binary": {
117+
"name": "ctx",
118+
"pattern": "/^ctx-.*$/",
119+
"version-command": "--version"
112120
}
113-
],
114-
"binary": {
115-
"name": "ctx",
116-
"pattern": "/^ctx-.*$/",
117-
"version-command": "--version"
118-
}
119-
},
120-
{
121-
"name": "Trap",
122-
"alias": "trap",
123-
"description": "A minimized version of the Buggregator Server that does not require Docker and is intended solely for local use.\n",
124-
"homepage": "https://buggregator.dev/",
125-
"repositories": [
126-
{
127-
"type": "github",
128-
"uri": "buggregator/trap",
129-
"asset-pattern": "/^trap-.*/"
121+
},
122+
{
123+
"name": "Trap",
124+
"alias": "trap",
125+
"description": "A minimized version of the Buggregator Server that does not require Docker and is intended solely for local use.\n",
126+
"homepage": "https://buggregator.dev/",
127+
"repositories": [
128+
{
129+
"type": "github",
130+
"uri": "buggregator/trap",
131+
"asset-pattern": "/^trap-.*/"
132+
}
133+
],
134+
"binary": {
135+
"name": "trap",
136+
"version-command": "--version"
130137
}
131-
],
132-
"binary": {
133-
"name": "trap",
134-
"version-command": "--version"
135138
}
136-
}
137-
]
139+
]
140+
}

0 commit comments

Comments
 (0)