@decantr/core 1.0.0-beta.9 → 1.0.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/LICENSE +21 -0
- package/README.md +66 -0
- package/dist/index.d.ts +296 -7
- package/dist/index.js +923 -17
- package/dist/index.js.map +1 -1
- package/package.json +28 -12
- package/schema/execution-pack-bundle.v1.json +58 -0
- package/schema/execution-pack.common.v1.json +192 -0
- package/schema/mutation-pack.v1.json +94 -0
- package/schema/pack-manifest.v1.json +110 -0
- package/schema/page-pack.v1.json +101 -0
- package/schema/review-pack.v1.json +97 -0
- package/schema/scaffold-pack.v1.json +87 -0
- package/schema/section-pack.v1.json +92 -0
- package/schema/selected-execution-pack.v1.json +75 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://decantr.ai/schemas/section-pack.v1.json",
|
|
4
|
+
"title": "Decantr Section Execution Pack",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["$schema", "packVersion", "packType", "objective", "target", "preset", "scope", "requiredSetup", "allowedVocabulary", "examples", "antiPatterns", "successChecks", "tokenBudget", "data", "renderedMarkdown"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://decantr.ai/schemas/section-pack.v1.json"
|
|
10
|
+
},
|
|
11
|
+
"packVersion": {
|
|
12
|
+
"const": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"packType": {
|
|
15
|
+
"const": "section"
|
|
16
|
+
},
|
|
17
|
+
"objective": {
|
|
18
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/nonEmptyString"
|
|
19
|
+
},
|
|
20
|
+
"target": {
|
|
21
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackTarget"
|
|
22
|
+
},
|
|
23
|
+
"preset": {
|
|
24
|
+
"type": ["string", "null"]
|
|
25
|
+
},
|
|
26
|
+
"scope": {
|
|
27
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackScope"
|
|
28
|
+
},
|
|
29
|
+
"requiredSetup": {
|
|
30
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/stringArray"
|
|
31
|
+
},
|
|
32
|
+
"allowedVocabulary": {
|
|
33
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/stringArray"
|
|
34
|
+
},
|
|
35
|
+
"examples": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackExample"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"antiPatterns": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackAntiPattern"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"successChecks": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackSuccessCheck"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"tokenBudget": {
|
|
54
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/executionPackTokenBudget"
|
|
55
|
+
},
|
|
56
|
+
"data": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["sectionId", "role", "shell", "description", "features", "theme", "routes"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"sectionId": {
|
|
61
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/nonEmptyString"
|
|
62
|
+
},
|
|
63
|
+
"role": {
|
|
64
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/nonEmptyString"
|
|
65
|
+
},
|
|
66
|
+
"shell": {
|
|
67
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/nonEmptyString"
|
|
68
|
+
},
|
|
69
|
+
"description": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"features": {
|
|
73
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/stringArray"
|
|
74
|
+
},
|
|
75
|
+
"theme": {
|
|
76
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/themeRef"
|
|
77
|
+
},
|
|
78
|
+
"routes": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/routeSummary"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"renderedMarkdown": {
|
|
88
|
+
"$ref": "https://decantr.ai/schemas/execution-pack.common.v1.json#/$defs/nonEmptyString"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://decantr.ai/schemas/selected-execution-pack.v1.json",
|
|
4
|
+
"title": "Decantr Selected Execution Pack",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"$schema",
|
|
8
|
+
"generatedAt",
|
|
9
|
+
"sourceEssenceVersion",
|
|
10
|
+
"manifest",
|
|
11
|
+
"selector",
|
|
12
|
+
"pack"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"$schema": {
|
|
16
|
+
"const": "https://decantr.ai/schemas/selected-execution-pack.v1.json"
|
|
17
|
+
},
|
|
18
|
+
"generatedAt": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "date-time"
|
|
21
|
+
},
|
|
22
|
+
"sourceEssenceVersion": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1
|
|
25
|
+
},
|
|
26
|
+
"manifest": {
|
|
27
|
+
"$ref": "https://decantr.ai/schemas/pack-manifest.v1.json"
|
|
28
|
+
},
|
|
29
|
+
"selector": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": [
|
|
32
|
+
"packType",
|
|
33
|
+
"id"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"packType": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"scaffold",
|
|
39
|
+
"section",
|
|
40
|
+
"page",
|
|
41
|
+
"mutation",
|
|
42
|
+
"review"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"id": {
|
|
46
|
+
"type": [
|
|
47
|
+
"string",
|
|
48
|
+
"null"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"pack": {
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"$ref": "https://decantr.ai/schemas/scaffold-pack.v1.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"$ref": "https://decantr.ai/schemas/section-pack.v1.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"$ref": "https://decantr.ai/schemas/page-pack.v1.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"$ref": "https://decantr.ai/schemas/mutation-pack.v1.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "https://decantr.ai/schemas/review-pack.v1.json"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|