operbe 0.0.0-stage → 1.0.0-rc.2
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/LICENSE +21 -0
- package/README.md +106 -2
- package/conformance/describe/edge/body.json +1 -0
- package/conformance/describe/edge/digest +1 -0
- package/conformance/describe/edge/project/acme/architecture.md +18 -0
- package/conformance/describe/edge/project/behaviors/B-7.md +15 -0
- package/conformance/describe/edge/project/behaviors/coverage/web.md +8 -0
- package/conformance/describe/edge/project/operations/broken-file.md +1 -0
- package/conformance/describe/edge/project/operations/read-note.md +4 -0
- package/conformance/describe/edge/project/operations/send-note.md +20 -0
- package/conformance/describe/edge/project/operbe.md +15 -0
- package/conformance/describe/example/body.json +1 -0
- package/conformance/describe/example/digest +1 -0
- package/conformance/describe/example/project/behaviors/B-0001.md +36 -0
- package/conformance/describe/example/project/behaviors/B-0002.md +21 -0
- package/conformance/describe/example/project/behaviors/B-0003.md +19 -0
- package/conformance/describe/example/project/behaviors/B-0004.md +18 -0
- package/conformance/describe/example/project/behaviors/B-0005.md +18 -0
- package/conformance/describe/example/project/behaviors/coverage/desktop.md +8 -0
- package/conformance/describe/example/project/behaviors/coverage/phone.md +12 -0
- package/conformance/describe/example/project/client-actions/archive-conversation.md +22 -0
- package/conformance/describe/example/project/client-actions/show-conversations.md +21 -0
- package/conformance/describe/example/project/client-actions/start-retitle.md +22 -0
- package/conformance/describe/example/project/client-actions/unarchive-conversation.md +21 -0
- package/conformance/describe/example/project/operations/archive-conversation.md +16 -0
- package/conformance/describe/example/project/operations/list-conversations.md +16 -0
- package/conformance/describe/example/project/operations/set-conversation-title.md +16 -0
- package/conformance/describe/example/project/operations/unarchive-conversation.md +16 -0
- package/conformance/describe/example/project/operbe.md +15 -0
- package/conformance/diff/core/a/behaviors/B-0001.md +36 -0
- package/conformance/diff/core/a/behaviors/B-0002.md +21 -0
- package/conformance/diff/core/a/behaviors/B-0003.md +19 -0
- package/conformance/diff/core/a/behaviors/B-0004.md +18 -0
- package/conformance/diff/core/a/behaviors/B-0005.md +18 -0
- package/conformance/diff/core/a/behaviors/coverage/desktop.md +8 -0
- package/conformance/diff/core/a/behaviors/coverage/phone.md +12 -0
- package/conformance/diff/core/a/client-actions/archive-conversation.md +22 -0
- package/conformance/diff/core/a/client-actions/show-conversations.md +21 -0
- package/conformance/diff/core/a/client-actions/start-retitle.md +22 -0
- package/conformance/diff/core/a/client-actions/unarchive-conversation.md +21 -0
- package/conformance/diff/core/a/operations/archive-conversation.md +16 -0
- package/conformance/diff/core/a/operations/list-conversations.md +16 -0
- package/conformance/diff/core/a/operations/set-conversation-title.md +16 -0
- package/conformance/diff/core/a/operations/unarchive-conversation.md +16 -0
- package/conformance/diff/core/a/operbe.md +15 -0
- package/conformance/diff/core/b/behaviors/B-0001.md +36 -0
- package/conformance/diff/core/b/behaviors/B-0002.md +22 -0
- package/conformance/diff/core/b/behaviors/B-0003.md +19 -0
- package/conformance/diff/core/b/behaviors/B-0004.md +18 -0
- package/conformance/diff/core/b/behaviors/B-0005.md +18 -0
- package/conformance/diff/core/b/behaviors/coverage/desktop.md +8 -0
- package/conformance/diff/core/b/behaviors/coverage/phone.md +12 -0
- package/conformance/diff/core/b/client-actions/archive-conversation.md +22 -0
- package/conformance/diff/core/b/client-actions/show-conversations.md +21 -0
- package/conformance/diff/core/b/client-actions/unarchive-conversation.md +21 -0
- package/conformance/diff/core/b/operations/archive-conversation.md +16 -0
- package/conformance/diff/core/b/operations/list-conversations.md +16 -0
- package/conformance/diff/core/b/operations/set-conversation-name.md +16 -0
- package/conformance/diff/core/b/operations/unarchive-conversation.md +16 -0
- package/conformance/diff/core/b/operbe.md +16 -0
- package/conformance/diff/core/changes.json +192 -0
- package/conformance/diff/declared/a/acme/architecture.md +18 -0
- package/conformance/diff/declared/a/behaviors/B-7.md +15 -0
- package/conformance/diff/declared/a/behaviors/coverage/web.md +8 -0
- package/conformance/diff/declared/a/operations/broken-file.md +1 -0
- package/conformance/diff/declared/a/operations/read-note.md +4 -0
- package/conformance/diff/declared/a/operations/send-note.md +20 -0
- package/conformance/diff/declared/a/operbe.md +15 -0
- package/conformance/diff/declared/b/acme/architecture.md +18 -0
- package/conformance/diff/declared/b/behaviors/B-7.md +15 -0
- package/conformance/diff/declared/b/behaviors/coverage/web.md +8 -0
- package/conformance/diff/declared/b/operations/broken-file.md +1 -0
- package/conformance/diff/declared/b/operations/read-note.md +5 -0
- package/conformance/diff/declared/b/operations/send-note.md +19 -0
- package/conformance/diff/declared/b/operbe.md +15 -0
- package/conformance/diff/declared/changes.json +73 -0
- package/conformance/diff/reworded/a/behaviors/B-0001.md +36 -0
- package/conformance/diff/reworded/a/behaviors/B-0002.md +21 -0
- package/conformance/diff/reworded/a/behaviors/B-0003.md +19 -0
- package/conformance/diff/reworded/a/behaviors/B-0004.md +18 -0
- package/conformance/diff/reworded/a/behaviors/B-0005.md +18 -0
- package/conformance/diff/reworded/a/behaviors/coverage/desktop.md +8 -0
- package/conformance/diff/reworded/a/behaviors/coverage/phone.md +12 -0
- package/conformance/diff/reworded/a/client-actions/archive-conversation.md +22 -0
- package/conformance/diff/reworded/a/client-actions/show-conversations.md +21 -0
- package/conformance/diff/reworded/a/client-actions/start-retitle.md +22 -0
- package/conformance/diff/reworded/a/client-actions/unarchive-conversation.md +21 -0
- package/conformance/diff/reworded/a/operations/archive-conversation.md +16 -0
- package/conformance/diff/reworded/a/operations/list-conversations.md +16 -0
- package/conformance/diff/reworded/a/operations/set-conversation-title.md +16 -0
- package/conformance/diff/reworded/a/operations/unarchive-conversation.md +16 -0
- package/conformance/diff/reworded/a/operbe.md +18 -0
- package/conformance/diff/reworded/b/behaviors/B-0001.md +36 -0
- package/conformance/diff/reworded/b/behaviors/B-0002.md +21 -0
- package/conformance/diff/reworded/b/behaviors/B-0003.md +19 -0
- package/conformance/diff/reworded/b/behaviors/B-0004.md +18 -0
- package/conformance/diff/reworded/b/behaviors/B-0005.md +18 -0
- package/conformance/diff/reworded/b/behaviors/coverage/desktop.md +8 -0
- package/conformance/diff/reworded/b/behaviors/coverage/phone.md +12 -0
- package/conformance/diff/reworded/b/client-actions/archive-conversation.md +22 -0
- package/conformance/diff/reworded/b/client-actions/show-conversations.md +21 -0
- package/conformance/diff/reworded/b/client-actions/start-retitle.md +22 -0
- package/conformance/diff/reworded/b/client-actions/unarchive-conversation.md +21 -0
- package/conformance/diff/reworded/b/operations/archive-conversation.md +16 -0
- package/conformance/diff/reworded/b/operations/list-conversations.md +16 -0
- package/conformance/diff/reworded/b/operations/set-conversation-title.md +16 -0
- package/conformance/diff/reworded/b/operations/unarchive-conversation.md +16 -0
- package/conformance/diff/reworded/b/operbe.md +18 -0
- package/conformance/diff/reworded/changes.json +43 -0
- package/dist/check.d.ts +21 -0
- package/dist/check.js +422 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +272 -0
- package/dist/describe.d.ts +22 -0
- package/dist/describe.js +201 -0
- package/dist/diff.d.ts +13 -0
- package/dist/diff.js +249 -0
- package/dist/findings.d.ts +11 -0
- package/dist/findings.js +6 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +11 -0
- package/dist/indexes.d.ts +2 -0
- package/dist/indexes.js +27 -0
- package/dist/jcs.d.ts +1 -0
- package/dist/jcs.js +16 -0
- package/dist/jj.d.ts +12 -0
- package/dist/jj.js +82 -0
- package/dist/read.d.ts +83 -0
- package/dist/read.js +249 -0
- package/dist/reconcile.d.ts +9 -0
- package/dist/reconcile.js +46 -0
- package/dist/source.d.ts +5 -0
- package/dist/source.js +29 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/package.json +40 -4
- package/schema/description.schema.json +481 -0
- package/skills/operbe/SKILL.md +69 -0
- package/skills/operbe/example/behaviors/B-0001.md +36 -0
- package/skills/operbe/example/behaviors/B-0002.md +21 -0
- package/skills/operbe/example/behaviors/B-0003.md +19 -0
- package/skills/operbe/example/behaviors/B-0004.md +18 -0
- package/skills/operbe/example/behaviors/B-0005.md +18 -0
- package/skills/operbe/example/behaviors/coverage/desktop.md +8 -0
- package/skills/operbe/example/behaviors/coverage/phone.md +12 -0
- package/skills/operbe/example/client-actions/archive-conversation.md +22 -0
- package/skills/operbe/example/client-actions/show-conversations.md +21 -0
- package/skills/operbe/example/client-actions/start-retitle.md +22 -0
- package/skills/operbe/example/client-actions/unarchive-conversation.md +21 -0
- package/skills/operbe/example/operations/archive-conversation.md +16 -0
- package/skills/operbe/example/operations/list-conversations.md +16 -0
- package/skills/operbe/example/operations/set-conversation-title.md +16 -0
- package/skills/operbe/example/operations/unarchive-conversation.md +16 -0
- package/skills/operbe/example/operbe.md +15 -0
- package/skills/operbe/references/adopting.md +48 -0
- package/skills/operbe/references/behaviors.md +168 -0
- package/skills/operbe/references/client-actions.md +211 -0
- package/skills/operbe/references/formats.md +408 -0
- package/skills/operbe/references/operations.md +146 -0
- package/skills/operbe/references/tandem.md +69 -0
- package/skills/operbe/templates/behavior.md +18 -0
- package/skills/operbe/templates/client-action.md +20 -0
- package/skills/operbe/templates/coverage.md +4 -0
- package/skills/operbe/templates/operation.md +14 -0
- package/skills/operbe/templates/operbe.md +10 -0
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://operbe.dev/schema/description-1.json",
|
|
4
|
+
"title": "operbe description, format 1",
|
|
5
|
+
"description": "What `operbe describe` prints. `body` is hashed (SHA-256 of its RFC 8785 bytes, in `digest`); `derived` and `findings` are not. See formats.md, \"The description\".",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"format",
|
|
9
|
+
"body",
|
|
10
|
+
"digest",
|
|
11
|
+
"derived",
|
|
12
|
+
"findings"
|
|
13
|
+
],
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"format": {
|
|
17
|
+
"const": "operbe.description/1"
|
|
18
|
+
},
|
|
19
|
+
"digest": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
22
|
+
},
|
|
23
|
+
"body": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"profile": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"properties": {
|
|
31
|
+
"operbe": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"uis": {
|
|
35
|
+
"$ref": "#/$defs/names"
|
|
36
|
+
},
|
|
37
|
+
"architectures": {
|
|
38
|
+
"$ref": "#/$defs/names"
|
|
39
|
+
},
|
|
40
|
+
"sections": {
|
|
41
|
+
"$ref": "#/$defs/sections"
|
|
42
|
+
},
|
|
43
|
+
"ext": {
|
|
44
|
+
"$ref": "#/$defs/ext"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"operations": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": {
|
|
51
|
+
"$ref": "#/$defs/operation"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"behaviors": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": {
|
|
57
|
+
"$ref": "#/$defs/behavior"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"client-actions": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": {
|
|
63
|
+
"$ref": "#/$defs/client-action"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"coverage": {
|
|
67
|
+
"description": "UI -> behavior id or client action name -> its row. A UI with no coverage file is absent.",
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"required": [
|
|
74
|
+
"value"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"properties": {
|
|
78
|
+
"value": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"form": {
|
|
82
|
+
"type": [
|
|
83
|
+
"integer",
|
|
84
|
+
"string"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"note": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"architectures": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"required": [
|
|
99
|
+
"fields",
|
|
100
|
+
"diff-rules"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"fields": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"required": [
|
|
109
|
+
"field",
|
|
110
|
+
"on",
|
|
111
|
+
"required"
|
|
112
|
+
],
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"properties": {
|
|
115
|
+
"field": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"on": {
|
|
119
|
+
"enum": [
|
|
120
|
+
"operation",
|
|
121
|
+
"behavior",
|
|
122
|
+
"client-action"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"required": {
|
|
126
|
+
"oneOf": [
|
|
127
|
+
{
|
|
128
|
+
"enum": [
|
|
129
|
+
"yes",
|
|
130
|
+
"no"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "object",
|
|
135
|
+
"required": [
|
|
136
|
+
"when",
|
|
137
|
+
"is"
|
|
138
|
+
],
|
|
139
|
+
"additionalProperties": false,
|
|
140
|
+
"properties": {
|
|
141
|
+
"when": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"is": {
|
|
145
|
+
"$ref": "#/$defs/names"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"values": {
|
|
152
|
+
"$ref": "#/$defs/names"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"diff-rules": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"required": [
|
|
162
|
+
"field",
|
|
163
|
+
"change",
|
|
164
|
+
"level"
|
|
165
|
+
],
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"properties": {
|
|
168
|
+
"field": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"change": {
|
|
172
|
+
"enum": [
|
|
173
|
+
"added",
|
|
174
|
+
"removed",
|
|
175
|
+
"changed"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"level": {
|
|
179
|
+
"enum": [
|
|
180
|
+
"breaking",
|
|
181
|
+
"warning",
|
|
182
|
+
"info"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"derived": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"tool": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"used-by": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"behaviors": {
|
|
205
|
+
"$ref": "#/$defs/names"
|
|
206
|
+
},
|
|
207
|
+
"client-actions": {
|
|
208
|
+
"$ref": "#/$defs/names"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"statuses": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"additionalProperties": {
|
|
216
|
+
"$ref": "#/$defs/counts"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"coverage": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"additionalProperties": {
|
|
222
|
+
"$ref": "#/$defs/counts"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"client-actions": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"required": [
|
|
230
|
+
"class",
|
|
231
|
+
"irreversible"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"class": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"risk": {
|
|
238
|
+
"enum": [
|
|
239
|
+
"reads",
|
|
240
|
+
"changes",
|
|
241
|
+
"changes-rights",
|
|
242
|
+
"destroys"
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"irreversible": {
|
|
246
|
+
"type": "boolean"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"findings": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"required": [
|
|
258
|
+
"rule",
|
|
259
|
+
"level",
|
|
260
|
+
"file",
|
|
261
|
+
"message"
|
|
262
|
+
],
|
|
263
|
+
"additionalProperties": false,
|
|
264
|
+
"properties": {
|
|
265
|
+
"rule": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"pattern": "^[a-z0-9-]+/[a-z0-9-]+$"
|
|
268
|
+
},
|
|
269
|
+
"level": {
|
|
270
|
+
"enum": [
|
|
271
|
+
"error",
|
|
272
|
+
"gap"
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"file": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"line": {
|
|
279
|
+
"type": "integer",
|
|
280
|
+
"minimum": 1
|
|
281
|
+
},
|
|
282
|
+
"record": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"field": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"message": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"$defs": {
|
|
296
|
+
"names": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"value": {
|
|
303
|
+
"oneOf": [
|
|
304
|
+
{
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"$ref": "#/$defs/names"
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"sections": {
|
|
313
|
+
"description": "In written order.",
|
|
314
|
+
"type": "array",
|
|
315
|
+
"items": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"required": [
|
|
318
|
+
"title",
|
|
319
|
+
"text"
|
|
320
|
+
],
|
|
321
|
+
"additionalProperties": false,
|
|
322
|
+
"properties": {
|
|
323
|
+
"title": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
"text": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"ext": {
|
|
333
|
+
"description": "Architecture fields as written: `chugg.op` is ext.chugg.op.",
|
|
334
|
+
"type": "object",
|
|
335
|
+
"additionalProperties": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"additionalProperties": {
|
|
338
|
+
"$ref": "#/$defs/value"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"counts": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"additionalProperties": {
|
|
345
|
+
"type": "integer",
|
|
346
|
+
"minimum": 0
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"common": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"description": "Header values are as written (operbe's checks say whether they are allowed). An empty value is absent.",
|
|
352
|
+
"properties": {
|
|
353
|
+
"sections": {
|
|
354
|
+
"$ref": "#/$defs/sections"
|
|
355
|
+
},
|
|
356
|
+
"ext": {
|
|
357
|
+
"$ref": "#/$defs/ext"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"operation": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"allOf": [
|
|
364
|
+
{
|
|
365
|
+
"$ref": "#/$defs/common"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"unevaluatedProperties": false,
|
|
369
|
+
"properties": {
|
|
370
|
+
"class": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"effect": {
|
|
374
|
+
"description": "From class alone: query reads, change changes, signal passes.",
|
|
375
|
+
"enum": [
|
|
376
|
+
"reads",
|
|
377
|
+
"changes",
|
|
378
|
+
"passes"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
"named-because": {
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"needs": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"safe-to-repeat": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
"taken-back-by": {
|
|
391
|
+
"type": "string"
|
|
392
|
+
},
|
|
393
|
+
"risk": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
},
|
|
396
|
+
"many-at-once": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"behavior": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"allOf": [
|
|
404
|
+
{
|
|
405
|
+
"$ref": "#/$defs/common"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"unevaluatedProperties": false,
|
|
409
|
+
"properties": {
|
|
410
|
+
"name": {
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
"status": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"form": {
|
|
417
|
+
"type": [
|
|
418
|
+
"integer",
|
|
419
|
+
"string"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"applies-to": {
|
|
423
|
+
"$ref": "#/$defs/value"
|
|
424
|
+
},
|
|
425
|
+
"operations": {
|
|
426
|
+
"$ref": "#/$defs/value"
|
|
427
|
+
},
|
|
428
|
+
"replaced-by": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
"client-actions": {
|
|
432
|
+
"type": "string"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"client-action": {
|
|
437
|
+
"type": "object",
|
|
438
|
+
"allOf": [
|
|
439
|
+
{
|
|
440
|
+
"$ref": "#/$defs/common"
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"unevaluatedProperties": false,
|
|
444
|
+
"properties": {
|
|
445
|
+
"class": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"status": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"form": {
|
|
452
|
+
"type": [
|
|
453
|
+
"integer",
|
|
454
|
+
"string"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
"behaviors": {
|
|
458
|
+
"$ref": "#/$defs/value"
|
|
459
|
+
},
|
|
460
|
+
"operations": {
|
|
461
|
+
"$ref": "#/$defs/value"
|
|
462
|
+
},
|
|
463
|
+
"show-because": {
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
"local": {
|
|
467
|
+
"type": "string"
|
|
468
|
+
},
|
|
469
|
+
"available-when": {
|
|
470
|
+
"type": "string"
|
|
471
|
+
},
|
|
472
|
+
"applies-to": {
|
|
473
|
+
"$ref": "#/$defs/value"
|
|
474
|
+
},
|
|
475
|
+
"replaced-by": {
|
|
476
|
+
"type": "string"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: operbe
|
|
3
|
+
description: The operations and behaviors method (operbe) for projects with a server and front ends (UI, MCP, command line, API). Use when a project has an operbe.md file or the user asks to use operbe. Covers adding, sizing or reviewing an operation (a server call or API endpoint, anything that crosses the server membrane), writing or changing a behavior (a UI spec item, anything the designer wants to hold true in a UI), adding a client action (a command a palette, a shortcut or an assistant can ask a UI to run) in an operbe project, building or checking a UI against the behavior list and its coverage, and adopting operbe in a project.
|
|
4
|
+
compatibility: The operbe command needs Node.js 22 or later (npx operbe). --at also needs jj.
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# operbe
|
|
10
|
+
|
|
11
|
+
operbe has each project keep two lists, and offers a third.
|
|
12
|
+
|
|
13
|
+
Operations are everything that crosses the server membrane. There is one set, every front end uses it, and it is code.
|
|
14
|
+
|
|
15
|
+
Behaviors are everything the designer wants to hold true in a UI. They are documentation that UIs are built from and checked against. Front ends that aren't UIs have no behaviors and go straight to operations.
|
|
16
|
+
|
|
17
|
+
The third list is optional. Client actions are everything a UI can be asked to do on its own screen, by a command palette, a shortcut or an assistant. They are code in the UI. Each is classed show, prepare or do, and each names the behavior it carries out.
|
|
18
|
+
|
|
19
|
+
The one rule: nothing crosses the membrane except an operation, and nothing the designer cares about in a UI is off the behavior list.
|
|
20
|
+
|
|
21
|
+
operbe covers how these are thought about, written down and checked. It doesn't prescribe architecture, language or tooling. Those belong to the project.
|
|
22
|
+
|
|
23
|
+
## Start here
|
|
24
|
+
|
|
25
|
+
Read the project's `operbe.md`. It says where the lists live, which UIs exist, what the project decided, and which rules it doesn't follow yet. If the project has no `operbe.md`, read `references/adopting.md`.
|
|
26
|
+
|
|
27
|
+
## Which reference to read
|
|
28
|
+
|
|
29
|
+
| You are about to | Read |
|
|
30
|
+
|---|---|
|
|
31
|
+
| work out a feature | `references/tandem.md` first; it sends you to the others as you need them |
|
|
32
|
+
| add, split, merge or question an operation | `references/operations.md` |
|
|
33
|
+
| add or change a behavior, or build or check a UI | `references/behaviors.md` |
|
|
34
|
+
| add a client action, build a command palette, or let an assistant work a UI | `references/client-actions.md` |
|
|
35
|
+
| write or edit a record file | `references/formats.md` |
|
|
36
|
+
| set operbe up in a project | `references/adopting.md` |
|
|
37
|
+
|
|
38
|
+
Read what the task needs and leave the rest. `example/` is a small project done this way, and `templates/` has blank copies of every file.
|
|
39
|
+
|
|
40
|
+
## While you work
|
|
41
|
+
|
|
42
|
+
- Work from one record at a time, plus the index (`npx operbe index`). Don't load the whole list.
|
|
43
|
+
- When you change what a UI does, update the behavior record and that UI's coverage line in the same change.
|
|
44
|
+
- If a UI does something the designer would care about and it isn't on the list, stop and raise it. Don't add or remove it yourself.
|
|
45
|
+
- Behaviors belong to the designer. Propose a change to a statement; don't rewrite one to match what was built.
|
|
46
|
+
- A client action does what doing it by hand does and stops at any review or confirmation. It never takes an input from the selection without naming it; a person's selection may fill a named input.
|
|
47
|
+
- Don't add a client action of class `do` without asking. Propose it.
|
|
48
|
+
- If a feature needs something the designer didn't ask for (a way to take an action back, say), ask before adding it.
|
|
49
|
+
|
|
50
|
+
## The operbe command
|
|
51
|
+
|
|
52
|
+
Run it from the project root (the folder with `operbe.md`), or give the root as the last argument.
|
|
53
|
+
|
|
54
|
+
| To | Run |
|
|
55
|
+
|---|---|
|
|
56
|
+
| see the behavior index, the coverage table and the client action index | `npx operbe index` |
|
|
57
|
+
| start a new record from its template (a behavior gets the next free id) | `npx operbe new behavior "<name>"`, `npx operbe new operation <name>`, `npx operbe new client-action <name>` |
|
|
58
|
+
| check the records | `npx operbe check` |
|
|
59
|
+
| see what changed between two versions, and how much it matters | `npx operbe diff --at main --at @` (jj), or `npx operbe diff <a> <b>` for two folders |
|
|
60
|
+
| compare the records with the names the code has | `npx operbe reconcile --kind operation --names <file>` |
|
|
61
|
+
| get everything as JSON, for a tool | `npx operbe describe` |
|
|
62
|
+
|
|
63
|
+
Never write an index or a coverage table into the project: `operbe index` prints them when needed. Exit codes and output are in `references/formats.md`, "The command line".
|
|
64
|
+
|
|
65
|
+
## Before you finish
|
|
66
|
+
|
|
67
|
+
Run `npx operbe check` (run it, don't read it) and fix every error it reports.
|
|
68
|
+
|
|
69
|
+
Lines marked `gap` are information: a behavior or a client action some UI hasn't built yet, a UI that differs from a record, or a behavior that sends a change and has no client action. They don't fail the check.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: B-0001
|
|
3
|
+
name: Archive a conversation
|
|
4
|
+
status: firm
|
|
5
|
+
form: 1
|
|
6
|
+
applies-to: all
|
|
7
|
+
operations: [archive-conversation, unarchive-conversation, list-conversations]
|
|
8
|
+
replaced-by:
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Statement
|
|
12
|
+
A person can put a conversation out of the way without deleting it. It leaves the active list at once, and for a few seconds the product offers Undo.
|
|
13
|
+
|
|
14
|
+
## Flow
|
|
15
|
+
1. The person chooses to archive a conversation.
|
|
16
|
+
2. The product removes it from the active list and says it was archived.
|
|
17
|
+
3. The product offers Undo for at least five seconds.
|
|
18
|
+
|
|
19
|
+
## Appears when
|
|
20
|
+
The person may change the conversation.
|
|
21
|
+
|
|
22
|
+
## Usable when
|
|
23
|
+
The conversation is not already archived. Otherwise it is shown but can't be used, with "Already archived."
|
|
24
|
+
|
|
25
|
+
## Undo
|
|
26
|
+
Returns the conversation to the active list, where it was.
|
|
27
|
+
|
|
28
|
+
## Examples
|
|
29
|
+
- **Usual.** Given an active conversation I may change, when I archive it, then it leaves the active list, appears in the archive, and Undo is offered.
|
|
30
|
+
- **Not allowed.** Given a conversation I may only read, then archiving isn't offered at all.
|
|
31
|
+
- **Wrong moment.** Given an archived conversation, then archiving is shown but can't be used, with "Already archived."
|
|
32
|
+
- **Offline.** Given I have no connection, when I archive it, then it leaves the active list and is marked as waiting; when I'm back it completes.
|
|
33
|
+
- **Refused.** Given the server refuses, then the conversation returns to the active list and I'm told why.
|
|
34
|
+
|
|
35
|
+
## Changes
|
|
36
|
+
- form 1: first version.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: B-0002
|
|
3
|
+
name: Swipe to archive
|
|
4
|
+
status: firm
|
|
5
|
+
form: 1
|
|
6
|
+
applies-to: [phone]
|
|
7
|
+
operations: [archive-conversation]
|
|
8
|
+
replaced-by:
|
|
9
|
+
client-actions: none # a gesture; it runs the same action as B-0001
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Statement
|
|
13
|
+
In any list of conversations, swiping a row fully to the left archives that conversation, exactly as Archive a conversation (B-0001) does. A partial swipe reveals an Archive button and does nothing more.
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
- **Full swipe.** When I swipe a row all the way left and let go, the conversation is archived and Undo is offered.
|
|
17
|
+
- **Partial swipe.** When I swipe a row part of the way, an Archive button shows on the right; letting go leaves the row open with the button.
|
|
18
|
+
- **Not allowed.** On a conversation I may only read, the row doesn't swipe.
|
|
19
|
+
|
|
20
|
+
## Changes
|
|
21
|
+
- form 1: first version.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: B-0003
|
|
3
|
+
name: Archived looks dimmed
|
|
4
|
+
status: rough
|
|
5
|
+
form: 1
|
|
6
|
+
applies-to: all
|
|
7
|
+
operations: []
|
|
8
|
+
replaced-by:
|
|
9
|
+
client-actions: none # a rule about appearance; nothing to call
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Statement
|
|
13
|
+
Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word "Archived".
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
- **Search.** When a search finds an archived conversation, its row is dimmed and says "Archived".
|
|
17
|
+
|
|
18
|
+
## Changes
|
|
19
|
+
- form 1: first version.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: B-0004
|
|
3
|
+
name: Rename a conversation
|
|
4
|
+
status: rough
|
|
5
|
+
form: 1
|
|
6
|
+
applies-to: all
|
|
7
|
+
operations: [set-conversation-title]
|
|
8
|
+
replaced-by:
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Statement
|
|
12
|
+
Tapping a conversation's title opens it for editing in place. It may open already holding a suggested title. Saving changes the title for everyone who has the conversation; cancelling leaves it as it was.
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
- **Usual.** When I change "Trip" to "Trip to Leeds" and save, the list shows the new title.
|
|
16
|
+
|
|
17
|
+
## Changes
|
|
18
|
+
- form 1: first version.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: B-0005
|
|
3
|
+
name: The two lists
|
|
4
|
+
status: rough
|
|
5
|
+
form: 1
|
|
6
|
+
applies-to: all
|
|
7
|
+
operations: [list-conversations]
|
|
8
|
+
replaced-by:
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Statement
|
|
12
|
+
Conversations are shown in two lists, active and archived, and a person can go from either to the other in one step. Each says which list it is.
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
- **Usual.** When I choose the archive, the list shows archived conversations and is headed "Archive".
|
|
16
|
+
|
|
17
|
+
## Changes
|
|
18
|
+
- form 1: first version.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Coverage: desktop
|
|
2
|
+
|
|
3
|
+
| id | value | form | note |
|
|
4
|
+
|---|---|---|---|
|
|
5
|
+
| B-0001 | differs | 1 | Undo is offered for three seconds, not five. Being fixed. |
|
|
6
|
+
| B-0005 | honours | 1 | |
|
|
7
|
+
| show-conversations | honours | 1 | |
|
|
8
|
+
| archive-conversation | honours | 1 | |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Coverage: phone
|
|
2
|
+
|
|
3
|
+
| id | value | form | note |
|
|
4
|
+
|---|---|---|---|
|
|
5
|
+
| B-0001 | honours | 1 | |
|
|
6
|
+
| B-0002 | honours | 1 | |
|
|
7
|
+
| B-0004 | honours | 1 | |
|
|
8
|
+
| B-0005 | honours | 1 | |
|
|
9
|
+
| show-conversations | honours | 1 | |
|
|
10
|
+
| start-retitle | honours | 1 | |
|
|
11
|
+
| archive-conversation | honours | 1 | |
|
|
12
|
+
| unarchive-conversation | honours | 1 | |
|