@abco20/btxml-checker 0.1.2 → 0.1.3
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/cli.js +29 -28
- package/dist/config.d.ts +3 -3
- package/dist/config.js +1 -1
- package/dist/editor-node.d.ts +7 -7
- package/dist/editor-node.js +22 -22
- package/dist/editor.d.ts +7 -7
- package/dist/editor.js +16 -16
- package/dist/{effective-t_u6qJ-7.d.ts → effective-Dmz864HF.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -10
- package/dist/model.d.ts +2 -2
- package/dist/model.js +3 -3
- package/dist/{public-types-Cp3bKKQ3.d.ts → public-types-D3_VR6Sy.d.ts} +5 -5
- package/dist/{public-types-DCvVgnqw.d.ts → public-types-zg51kxSL.d.ts} +9 -0
- package/dist/rules.d.ts +24 -6
- package/dist/rules.js +4 -3
- package/dist/semantic.d.ts +6 -6
- package/dist/semantic.js +3 -3
- package/dist/server.cjs +333 -5
- package/dist/server.cjs.map +1 -1
- package/dist/{types-f9KgrQFd.d.ts → types-BIuA9iLZ.d.ts} +2 -2
- package/dist/{types-BRzExVMv.d.ts → types-DPS-KRMY.d.ts} +2 -2
- package/dist/{types-B2hnkNNL.d.ts → types-DkQEPPAM.d.ts} +2 -2
- package/dist/{types-BgqDzlJ8.d.ts → types-H6H-_Z3F.d.ts} +12 -0
- package/package.json +1 -1
- package/schemas/btxml.config.schema.json +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ResolvedBtxmlConfig } from './types-
|
|
1
|
+
import { R as ResolvedBtxmlConfig } from './types-H6H-_Z3F.js';
|
|
2
2
|
import { D as Diagnostic, S as SourceRange, a as DiagnosticDetails, b as DiagnosticData, R as RelatedInformation } from './diagnostic-B5htzyJ9.js';
|
|
3
|
-
import { a as TreeNodeModelDef, M as ModelSourceRef } from './public-types-
|
|
3
|
+
import { a as TreeNodeModelDef, M as ModelSourceRef } from './public-types-zg51kxSL.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
declare const modelAugmentationFileSchema: z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as BtXmlElement, b as BtXmlAttribute } from './ast-BbfR3S_b.js';
|
|
2
|
-
import { b as BehaviorTreeDef, a as TreeNodeModelDef, P as PortDef } from './public-types-
|
|
3
|
-
import { S as SemanticIndex, R as ResolveSubTreeInput } from './types-
|
|
2
|
+
import { b as BehaviorTreeDef, a as TreeNodeModelDef, P as PortDef } from './public-types-zg51kxSL.js';
|
|
3
|
+
import { S as SemanticIndex, R as ResolveSubTreeInput } from './types-BIuA9iLZ.js';
|
|
4
4
|
|
|
5
5
|
type SubTreeResolution = {
|
|
6
6
|
readonly status: "resolved";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SourceRange } from './diagnostic-B5htzyJ9.js';
|
|
2
|
-
import { T as TreeNodeKind$1, a as TreeNodeModelDef, N as NodeModelSource, P as PortDef, B as BlackboardScope } from './public-types-
|
|
3
|
-
import { N as NodeUsageResolution, P as PortUsageResolution, S as SubTreeResolution, U as UsageResolverConfig, a as NodeUsagePolicy } from './types-
|
|
2
|
+
import { T as TreeNodeKind$1, a as TreeNodeModelDef, N as NodeModelSource, P as PortDef, B as BlackboardScope } from './public-types-zg51kxSL.js';
|
|
3
|
+
import { N as NodeUsageResolution, P as PortUsageResolution, S as SubTreeResolution, U as UsageResolverConfig, a as NodeUsagePolicy } from './types-DPS-KRMY.js';
|
|
4
4
|
|
|
5
5
|
type TreeNodeKind = TreeNodeKind$1;
|
|
6
6
|
type BuildSemanticDocumentViewOptions = {
|
|
@@ -93,6 +93,11 @@ declare const modelsConfigSchema: z.ZodObject<{
|
|
|
93
93
|
}, z.core.$strict>>>;
|
|
94
94
|
description: z.ZodOptional<z.ZodString>;
|
|
95
95
|
}, z.core.$strict>>>;
|
|
96
|
+
convention: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
"allow-unused": "allow-unused";
|
|
98
|
+
"used-only": "used-only";
|
|
99
|
+
"single-source": "single-source";
|
|
100
|
+
}>>;
|
|
96
101
|
}, z.core.$strict>;
|
|
97
102
|
declare const linterSuppressionsConfigSchema: z.ZodObject<{
|
|
98
103
|
inline: z.ZodOptional<z.ZodEnum<{
|
|
@@ -235,6 +240,11 @@ declare const rawBtxmlConfigSchema: z.ZodObject<{
|
|
|
235
240
|
}, z.core.$strict>>>;
|
|
236
241
|
description: z.ZodOptional<z.ZodString>;
|
|
237
242
|
}, z.core.$strict>>>;
|
|
243
|
+
convention: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
"allow-unused": "allow-unused";
|
|
245
|
+
"used-only": "used-only";
|
|
246
|
+
"single-source": "single-source";
|
|
247
|
+
}>>;
|
|
238
248
|
}, z.core.$strict>>;
|
|
239
249
|
linter: z.ZodOptional<z.ZodObject<{
|
|
240
250
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -344,12 +354,14 @@ type ResolvedResolverConfig = {
|
|
|
344
354
|
includes: ResolvedResolverIncludesConfig;
|
|
345
355
|
behaviorTreeIds: "workspace-unique" | "file-local-first" | "allow-ambiguous";
|
|
346
356
|
};
|
|
357
|
+
type ModelConvention = "allow-unused" | "used-only" | "single-source";
|
|
347
358
|
type ResolvedModelsConfig = {
|
|
348
359
|
builtins: string[];
|
|
349
360
|
files: string[];
|
|
350
361
|
augmentations: string[];
|
|
351
362
|
definitions: string[];
|
|
352
363
|
inline: Record<string, unknown>;
|
|
364
|
+
convention: ModelConvention;
|
|
353
365
|
};
|
|
354
366
|
type ResolvedLinterSuppressionsConfig = {
|
|
355
367
|
inline: "allow" | "deny";
|
package/package.json
CHANGED
|
@@ -84,10 +84,13 @@
|
|
|
84
84
|
"model/no-blackboard-type-mismatch",
|
|
85
85
|
"model/no-childless-control-shape-mismatch",
|
|
86
86
|
"model/no-conflicting-definition",
|
|
87
|
+
"model/no-conflicting-kind-for-id",
|
|
88
|
+
"model/no-duplicate-definition",
|
|
87
89
|
"model/no-duplicate-port-name",
|
|
88
90
|
"model/no-leaf-block-shape",
|
|
89
91
|
"model/no-unknown-node",
|
|
90
92
|
"model/no-unknown-port",
|
|
93
|
+
"model/no-unused-definition",
|
|
91
94
|
"model/require-output-port-remap",
|
|
92
95
|
"model/require-port",
|
|
93
96
|
"model/require-port-name",
|
|
@@ -177,6 +180,10 @@
|
|
|
177
180
|
"enum": ["btcpp-v4", "btcpp-v4.6.2", "btcpp-v4.8.2", "btcpp-v4.9.0"]
|
|
178
181
|
}
|
|
179
182
|
},
|
|
183
|
+
"convention": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"enum": ["allow-unused", "used-only", "single-source"]
|
|
186
|
+
},
|
|
180
187
|
"files": {
|
|
181
188
|
"type": "array",
|
|
182
189
|
"items": {
|
|
@@ -293,10 +300,13 @@
|
|
|
293
300
|
"model/no-blackboard-type-mismatch",
|
|
294
301
|
"model/no-childless-control-shape-mismatch",
|
|
295
302
|
"model/no-conflicting-definition",
|
|
303
|
+
"model/no-conflicting-kind-for-id",
|
|
304
|
+
"model/no-duplicate-definition",
|
|
296
305
|
"model/no-duplicate-port-name",
|
|
297
306
|
"model/no-leaf-block-shape",
|
|
298
307
|
"model/no-unknown-node",
|
|
299
308
|
"model/no-unknown-port",
|
|
309
|
+
"model/no-unused-definition",
|
|
300
310
|
"model/require-output-port-remap",
|
|
301
311
|
"model/require-port",
|
|
302
312
|
"model/require-port-name",
|