@basou/core 0.5.0 → 0.7.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/dist/index.d.ts +110 -6
- package/dist/index.js +172 -11
- package/dist/index.js.map +1 -1
- package/package.json +12 -4
- package/schemas/approval.schema.json +130 -0
- package/schemas/event.schema.json +1188 -0
- package/schemas/manifest.schema.json +164 -0
- package/schemas/session-import.schema.json +1415 -0
- package/schemas/session.schema.json +228 -0
- package/schemas/status.schema.json +85 -0
- package/schemas/task-index.schema.json +61 -0
- package/schemas/task.schema.json +82 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://basou.dev/schemas/0.1.0/manifest.schema.json",
|
|
4
|
+
"title": "Basou Manifest",
|
|
5
|
+
"description": "The `.basou/manifest.yaml` workspace manifest.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema_version": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "0.1.0"
|
|
11
|
+
},
|
|
12
|
+
"basou_version": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "0.1.0"
|
|
15
|
+
},
|
|
16
|
+
"workspace": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^ws_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
|
|
22
|
+
"description": "Basou ws id: `ws_` followed by a 26-character Crockford Base32 ULID."
|
|
23
|
+
},
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1
|
|
27
|
+
},
|
|
28
|
+
"created_at": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time",
|
|
31
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
32
|
+
},
|
|
33
|
+
"updated_at": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "date-time",
|
|
36
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"id",
|
|
41
|
+
"name",
|
|
42
|
+
"created_at",
|
|
43
|
+
"updated_at"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"project": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"name": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"description": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"repository_url": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "null"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"capabilities": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"enabled": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"enabled"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"approval": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"required_for": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"default_risk_level": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"low",
|
|
94
|
+
"medium",
|
|
95
|
+
"high",
|
|
96
|
+
"critical"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"default_risk_level"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"adapters": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"claude-code": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"enabled": {
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
"config_path": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"enabled"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"claude-code"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"git": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"events_log": {
|
|
130
|
+
"default": "ignore",
|
|
131
|
+
"type": "string",
|
|
132
|
+
"enum": [
|
|
133
|
+
"ignore",
|
|
134
|
+
"commit"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"import": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"source_roots": {
|
|
143
|
+
"minItems": 1,
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"minLength": 1,
|
|
148
|
+
"pattern": "^(?![~/\\\\])(?![A-Za-z]:)[^\\0\\\\]+$"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"schema_version",
|
|
156
|
+
"basou_version",
|
|
157
|
+
"workspace",
|
|
158
|
+
"project",
|
|
159
|
+
"capabilities",
|
|
160
|
+
"approval",
|
|
161
|
+
"adapters",
|
|
162
|
+
"git"
|
|
163
|
+
]
|
|
164
|
+
}
|