kibi-cli 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.
- package/bin/kibi +19 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +117 -0
- package/dist/commands/branch.d.ts +3 -0
- package/dist/commands/branch.d.ts.map +1 -0
- package/dist/commands/branch.js +66 -0
- package/dist/commands/check.d.ts +12 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +439 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +268 -0
- package/dist/commands/gc.d.ts +6 -0
- package/dist/commands/gc.d.ts.map +1 -0
- package/dist/commands/gc.js +117 -0
- package/dist/commands/init-helpers.d.ts +8 -0
- package/dist/commands/init-helpers.d.ts.map +1 -0
- package/dist/commands/init-helpers.js +150 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +85 -0
- package/dist/commands/query.d.ts +12 -0
- package/dist/commands/query.d.ts.map +1 -0
- package/dist/commands/query.js +469 -0
- package/dist/commands/sync.d.ts +7 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +587 -0
- package/dist/extractors/manifest.d.ts +30 -0
- package/dist/extractors/manifest.d.ts.map +1 -0
- package/dist/extractors/manifest.js +122 -0
- package/dist/extractors/markdown.d.ts +39 -0
- package/dist/extractors/markdown.d.ts.map +1 -0
- package/dist/extractors/markdown.js +203 -0
- package/dist/extractors/symbols-coordinator.d.ts +4 -0
- package/dist/extractors/symbols-coordinator.d.ts.map +1 -0
- package/dist/extractors/symbols-coordinator.js +131 -0
- package/dist/extractors/symbols-ts.d.ts +21 -0
- package/dist/extractors/symbols-ts.d.ts.map +1 -0
- package/dist/extractors/symbols-ts.js +197 -0
- package/dist/prolog.d.ts +35 -0
- package/dist/prolog.d.ts.map +1 -0
- package/dist/prolog.js +328 -0
- package/dist/public/extractors/symbols-coordinator.d.ts +2 -0
- package/dist/public/extractors/symbols-coordinator.d.ts.map +1 -0
- package/dist/public/extractors/symbols-coordinator.js +46 -0
- package/dist/public/prolog/index.d.ts +2 -0
- package/dist/public/prolog/index.d.ts.map +1 -0
- package/dist/public/prolog/index.js +46 -0
- package/dist/public/schemas/entity.d.ts +58 -0
- package/dist/public/schemas/entity.d.ts.map +1 -0
- package/dist/public/schemas/entity.js +102 -0
- package/dist/public/schemas/relationship.d.ts +35 -0
- package/dist/public/schemas/relationship.d.ts.map +1 -0
- package/dist/public/schemas/relationship.js +81 -0
- package/dist/types/changeset.d.ts +22 -0
- package/dist/types/changeset.d.ts.map +1 -0
- package/dist/types/changeset.js +18 -0
- package/dist/types/entities.d.ts +40 -0
- package/dist/types/entities.d.ts.map +1 -0
- package/dist/types/entities.js +18 -0
- package/dist/types/relationships.d.ts +11 -0
- package/dist/types/relationships.d.ts.map +1 -0
- package/dist/types/relationships.js +18 -0
- package/package.json +57 -0
- package/schema/entities.pl +50 -0
- package/schema/relationships.pl +47 -0
- package/schema/validation.pl +49 -0
- package/src/public/extractors/symbols-coordinator.ts +50 -0
- package/src/public/prolog/index.ts +47 -0
- package/src/public/schemas/entity.ts +104 -0
- package/src/public/schemas/relationship.ts +83 -0
- package/src/schemas/changeset.schema.json +48 -0
- package/src/schemas/entity.schema.json +55 -0
- package/src/schemas/relationship.schema.json +34 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
+
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Affero General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
How to apply this header to source files (examples)
|
|
21
|
+
|
|
22
|
+
1) Prepend header to a single file (POSIX shells):
|
|
23
|
+
|
|
24
|
+
cat LICENSE_HEADER.txt "$FILE" > "$FILE".with-header && mv "$FILE".with-header "$FILE"
|
|
25
|
+
|
|
26
|
+
2) Apply to multiple files (example: the project's main entry files):
|
|
27
|
+
|
|
28
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp packages/cli/src/*.ts packages/mcp/src/*.ts; do
|
|
29
|
+
if [ -f "$f" ]; then
|
|
30
|
+
cp "$f" "$f".bak
|
|
31
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
32
|
+
fi
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
3) Avoid duplicating the header: run a quick guard to only add if missing
|
|
36
|
+
|
|
37
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp; do
|
|
38
|
+
if [ -f "$f" ]; then
|
|
39
|
+
if ! head -n 5 "$f" | grep -q "Copyright (C) 2026 Piotr Franczyk"; then
|
|
40
|
+
cp "$f" "$f".bak
|
|
41
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
42
|
+
fi
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
*/
|
|
46
|
+
// Public re-export of symbols coordinator
|
|
47
|
+
export {
|
|
48
|
+
enrichSymbolCoordinates,
|
|
49
|
+
type ManifestSymbolEntry,
|
|
50
|
+
} from "../../extractors/symbols-coordinator.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
+
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Affero General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
How to apply this header to source files (examples)
|
|
21
|
+
|
|
22
|
+
1) Prepend header to a single file (POSIX shells):
|
|
23
|
+
|
|
24
|
+
cat LICENSE_HEADER.txt "$FILE" > "$FILE".with-header && mv "$FILE".with-header "$FILE"
|
|
25
|
+
|
|
26
|
+
2) Apply to multiple files (example: the project's main entry files):
|
|
27
|
+
|
|
28
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp packages/cli/src/*.ts packages/mcp/src/*.ts; do
|
|
29
|
+
if [ -f "$f" ]; then
|
|
30
|
+
cp "$f" "$f".bak
|
|
31
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
32
|
+
fi
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
3) Avoid duplicating the header: run a quick guard to only add if missing
|
|
36
|
+
|
|
37
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp; do
|
|
38
|
+
if [ -f "$f" ]; then
|
|
39
|
+
if ! head -n 5 "$f" | grep -q "Copyright (C) 2026 Piotr Franczyk"; then
|
|
40
|
+
cp "$f" "$f".bak
|
|
41
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
42
|
+
fi
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
*/
|
|
46
|
+
// Public re-export of PrologProcess
|
|
47
|
+
export { PrologProcess } from "../../prolog.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
+
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Affero General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
How to apply this header to source files (examples)
|
|
21
|
+
|
|
22
|
+
1) Prepend header to a single file (POSIX shells):
|
|
23
|
+
|
|
24
|
+
cat LICENSE_HEADER.txt "$FILE" > "$FILE".with-header && mv "$FILE".with-header "$FILE"
|
|
25
|
+
|
|
26
|
+
2) Apply to multiple files (example: the project's main entry files):
|
|
27
|
+
|
|
28
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp packages/cli/src/*.ts packages/mcp/src/*.ts; do
|
|
29
|
+
if [ -f "$f" ]; then
|
|
30
|
+
cp "$f" "$f".bak
|
|
31
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
32
|
+
fi
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
3) Avoid duplicating the header: run a quick guard to only add if missing
|
|
36
|
+
|
|
37
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp; do
|
|
38
|
+
if [ -f "$f" ]; then
|
|
39
|
+
if ! head -n 5 "$f" | grep -q "Copyright (C) 2026 Piotr Franczyk"; then
|
|
40
|
+
cp "$f" "$f".bak
|
|
41
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
42
|
+
fi
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
*/
|
|
46
|
+
// Public export of entity schema
|
|
47
|
+
// Generated from entity.schema.json
|
|
48
|
+
const entitySchema = {
|
|
49
|
+
$id: "entity.schema.json",
|
|
50
|
+
title: "Entity",
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {
|
|
53
|
+
id: { type: "string" },
|
|
54
|
+
title: { type: "string" },
|
|
55
|
+
status: {
|
|
56
|
+
type: "string",
|
|
57
|
+
enum: [
|
|
58
|
+
"active",
|
|
59
|
+
"draft",
|
|
60
|
+
"archived",
|
|
61
|
+
"deleted",
|
|
62
|
+
"approved",
|
|
63
|
+
"rejected",
|
|
64
|
+
"pending",
|
|
65
|
+
"in_progress",
|
|
66
|
+
"superseded",
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
created_at: { type: "string" },
|
|
70
|
+
updated_at: { type: "string" },
|
|
71
|
+
source: { type: "string" },
|
|
72
|
+
tags: { type: "array", items: { type: "string" } },
|
|
73
|
+
owner: { type: "string" },
|
|
74
|
+
priority: { type: "string" },
|
|
75
|
+
severity: { type: "string" },
|
|
76
|
+
links: { type: "array", items: { type: "string" } },
|
|
77
|
+
text_ref: { type: "string" },
|
|
78
|
+
type: {
|
|
79
|
+
type: "string",
|
|
80
|
+
enum: [
|
|
81
|
+
"req",
|
|
82
|
+
"scenario",
|
|
83
|
+
"test",
|
|
84
|
+
"adr",
|
|
85
|
+
"flag",
|
|
86
|
+
"event",
|
|
87
|
+
"symbol",
|
|
88
|
+
"fact",
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
required: [
|
|
93
|
+
"id",
|
|
94
|
+
"title",
|
|
95
|
+
"status",
|
|
96
|
+
"created_at",
|
|
97
|
+
"updated_at",
|
|
98
|
+
"source",
|
|
99
|
+
"type",
|
|
100
|
+
],
|
|
101
|
+
additionalProperties: false,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export default entitySchema;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
+
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Affero General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
How to apply this header to source files (examples)
|
|
21
|
+
|
|
22
|
+
1) Prepend header to a single file (POSIX shells):
|
|
23
|
+
|
|
24
|
+
cat LICENSE_HEADER.txt "$FILE" > "$FILE".with-header && mv "$FILE".with-header "$FILE"
|
|
25
|
+
|
|
26
|
+
2) Apply to multiple files (example: the project's main entry files):
|
|
27
|
+
|
|
28
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp packages/cli/src/*.ts packages/mcp/src/*.ts; do
|
|
29
|
+
if [ -f "$f" ]; then
|
|
30
|
+
cp "$f" "$f".bak
|
|
31
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
32
|
+
fi
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
3) Avoid duplicating the header: run a quick guard to only add if missing
|
|
36
|
+
|
|
37
|
+
for f in packages/cli/bin/kibi packages/mcp/bin/kibi-mcp; do
|
|
38
|
+
if [ -f "$f" ]; then
|
|
39
|
+
if ! head -n 5 "$f" | grep -q "Copyright (C) 2026 Piotr Franczyk"; then
|
|
40
|
+
cp "$f" "$f".bak
|
|
41
|
+
(cat LICENSE_HEADER.txt; echo; cat "$f" ) > "$f".new && mv "$f".new "$f"
|
|
42
|
+
fi
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
*/
|
|
46
|
+
// Public export of relationship schema
|
|
47
|
+
// Generated from relationship.schema.json
|
|
48
|
+
const relationshipSchema = {
|
|
49
|
+
$id: "relationship.schema.json",
|
|
50
|
+
title: "Relationship",
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {
|
|
53
|
+
type: {
|
|
54
|
+
type: "string",
|
|
55
|
+
enum: [
|
|
56
|
+
"depends_on",
|
|
57
|
+
"specified_by",
|
|
58
|
+
"verified_by",
|
|
59
|
+
"validates",
|
|
60
|
+
"implements",
|
|
61
|
+
"covered_by",
|
|
62
|
+
"constrained_by",
|
|
63
|
+
"constrains",
|
|
64
|
+
"requires_property",
|
|
65
|
+
"guards",
|
|
66
|
+
"publishes",
|
|
67
|
+
"consumes",
|
|
68
|
+
"supersedes",
|
|
69
|
+
"relates_to",
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
from: { type: "string" },
|
|
73
|
+
to: { type: "string" },
|
|
74
|
+
created_at: { type: "string" },
|
|
75
|
+
created_by: { type: "string" },
|
|
76
|
+
source: { type: "string" },
|
|
77
|
+
confidence: { type: "number", minimum: 0, maximum: 1 },
|
|
78
|
+
},
|
|
79
|
+
required: ["type", "from", "to"],
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default relationshipSchema;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "changeset.schema.json",
|
|
3
|
+
"title": "Changeset",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"operations": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"operation": { "const": "upsert" },
|
|
14
|
+
"entity": { "$ref": "./entity.schema.json" },
|
|
15
|
+
"relationships": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": { "$ref": "./relationship.schema.json" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["operation", "entity"],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"operation": { "const": "delete" },
|
|
27
|
+
"id": { "type": "string" }
|
|
28
|
+
},
|
|
29
|
+
"required": ["operation", "id"],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"metadata": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"timestamp": { "type": "string" },
|
|
39
|
+
"author": { "type": "string" },
|
|
40
|
+
"source": { "type": "string" }
|
|
41
|
+
},
|
|
42
|
+
"required": ["timestamp"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["operations"],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "entity.schema.json",
|
|
3
|
+
"title": "Entity",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": { "type": "string" },
|
|
7
|
+
"title": { "type": "string" },
|
|
8
|
+
"status": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"enum": [
|
|
11
|
+
"active",
|
|
12
|
+
"draft",
|
|
13
|
+
"archived",
|
|
14
|
+
"deleted",
|
|
15
|
+
"approved",
|
|
16
|
+
"rejected",
|
|
17
|
+
"pending",
|
|
18
|
+
"in_progress",
|
|
19
|
+
"superseded"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"created_at": { "type": "string" },
|
|
23
|
+
"updated_at": { "type": "string" },
|
|
24
|
+
"source": { "type": "string" },
|
|
25
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"owner": { "type": "string" },
|
|
27
|
+
"priority": { "type": "string" },
|
|
28
|
+
"severity": { "type": "string" },
|
|
29
|
+
"links": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"text_ref": { "type": "string" },
|
|
31
|
+
"type": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"req",
|
|
35
|
+
"scenario",
|
|
36
|
+
"test",
|
|
37
|
+
"adr",
|
|
38
|
+
"flag",
|
|
39
|
+
"event",
|
|
40
|
+
"symbol",
|
|
41
|
+
"fact"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"id",
|
|
47
|
+
"title",
|
|
48
|
+
"status",
|
|
49
|
+
"created_at",
|
|
50
|
+
"updated_at",
|
|
51
|
+
"source",
|
|
52
|
+
"type"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "relationship.schema.json",
|
|
3
|
+
"title": "Relationship",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"type": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"depends_on",
|
|
10
|
+
"specified_by",
|
|
11
|
+
"verified_by",
|
|
12
|
+
"validates",
|
|
13
|
+
"implements",
|
|
14
|
+
"covered_by",
|
|
15
|
+
"constrained_by",
|
|
16
|
+
"constrains",
|
|
17
|
+
"requires_property",
|
|
18
|
+
"guards",
|
|
19
|
+
"publishes",
|
|
20
|
+
"consumes",
|
|
21
|
+
"supersedes",
|
|
22
|
+
"relates_to"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"from": { "type": "string" },
|
|
26
|
+
"to": { "type": "string" },
|
|
27
|
+
"created_at": { "type": "string" },
|
|
28
|
+
"created_by": { "type": "string" },
|
|
29
|
+
"source": { "type": "string" },
|
|
30
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
31
|
+
},
|
|
32
|
+
"required": ["type", "from", "to"],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|