@plurnk/plurnk-contracts 1.7.0 → 1.8.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/SPEC.md +106 -53
- package/dist/plurnk.gemma.gbnf +26 -22
- package/dist/plurnk.qwen.gbnf +26 -22
- package/dist/schema/ClientStatement.json +9 -4
- package/dist/schema/McpConfigurationOverlay.json +25 -0
- package/dist/schema/McpServerDefinition.json +2 -1
- package/dist/schema/McpServerOptions.json +36 -0
- package/dist/schema/ModelCatalogPage.json +122 -0
- package/dist/schema/ModelCatalogQuery.json +32 -0
- package/dist/schema/ModelReadiness.json +47 -0
- package/dist/schema/ModelRoute.json +23 -0
- package/dist/schema/PlurnkStatement.json +48 -31
- package/dist/schema/ReasoningPolicy.json +7 -0
- package/dist/src/AstBuilder.d.ts.map +1 -1
- package/dist/src/AstBuilder.js +42 -21
- package/dist/src/AstBuilder.js.map +1 -1
- package/dist/src/PlurnkErrorStrategy.js +16 -16
- package/dist/src/PlurnkErrorStrategy.js.map +1 -1
- package/dist/src/PlurnkParser.js +3 -3
- package/dist/src/PlurnkParser.js.map +1 -1
- package/dist/src/Validator.d.ts +29 -1
- package/dist/src/Validator.d.ts.map +1 -1
- package/dist/src/Validator.js +137 -0
- package/dist/src/Validator.js.map +1 -1
- package/dist/src/generated/plurnkLexer.d.ts +30 -28
- package/dist/src/generated/plurnkLexer.d.ts.map +1 -1
- package/dist/src/generated/plurnkLexer.js +398 -381
- package/dist/src/generated/plurnkLexer.js.map +1 -1
- package/dist/src/generated/plurnkParser.d.ts +56 -39
- package/dist/src/generated/plurnkParser.d.ts.map +1 -1
- package/dist/src/generated/plurnkParser.js +644 -450
- package/dist/src/generated/plurnkParser.js.map +1 -1
- package/dist/src/generated/plurnkParserVisitor.d.ts +7 -7
- package/dist/src/generated/plurnkParserVisitor.d.ts.map +1 -1
- package/dist/src/generated/plurnkParserVisitor.js +6 -6
- package/dist/src/generated/plurnkParserVisitor.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/types.d.ts +2 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.generated.d.ts +145 -19
- package/dist/src/types.generated.d.ts.map +1 -1
- package/dist/src/types.js +4 -0
- package/dist/src/types.js.map +1 -1
- package/package.json +2 -3
- package/plurnk.md +91 -110
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/McpServerOptions.json",
|
|
4
|
+
"title": "McpServerOptions",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"args": {
|
|
9
|
+
"title": "McpServerArguments",
|
|
10
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/args"
|
|
11
|
+
},
|
|
12
|
+
"cwd": {
|
|
13
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/cwd"
|
|
14
|
+
},
|
|
15
|
+
"env": {
|
|
16
|
+
"title": "McpServerEnvironment",
|
|
17
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/env"
|
|
18
|
+
},
|
|
19
|
+
"headers": {
|
|
20
|
+
"title": "McpServerHeaders",
|
|
21
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/headers"
|
|
22
|
+
},
|
|
23
|
+
"authorization": {
|
|
24
|
+
"title": "McpServerAuthorization",
|
|
25
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/authorization"
|
|
26
|
+
},
|
|
27
|
+
"tools": {
|
|
28
|
+
"title": "McpServerToolNames",
|
|
29
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/tools"
|
|
30
|
+
},
|
|
31
|
+
"read": {
|
|
32
|
+
"title": "McpServerReadTools",
|
|
33
|
+
"$ref": "https://schemas.plurnk.dev/v0/McpServerDefinition.json#/properties/read"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/ModelCatalogPage.json",
|
|
4
|
+
"title": "ModelCatalogPage",
|
|
5
|
+
"description": "One deterministic bounded page from the release-pinned model catalog.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["items", "offset", "total"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"maxItems": 100,
|
|
13
|
+
"items": {
|
|
14
|
+
"$ref": "#/$defs/model"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"offset": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 9007199254740991
|
|
21
|
+
},
|
|
22
|
+
"total": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"minimum": 0,
|
|
25
|
+
"maximum": 9007199254740991
|
|
26
|
+
},
|
|
27
|
+
"nextOffset": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 1,
|
|
30
|
+
"maximum": 9007199254740991
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"model": {
|
|
35
|
+
"title": "ModelCatalogEntry",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"selector",
|
|
39
|
+
"provider",
|
|
40
|
+
"providerName",
|
|
41
|
+
"model",
|
|
42
|
+
"modelName",
|
|
43
|
+
"limits",
|
|
44
|
+
"capabilities",
|
|
45
|
+
"readiness"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"properties": {
|
|
49
|
+
"selector": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 3
|
|
52
|
+
},
|
|
53
|
+
"provider": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1
|
|
56
|
+
},
|
|
57
|
+
"providerName": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1
|
|
60
|
+
},
|
|
61
|
+
"model": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1
|
|
64
|
+
},
|
|
65
|
+
"modelName": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1
|
|
68
|
+
},
|
|
69
|
+
"limits": {
|
|
70
|
+
"$ref": "#/$defs/limits"
|
|
71
|
+
},
|
|
72
|
+
"capabilities": {
|
|
73
|
+
"$ref": "#/$defs/capabilities"
|
|
74
|
+
},
|
|
75
|
+
"readiness": {
|
|
76
|
+
"$ref": "https://schemas.plurnk.dev/v0/ModelReadiness.json"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"limits": {
|
|
81
|
+
"title": "ModelCatalogLimits",
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": ["contextTokens"],
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"properties": {
|
|
86
|
+
"contextTokens": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 1
|
|
89
|
+
},
|
|
90
|
+
"inputTokens": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 1
|
|
93
|
+
},
|
|
94
|
+
"outputTokens": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"minimum": 1
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"capabilities": {
|
|
101
|
+
"title": "ModelCatalogCapabilities",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["attachment", "reasoning", "toolCall", "inputModalities", "outputModalities"],
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"properties": {
|
|
106
|
+
"attachment": { "type": "boolean" },
|
|
107
|
+
"reasoning": { "type": "boolean" },
|
|
108
|
+
"toolCall": { "type": "boolean" },
|
|
109
|
+
"structuredOutput": { "type": "boolean" },
|
|
110
|
+
"temperature": { "type": "boolean" },
|
|
111
|
+
"inputModalities": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": { "type": "string", "minLength": 1 }
|
|
114
|
+
},
|
|
115
|
+
"outputModalities": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": { "type": "string", "minLength": 1 }
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/ModelCatalogQuery.json",
|
|
4
|
+
"title": "ModelCatalogQuery",
|
|
5
|
+
"description": "A bounded query over the release-pinned Models.dev catalog.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"provider": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 128
|
|
13
|
+
},
|
|
14
|
+
"search": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 256
|
|
17
|
+
},
|
|
18
|
+
"availability": {
|
|
19
|
+
"enum": ["configured", "all"]
|
|
20
|
+
},
|
|
21
|
+
"offset": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"minimum": 0,
|
|
24
|
+
"maximum": 9007199254740991
|
|
25
|
+
},
|
|
26
|
+
"limit": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"minimum": 1,
|
|
29
|
+
"maximum": 100
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/ModelReadiness.json",
|
|
4
|
+
"title": "ModelReadiness",
|
|
5
|
+
"description": "Local configuration evidence that a catalog provider is ready to attempt a request, without probing or validating credentials.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["ready", "causes"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"ready": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"causes": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"$ref": "#/$defs/cause"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"$defs": {
|
|
21
|
+
"cause": {
|
|
22
|
+
"title": "ModelReadinessCause",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["kind", "alternatives"],
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"kind": {
|
|
28
|
+
"enum": ["credential", "configuration"]
|
|
29
|
+
},
|
|
30
|
+
"alternatives": {
|
|
31
|
+
"description": "Alternative environment-variable sets. Every name in one inner array is required; satisfying any inner array resolves this cause.",
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 1,
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"minItems": 1,
|
|
37
|
+
"uniqueItems": true,
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[A-Z0-9_]+$"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/ModelRoute.json",
|
|
4
|
+
"title": "ModelRoute",
|
|
5
|
+
"description": "A client-visible resolved provider/model identity. Alias is present only when a declared alias supplied the route; provider configuration remains private to the daemon.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["provider", "model"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"alias": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1
|
|
13
|
+
},
|
|
14
|
+
"provider": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1
|
|
17
|
+
},
|
|
18
|
+
"model": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.plurnk.dev/v0/PlurnkStatement.json",
|
|
4
4
|
"title": "PlurnkStatement",
|
|
5
|
-
"description": "The parsed AST union for one protocol statement, discriminated by `op`. Every variant has fixed signal, target, lineMarker, body,
|
|
5
|
+
"description": "The parsed AST union for one protocol statement, discriminated by `op`. Every variant has fixed signal, target, lineMarker, annotation, body, delimiter, and source-position fields; operation-specific schemas constrain their types. A null field records an omitted tolerated slot and does not satisfy runtime requirements by itself.",
|
|
6
6
|
"oneOf": [
|
|
7
7
|
{ "$ref": "#/$defs/FindStatement" },
|
|
8
8
|
{ "$ref": "#/$defs/ReadStatement" },
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
{ "type": "null" }
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
|
+
"AnnotationOrNull": {
|
|
30
|
+
"type": ["string", "null"]
|
|
31
|
+
},
|
|
29
32
|
"AppliedTagSignal": {
|
|
30
33
|
"oneOf": [
|
|
31
34
|
{
|
|
@@ -91,11 +94,12 @@
|
|
|
91
94
|
},
|
|
92
95
|
"FindStatement": {
|
|
93
96
|
"type": "object",
|
|
94
|
-
"required": ["op", "
|
|
97
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
95
98
|
"additionalProperties": false,
|
|
96
99
|
"properties": {
|
|
97
100
|
"op": { "const": "FIND" },
|
|
98
|
-
"
|
|
101
|
+
"delimiter": { "type": "string" },
|
|
102
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
99
103
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
100
104
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
101
105
|
"lineMarker": { "$ref": "#/$defs/LineMarkerOrNull" },
|
|
@@ -105,11 +109,12 @@
|
|
|
105
109
|
},
|
|
106
110
|
"ReadStatement": {
|
|
107
111
|
"type": "object",
|
|
108
|
-
"required": ["op", "
|
|
112
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
109
113
|
"additionalProperties": false,
|
|
110
114
|
"properties": {
|
|
111
115
|
"op": { "const": "READ" },
|
|
112
|
-
"
|
|
116
|
+
"delimiter": { "type": "string" },
|
|
117
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
113
118
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
114
119
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
115
120
|
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
@@ -119,39 +124,42 @@
|
|
|
119
124
|
},
|
|
120
125
|
"OpenStatement": {
|
|
121
126
|
"type": "object",
|
|
122
|
-
"required": ["op", "
|
|
127
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
123
128
|
"additionalProperties": false,
|
|
124
129
|
"properties": {
|
|
125
130
|
"op": { "const": "OPEN" },
|
|
126
|
-
"
|
|
131
|
+
"delimiter": { "type": "string" },
|
|
132
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
127
133
|
"signal": { "$ref": "#/$defs/CurationTagSignal" },
|
|
128
134
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
129
|
-
"lineMarker": { "
|
|
135
|
+
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
130
136
|
"body": { "$ref": "#/$defs/MatcherBodyOrNull" },
|
|
131
137
|
"position": { "$ref": "#/$defs/PositionRef" }
|
|
132
138
|
}
|
|
133
139
|
},
|
|
134
140
|
"FoldStatement": {
|
|
135
141
|
"type": "object",
|
|
136
|
-
"required": ["op", "
|
|
142
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
137
143
|
"additionalProperties": false,
|
|
138
144
|
"properties": {
|
|
139
145
|
"op": { "const": "FOLD" },
|
|
140
|
-
"
|
|
146
|
+
"delimiter": { "type": "string" },
|
|
147
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
141
148
|
"signal": { "$ref": "#/$defs/CurationTagSignal" },
|
|
142
149
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
143
|
-
"lineMarker": { "
|
|
150
|
+
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
144
151
|
"body": { "$ref": "#/$defs/MatcherBodyOrNull" },
|
|
145
152
|
"position": { "$ref": "#/$defs/PositionRef" }
|
|
146
153
|
}
|
|
147
154
|
},
|
|
148
155
|
"EditStatement": {
|
|
149
156
|
"type": "object",
|
|
150
|
-
"required": ["op", "
|
|
157
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
151
158
|
"additionalProperties": false,
|
|
152
159
|
"properties": {
|
|
153
160
|
"op": { "const": "EDIT" },
|
|
154
|
-
"
|
|
161
|
+
"delimiter": { "type": "string" },
|
|
162
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
155
163
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
156
164
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
157
165
|
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
@@ -161,11 +169,12 @@
|
|
|
161
169
|
},
|
|
162
170
|
"CopyStatement": {
|
|
163
171
|
"type": "object",
|
|
164
|
-
"required": ["op", "
|
|
172
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
165
173
|
"additionalProperties": false,
|
|
166
174
|
"properties": {
|
|
167
175
|
"op": { "const": "COPY" },
|
|
168
|
-
"
|
|
176
|
+
"delimiter": { "type": "string" },
|
|
177
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
169
178
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
170
179
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
171
180
|
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
@@ -175,11 +184,12 @@
|
|
|
175
184
|
},
|
|
176
185
|
"MoveStatement": {
|
|
177
186
|
"type": "object",
|
|
178
|
-
"required": ["op", "
|
|
187
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
179
188
|
"additionalProperties": false,
|
|
180
189
|
"properties": {
|
|
181
190
|
"op": { "const": "MOVE" },
|
|
182
|
-
"
|
|
191
|
+
"delimiter": { "type": "string" },
|
|
192
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
183
193
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
184
194
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
185
195
|
"lineMarker": { "$ref": "#/$defs/TextLineMarkerOrNull" },
|
|
@@ -189,11 +199,12 @@
|
|
|
189
199
|
},
|
|
190
200
|
"SendStatement": {
|
|
191
201
|
"type": "object",
|
|
192
|
-
"required": ["op", "
|
|
202
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
193
203
|
"additionalProperties": false,
|
|
194
204
|
"properties": {
|
|
195
205
|
"op": { "const": "SEND" },
|
|
196
|
-
"
|
|
206
|
+
"delimiter": { "type": "string" },
|
|
207
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
197
208
|
"signal": {
|
|
198
209
|
"oneOf": [
|
|
199
210
|
{ "type": "number" },
|
|
@@ -208,11 +219,12 @@
|
|
|
208
219
|
},
|
|
209
220
|
"ExecStatement": {
|
|
210
221
|
"type": "object",
|
|
211
|
-
"required": ["op", "
|
|
222
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
212
223
|
"additionalProperties": false,
|
|
213
224
|
"properties": {
|
|
214
225
|
"op": { "const": "EXEC" },
|
|
215
|
-
"
|
|
226
|
+
"delimiter": { "type": "string" },
|
|
227
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
216
228
|
"signal": { "type": ["string", "null"] },
|
|
217
229
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
218
230
|
"lineMarker": { "$ref": "#/$defs/LineMarkerOrNull" },
|
|
@@ -222,11 +234,12 @@
|
|
|
222
234
|
},
|
|
223
235
|
"BareStatement": {
|
|
224
236
|
"type": "object",
|
|
225
|
-
"required": ["op", "
|
|
237
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
226
238
|
"additionalProperties": false,
|
|
227
239
|
"properties": {
|
|
228
240
|
"op": { "const": "BARE" },
|
|
229
|
-
"
|
|
241
|
+
"delimiter": { "type": "string" },
|
|
242
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
230
243
|
"signal": { "$ref": "#/$defs/AppliedTagSignal" },
|
|
231
244
|
"target": { "type": "null" },
|
|
232
245
|
"lineMarker": { "type": "null" },
|
|
@@ -236,11 +249,12 @@
|
|
|
236
249
|
},
|
|
237
250
|
"PlanStatement": {
|
|
238
251
|
"type": "object",
|
|
239
|
-
"required": ["op", "
|
|
252
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
240
253
|
"additionalProperties": false,
|
|
241
254
|
"properties": {
|
|
242
255
|
"op": { "const": "PLAN" },
|
|
243
|
-
"
|
|
256
|
+
"delimiter": { "type": "string" },
|
|
257
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
244
258
|
"signal": { "$ref": "#/$defs/TagSignal" },
|
|
245
259
|
"target": { "$ref": "#/$defs/PathOrNull" },
|
|
246
260
|
"lineMarker": { "$ref": "#/$defs/LineMarkerOrNull" },
|
|
@@ -250,11 +264,12 @@
|
|
|
250
264
|
},
|
|
251
265
|
"KillStatement": {
|
|
252
266
|
"type": "object",
|
|
253
|
-
"required": ["op", "
|
|
267
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
254
268
|
"additionalProperties": false,
|
|
255
269
|
"properties": {
|
|
256
270
|
"op": { "const": "KILL" },
|
|
257
|
-
"
|
|
271
|
+
"delimiter": { "type": "string" },
|
|
272
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
258
273
|
"signal": {
|
|
259
274
|
"oneOf": [
|
|
260
275
|
{ "type": "number" },
|
|
@@ -269,11 +284,12 @@
|
|
|
269
284
|
},
|
|
270
285
|
"WorkStatement": {
|
|
271
286
|
"type": "object",
|
|
272
|
-
"required": ["op", "
|
|
287
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
273
288
|
"additionalProperties": false,
|
|
274
289
|
"properties": {
|
|
275
290
|
"op": { "const": "WORK" },
|
|
276
|
-
"
|
|
291
|
+
"delimiter": { "type": "string" },
|
|
292
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
277
293
|
"signal": {
|
|
278
294
|
"oneOf": [
|
|
279
295
|
{ "type": "string", "minLength": 1 },
|
|
@@ -288,11 +304,12 @@
|
|
|
288
304
|
},
|
|
289
305
|
"ForkStatement": {
|
|
290
306
|
"type": "object",
|
|
291
|
-
"required": ["op", "
|
|
307
|
+
"required": ["op", "delimiter", "annotation", "signal", "target", "lineMarker", "body", "position"],
|
|
292
308
|
"additionalProperties": false,
|
|
293
309
|
"properties": {
|
|
294
310
|
"op": { "const": "FORK" },
|
|
295
|
-
"
|
|
311
|
+
"delimiter": { "type": "string" },
|
|
312
|
+
"annotation": { "$ref": "#/$defs/AnnotationOrNull" },
|
|
296
313
|
"signal": {
|
|
297
314
|
"oneOf": [
|
|
298
315
|
{ "type": "string", "minLength": 1 },
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.dev/v0/ReasoningPolicy.json",
|
|
4
|
+
"title": "ReasoningPolicy",
|
|
5
|
+
"description": "The portable durable reasoning intent shared by provider, runtime, and client boundaries.",
|
|
6
|
+
"enum": ["off", "adaptive", "low", "medium", "high"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AstBuilder.d.ts","sourceRoot":"","sources":["../../src/AstBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAIR,eAAe,EAaf,iBAAiB,EACjB,UAAU,EAGV,eAAe,EACf,QAAQ,EAOX,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAGR,sBAAsB,
|
|
1
|
+
{"version":3,"file":"AstBuilder.d.ts","sourceRoot":"","sources":["../../src/AstBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAIR,eAAe,EAaf,iBAAiB,EACjB,UAAU,EAGV,eAAe,EACf,QAAQ,EAOX,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAGR,sBAAsB,EAetB,gBAAgB,EAChB,mBAAmB,EAGtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAIH,oBAAoB,EACpB,oBAAoB,EAIvB,MAAM,6BAA6B,CAAC;AAOrC,OAAO,QAAQ,OAAO,CAAC;IACnB,SAAgB,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;CACtD;AAUD,MAAM,CAAC,OAAO,OAAO,UAAU;;IAc3B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,eAAe,CA6BvH;IAqBD,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,sBAAsB,GAAG,eAAe,CAK/D;IAucD;;;;OAIG;IACH,MAAM,CAAC,sBAAsB,CACzB,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,QAAiC,GACvC,iBAAiB,GAAG,IAAI,CA6B1B;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,QAAiC,GAAG,UAAU,GAAG,IAAI,CAoCvF;CA2HJ"}
|