@skhema/method 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/README.md +36 -0
- package/dist/definitions.d.ts +30 -0
- package/dist/definitions.d.ts.map +1 -0
- package/dist/definitions.js +1117 -0
- package/dist/definitions.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +50 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +92 -0
- package/dist/registry.js.map +1 -0
- package/dist/types.d.ts +83 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/validate.d.ts +4 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +148 -0
- package/dist/validate.js.map +1 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# `@skhema/method`
|
|
2
|
+
|
|
3
|
+
This package is the emerging public boundary for stable Skhema methodology
|
|
4
|
+
definitions.
|
|
5
|
+
|
|
6
|
+
Schema identity comes from `@skhema/types/schema`. This package should not
|
|
7
|
+
redefine canonical component values, element values, labels, acronyms, or
|
|
8
|
+
component-element mapping.
|
|
9
|
+
|
|
10
|
+
It should own:
|
|
11
|
+
|
|
12
|
+
- component and element definitions
|
|
13
|
+
- expected moods
|
|
14
|
+
- method slot definitions
|
|
15
|
+
- required vs optional slots
|
|
16
|
+
- labels, descriptions, examples
|
|
17
|
+
- valid element relationships
|
|
18
|
+
- extension points for future/custom method variants
|
|
19
|
+
|
|
20
|
+
`@skhema/intelligence` should consume these definitions for validation, prompt
|
|
21
|
+
building, parsing, slot replacement, graph ingestion, and reasoning.
|
|
22
|
+
|
|
23
|
+
The current definitions are a first curated pass from:
|
|
24
|
+
|
|
25
|
+
- `@skhema/types/schema`
|
|
26
|
+
- `data/working/sk_variable_semantic_and_verb_slots_config.json`
|
|
27
|
+
- `data/working/sk_variable_element_type_examples.json`
|
|
28
|
+
|
|
29
|
+
Known normalization:
|
|
30
|
+
|
|
31
|
+
- The working files use `associated_impact`; the canonical element value in
|
|
32
|
+
`@skhema/types/schema` is `impact`. The method package exposes `impact` and
|
|
33
|
+
keeps `associated_impact` as an alias.
|
|
34
|
+
- The working files use `solution_alternative`; the canonical element value in
|
|
35
|
+
`@skhema/types/schema` is `solution`. The method package exposes `solution`
|
|
36
|
+
and keeps `solution_alternative` as an alias.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ElementDefinition, ElementRelationshipDefinition } from "./types.js";
|
|
2
|
+
export declare const componentDefinitions: readonly [{
|
|
3
|
+
readonly type: "diagnosis";
|
|
4
|
+
readonly label: "Diagnosis";
|
|
5
|
+
readonly acronym: "BD";
|
|
6
|
+
readonly position: 1;
|
|
7
|
+
}, {
|
|
8
|
+
readonly type: "method";
|
|
9
|
+
readonly label: "Method & Positioning";
|
|
10
|
+
readonly acronym: "MP";
|
|
11
|
+
readonly position: 2;
|
|
12
|
+
}, {
|
|
13
|
+
readonly type: "initiatives";
|
|
14
|
+
readonly label: "Portfolio of Initiatives";
|
|
15
|
+
readonly acronym: "PI";
|
|
16
|
+
readonly position: 3;
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "measures";
|
|
19
|
+
readonly label: "Measures";
|
|
20
|
+
readonly acronym: "M";
|
|
21
|
+
readonly position: 4;
|
|
22
|
+
}, {
|
|
23
|
+
readonly type: "support";
|
|
24
|
+
readonly label: "Support Structures";
|
|
25
|
+
readonly acronym: "SS";
|
|
26
|
+
readonly position: 5;
|
|
27
|
+
}];
|
|
28
|
+
export declare const elementDefinitions: readonly [ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition, ElementDefinition];
|
|
29
|
+
export declare const elementRelationshipDefinitions: readonly [ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition, ElementRelationshipDefinition];
|
|
30
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,iBAAiB,EACjB,6BAA6B,EAU9B,MAAM,YAAY,CAAC;AA8qCpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;EA+BkB,CAAC;AAepD,eAAO,MAAM,kBAAkB,oXAyRkB,CAAC;AAElD,eAAO,MAAM,8BAA8B,wlBA0GkB,CAAC"}
|