@principal-ai/subsystems-core 0.44.1 → 0.46.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.
|
@@ -87,11 +87,6 @@ export interface SubsystemMethodInfo {
|
|
|
87
87
|
returnType?: string;
|
|
88
88
|
returnTypeRef?: SubsystemReferenceInfo;
|
|
89
89
|
}
|
|
90
|
-
export interface SubsystemCallInfo {
|
|
91
|
-
nodeId: string;
|
|
92
|
-
name: string;
|
|
93
|
-
source_location?: string;
|
|
94
|
-
}
|
|
95
90
|
export interface SubsystemReferenceInfo {
|
|
96
91
|
nodeId: string;
|
|
97
92
|
name: string;
|
|
@@ -104,16 +99,12 @@ export interface SubsystemClassDeclaration {
|
|
|
104
99
|
properties: SubsystemPropertyInfo[];
|
|
105
100
|
extends: string[];
|
|
106
101
|
implements: string[];
|
|
107
|
-
instantiations: SubsystemCallInfo[];
|
|
108
|
-
references: SubsystemReferenceInfo[];
|
|
109
102
|
}
|
|
110
103
|
export interface SubsystemFunctionDeclaration {
|
|
111
104
|
kind: 'function';
|
|
112
105
|
parameters: SubsystemParamInfo[];
|
|
113
106
|
returnType?: string;
|
|
114
107
|
returnTypeRef?: SubsystemReferenceInfo;
|
|
115
|
-
callers: SubsystemCallInfo[];
|
|
116
|
-
callees: SubsystemCallInfo[];
|
|
117
108
|
}
|
|
118
109
|
export interface SubsystemMethodDeclaration {
|
|
119
110
|
kind: 'method';
|
|
@@ -144,8 +135,6 @@ export interface SubsystemEnumMemberInfo {
|
|
|
144
135
|
export interface SubsystemTypeDeclaration {
|
|
145
136
|
kind: 'type';
|
|
146
137
|
properties: SubsystemPropertyInfo[];
|
|
147
|
-
usedBy: SubsystemReferenceInfo[];
|
|
148
|
-
implementors: string[];
|
|
149
138
|
/** Generic type parameters, e.g. `<K extends keyof StudioMessages>`. */
|
|
150
139
|
generics?: SubsystemTypeParamInfo[];
|
|
151
140
|
/** Callable type — `(params) => returnType`. */
|
|
@@ -162,9 +151,24 @@ export interface SubsystemTypeDeclaration {
|
|
|
162
151
|
*/
|
|
163
152
|
rhs?: string;
|
|
164
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Declaration for `construct: external` — a named dependency with no backing
|
|
156
|
+
* source declaration (a remote API, a CLI, a third-party package). Authored,
|
|
157
|
+
* never extracted.
|
|
158
|
+
*
|
|
159
|
+
* `label` is the short name shown in the declaration block; it falls back to the
|
|
160
|
+
* component's `name` when absent, so a record may carry only `attributes`.
|
|
161
|
+
* `attributes` are authored key/value pairs (endpoints, install commands, a db
|
|
162
|
+
* path) rendered beneath the label, mirroring `custom_entity`.
|
|
163
|
+
*
|
|
164
|
+
* Both are optional because a bare "this depends on X" with nothing more to say
|
|
165
|
+
* is a legitimate model — requiring an empty `attributes: []` would be padding
|
|
166
|
+
* for its own sake.
|
|
167
|
+
*/
|
|
165
168
|
export interface SubsystemExternalDeclaration {
|
|
166
169
|
kind: 'external';
|
|
167
|
-
label
|
|
170
|
+
label?: string;
|
|
171
|
+
attributes?: SubsystemCustomEntityAttribute[];
|
|
168
172
|
}
|
|
169
173
|
export interface SubsystemStoreDeclaration {
|
|
170
174
|
kind: 'store';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsystem-model.d.ts","sourceRoot":"","sources":["../../src/types/subsystem-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;0CAE0C;AAC1C,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,UAAU,GACV,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,MAAM,GACN,OAAO,GACP,UAAU,GACV,eAAe,CAAC;AAEpB,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;;GAIG;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ACpB,aAAa,CAAC,EAAE,sBAAsB,CAAC;CACxC;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"subsystem-model.d.ts","sourceRoot":"","sources":["../../src/types/subsystem-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;0CAE0C;AAC1C,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,UAAU,GACV,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,MAAM,GACN,OAAO,GACP,UAAU,GACV,eAAe,CAAC;AAEpB,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAC/B,OAAO,GACP,MAAM,GACN,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,SAAS,GACT,gBAAgB,CAAC;AAErB;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAE7D,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,MAAM,GACN,QAAQ,GACR,MAAM,GACN,aAAa,GACb,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,sBAAsB,CAAC;IAC7B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CA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CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAChD;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,wCAAwC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,sBAAsB,CAOxF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,sBAAsB,GAC1B,sBAAsB,CAWxB;AAED,4DAA4D;AAC5D,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,sBAAsB,GAChC,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE;IACpC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B,GAAG,sBAAsB,EAAE,CAgB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsystem-model.js","sourceRoot":"","sources":["../../src/types/subsystem-model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;
|
|
1
|
+
{"version":3,"file":"subsystem-model.js","sourceRoot":"","sources":["../../src/types/subsystem-model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAiaH;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,KAAc;IACrD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,CAA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E,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAClE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;gBACjB,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE;oBACX,EAAE;oBACF,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,SAAS,EAAE,IAAI,CAAC,SAAS;iBAC1B,CAAC,CAAC;aACJ;SACF;KACF;IACD,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5B,CAAC;AAlBD,4CAkBC"}
|
package/package.json
CHANGED
|
@@ -417,25 +417,6 @@
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
},
|
|
420
|
-
"callInfo": {
|
|
421
|
-
"type": "object",
|
|
422
|
-
"required": [
|
|
423
|
-
"nodeId",
|
|
424
|
-
"name"
|
|
425
|
-
],
|
|
426
|
-
"additionalProperties": false,
|
|
427
|
-
"properties": {
|
|
428
|
-
"nodeId": {
|
|
429
|
-
"type": "string"
|
|
430
|
-
},
|
|
431
|
-
"name": {
|
|
432
|
-
"type": "string"
|
|
433
|
-
},
|
|
434
|
-
"source_location": {
|
|
435
|
-
"type": "string"
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
420
|
"referenceInfo": {
|
|
440
421
|
"type": "object",
|
|
441
422
|
"required": [
|
|
@@ -491,9 +472,7 @@
|
|
|
491
472
|
"methods",
|
|
492
473
|
"properties",
|
|
493
474
|
"extends",
|
|
494
|
-
"implements"
|
|
495
|
-
"instantiations",
|
|
496
|
-
"references"
|
|
475
|
+
"implements"
|
|
497
476
|
],
|
|
498
477
|
"additionalProperties": false,
|
|
499
478
|
"properties": {
|
|
@@ -523,18 +502,6 @@
|
|
|
523
502
|
"items": {
|
|
524
503
|
"type": "string"
|
|
525
504
|
}
|
|
526
|
-
},
|
|
527
|
-
"instantiations": {
|
|
528
|
-
"type": "array",
|
|
529
|
-
"items": {
|
|
530
|
-
"$ref": "#/$defs/callInfo"
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
"references": {
|
|
534
|
-
"type": "array",
|
|
535
|
-
"items": {
|
|
536
|
-
"$ref": "#/$defs/referenceInfo"
|
|
537
|
-
}
|
|
538
505
|
}
|
|
539
506
|
}
|
|
540
507
|
},
|
|
@@ -542,9 +509,7 @@
|
|
|
542
509
|
"type": "object",
|
|
543
510
|
"required": [
|
|
544
511
|
"kind",
|
|
545
|
-
"parameters"
|
|
546
|
-
"callers",
|
|
547
|
-
"callees"
|
|
512
|
+
"parameters"
|
|
548
513
|
],
|
|
549
514
|
"additionalProperties": false,
|
|
550
515
|
"properties": {
|
|
@@ -562,18 +527,6 @@
|
|
|
562
527
|
},
|
|
563
528
|
"returnTypeRef": {
|
|
564
529
|
"$ref": "#/$defs/referenceInfo"
|
|
565
|
-
},
|
|
566
|
-
"callers": {
|
|
567
|
-
"type": "array",
|
|
568
|
-
"items": {
|
|
569
|
-
"$ref": "#/$defs/callInfo"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
"callees": {
|
|
573
|
-
"type": "array",
|
|
574
|
-
"items": {
|
|
575
|
-
"$ref": "#/$defs/callInfo"
|
|
576
|
-
}
|
|
577
530
|
}
|
|
578
531
|
}
|
|
579
532
|
},
|
|
@@ -605,11 +558,17 @@
|
|
|
605
558
|
},
|
|
606
559
|
"typeParamInfo": {
|
|
607
560
|
"type": "object",
|
|
608
|
-
"required": [
|
|
561
|
+
"required": [
|
|
562
|
+
"name"
|
|
563
|
+
],
|
|
609
564
|
"additionalProperties": false,
|
|
610
565
|
"properties": {
|
|
611
|
-
"name": {
|
|
612
|
-
|
|
566
|
+
"name": {
|
|
567
|
+
"type": "string"
|
|
568
|
+
},
|
|
569
|
+
"constraint": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
}
|
|
613
572
|
}
|
|
614
573
|
},
|
|
615
574
|
"callableTypeInfo": {
|
|
@@ -618,27 +577,35 @@
|
|
|
618
577
|
"properties": {
|
|
619
578
|
"parameters": {
|
|
620
579
|
"type": "array",
|
|
621
|
-
"items": {
|
|
580
|
+
"items": {
|
|
581
|
+
"$ref": "#/$defs/paramInfo"
|
|
582
|
+
}
|
|
622
583
|
},
|
|
623
|
-
"returnType": {
|
|
584
|
+
"returnType": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
}
|
|
624
587
|
}
|
|
625
588
|
},
|
|
626
589
|
"enumMemberInfo": {
|
|
627
590
|
"type": "object",
|
|
628
|
-
"required": [
|
|
591
|
+
"required": [
|
|
592
|
+
"name"
|
|
593
|
+
],
|
|
629
594
|
"additionalProperties": false,
|
|
630
595
|
"properties": {
|
|
631
|
-
"name": {
|
|
632
|
-
|
|
596
|
+
"name": {
|
|
597
|
+
"type": "string"
|
|
598
|
+
},
|
|
599
|
+
"value": {
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
633
602
|
}
|
|
634
603
|
},
|
|
635
604
|
"typeDeclaration": {
|
|
636
605
|
"type": "object",
|
|
637
606
|
"required": [
|
|
638
607
|
"kind",
|
|
639
|
-
"properties"
|
|
640
|
-
"usedBy",
|
|
641
|
-
"implementors"
|
|
608
|
+
"properties"
|
|
642
609
|
],
|
|
643
610
|
"additionalProperties": false,
|
|
644
611
|
"description": "Type-family declaration (interface / type alias / enum). Prefer structured buckets; use `rhs` when none fit.",
|
|
@@ -652,31 +619,29 @@
|
|
|
652
619
|
"$ref": "#/$defs/propertyInfo"
|
|
653
620
|
}
|
|
654
621
|
},
|
|
655
|
-
"
|
|
622
|
+
"generics": {
|
|
656
623
|
"type": "array",
|
|
657
624
|
"items": {
|
|
658
|
-
"$ref": "#/$defs/
|
|
625
|
+
"$ref": "#/$defs/typeParamInfo"
|
|
659
626
|
}
|
|
660
627
|
},
|
|
661
|
-
"
|
|
628
|
+
"signature": {
|
|
629
|
+
"$ref": "#/$defs/callableTypeInfo"
|
|
630
|
+
},
|
|
631
|
+
"enumMembers": {
|
|
662
632
|
"type": "array",
|
|
663
633
|
"items": {
|
|
664
|
-
"
|
|
634
|
+
"$ref": "#/$defs/enumMemberInfo"
|
|
665
635
|
}
|
|
666
636
|
},
|
|
667
|
-
"
|
|
668
|
-
"type": "
|
|
669
|
-
"items": { "$ref": "#/$defs/typeParamInfo" }
|
|
670
|
-
},
|
|
671
|
-
"signature": { "$ref": "#/$defs/callableTypeInfo" },
|
|
672
|
-
"enumMembers": {
|
|
673
|
-
"type": "array",
|
|
674
|
-
"items": { "$ref": "#/$defs/enumMemberInfo" }
|
|
637
|
+
"aliasOf": {
|
|
638
|
+
"type": "string"
|
|
675
639
|
},
|
|
676
|
-
"aliasOf": { "type": "string" },
|
|
677
640
|
"unionOf": {
|
|
678
641
|
"type": "array",
|
|
679
|
-
"items": {
|
|
642
|
+
"items": {
|
|
643
|
+
"type": "string"
|
|
644
|
+
}
|
|
680
645
|
},
|
|
681
646
|
"rhs": {
|
|
682
647
|
"type": "string",
|
|
@@ -687,8 +652,7 @@
|
|
|
687
652
|
"externalDeclaration": {
|
|
688
653
|
"type": "object",
|
|
689
654
|
"required": [
|
|
690
|
-
"kind"
|
|
691
|
-
"label"
|
|
655
|
+
"kind"
|
|
692
656
|
],
|
|
693
657
|
"additionalProperties": false,
|
|
694
658
|
"properties": {
|
|
@@ -697,9 +661,17 @@
|
|
|
697
661
|
},
|
|
698
662
|
"label": {
|
|
699
663
|
"type": "string",
|
|
700
|
-
"description": "
|
|
664
|
+
"description": "Short name for the dependency. Optional — renderers fall back to the component's `name`, so a record may carry only `attributes`."
|
|
665
|
+
},
|
|
666
|
+
"attributes": {
|
|
667
|
+
"type": "array",
|
|
668
|
+
"description": "Authored key/value pairs (e.g. endpoints, install command, db path, access mode).",
|
|
669
|
+
"items": {
|
|
670
|
+
"$ref": "#/$defs/customEntityAttribute"
|
|
671
|
+
}
|
|
701
672
|
}
|
|
702
|
-
}
|
|
673
|
+
},
|
|
674
|
+
"description": "Declaration for `construct: external` (a named dependency with no backing source declaration — a remote API, CLI, or third-party package). Authored, never extracted. Rendered as `external 'label'` plus the key/value attribute lines; `label` falls back to the component name when absent."
|
|
703
675
|
},
|
|
704
676
|
"storeDeclaration": {
|
|
705
677
|
"type": "object",
|
|
@@ -721,7 +693,11 @@
|
|
|
721
693
|
},
|
|
722
694
|
"storage": {
|
|
723
695
|
"type": "string",
|
|
724
|
-
"enum": [
|
|
696
|
+
"enum": [
|
|
697
|
+
"memory",
|
|
698
|
+
"disk",
|
|
699
|
+
"external"
|
|
700
|
+
],
|
|
725
701
|
"description": "Where the retained state physically lives / who mediates access. Authored — graphify cannot infer it: `memory` = process-lifetime RAM, `disk` = this process reads/writes the filesystem, `external` = mediated by another system (db/service)."
|
|
726
702
|
},
|
|
727
703
|
"valueType": {
|
|
@@ -126,12 +126,6 @@ export interface SubsystemMethodInfo {
|
|
|
126
126
|
returnTypeRef?: SubsystemReferenceInfo;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export interface SubsystemCallInfo {
|
|
130
|
-
nodeId: string;
|
|
131
|
-
name: string;
|
|
132
|
-
source_location?: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
129
|
export interface SubsystemReferenceInfo {
|
|
136
130
|
nodeId: string;
|
|
137
131
|
name: string;
|
|
@@ -145,8 +139,6 @@ export interface SubsystemClassDeclaration {
|
|
|
145
139
|
properties: SubsystemPropertyInfo[];
|
|
146
140
|
extends: string[];
|
|
147
141
|
implements: string[];
|
|
148
|
-
instantiations: SubsystemCallInfo[];
|
|
149
|
-
references: SubsystemReferenceInfo[];
|
|
150
142
|
}
|
|
151
143
|
|
|
152
144
|
export interface SubsystemFunctionDeclaration {
|
|
@@ -154,8 +146,6 @@ export interface SubsystemFunctionDeclaration {
|
|
|
154
146
|
parameters: SubsystemParamInfo[];
|
|
155
147
|
returnType?: string;
|
|
156
148
|
returnTypeRef?: SubsystemReferenceInfo;
|
|
157
|
-
callers: SubsystemCallInfo[];
|
|
158
|
-
callees: SubsystemCallInfo[];
|
|
159
149
|
}
|
|
160
150
|
|
|
161
151
|
export interface SubsystemMethodDeclaration {
|
|
@@ -191,8 +181,6 @@ export interface SubsystemEnumMemberInfo {
|
|
|
191
181
|
export interface SubsystemTypeDeclaration {
|
|
192
182
|
kind: 'type';
|
|
193
183
|
properties: SubsystemPropertyInfo[];
|
|
194
|
-
usedBy: SubsystemReferenceInfo[];
|
|
195
|
-
implementors: string[];
|
|
196
184
|
/** Generic type parameters, e.g. `<K extends keyof StudioMessages>`. */
|
|
197
185
|
generics?: SubsystemTypeParamInfo[];
|
|
198
186
|
/** Callable type — `(params) => returnType`. */
|
|
@@ -210,9 +198,24 @@ export interface SubsystemTypeDeclaration {
|
|
|
210
198
|
rhs?: string;
|
|
211
199
|
}
|
|
212
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Declaration for `construct: external` — a named dependency with no backing
|
|
203
|
+
* source declaration (a remote API, a CLI, a third-party package). Authored,
|
|
204
|
+
* never extracted.
|
|
205
|
+
*
|
|
206
|
+
* `label` is the short name shown in the declaration block; it falls back to the
|
|
207
|
+
* component's `name` when absent, so a record may carry only `attributes`.
|
|
208
|
+
* `attributes` are authored key/value pairs (endpoints, install commands, a db
|
|
209
|
+
* path) rendered beneath the label, mirroring `custom_entity`.
|
|
210
|
+
*
|
|
211
|
+
* Both are optional because a bare "this depends on X" with nothing more to say
|
|
212
|
+
* is a legitimate model — requiring an empty `attributes: []` would be padding
|
|
213
|
+
* for its own sake.
|
|
214
|
+
*/
|
|
213
215
|
export interface SubsystemExternalDeclaration {
|
|
214
216
|
kind: 'external';
|
|
215
|
-
label
|
|
217
|
+
label?: string;
|
|
218
|
+
attributes?: SubsystemCustomEntityAttribute[];
|
|
216
219
|
}
|
|
217
220
|
|
|
218
221
|
export interface SubsystemStoreDeclaration {
|