@pipelex/mthds-ui 0.28.0 → 0.29.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/dist/{chunk-AE7AA5XC.js → chunk-3I3ZPYMW.js} +13 -1
- package/dist/chunk-3I3ZPYMW.js.map +1 -0
- package/dist/{chunk-7WJYQHYF.js → chunk-Y46574OW.js} +2 -2
- package/dist/{chunk-I7Z5TTQI.js → chunk-ZTXSDTVF.js} +81 -34
- package/dist/chunk-ZTXSDTVF.js.map +1 -0
- package/dist/form/react/index.d.ts +1 -1
- package/dist/form/react/index.js +2 -2
- package/dist/graph/index.d.ts +24 -9
- package/dist/graph/index.js +11 -3
- package/dist/graph/react/graph-core.css +12 -0
- package/dist/graph/react/index.d.ts +8 -4
- package/dist/graph/react/index.js +300 -263
- package/dist/graph/react/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -3
- package/dist/standalone/graph-standalone.html +138 -126
- package/dist/standalone/graph-viewer.css +12 -0
- package/dist/standalone/graph-viewer.js +126 -126
- package/dist/static-graph/index.d.ts +32 -9
- package/dist/static-graph/index.js +709 -88
- package/dist/static-graph/index.js.map +1 -1
- package/dist/{types-DvhUuMHz.d.ts → types-BaFWy56P.d.ts} +105 -12
- package/package.json +1 -1
- package/dist/chunk-AE7AA5XC.js.map +0 -1
- package/dist/chunk-I7Z5TTQI.js.map +0 -1
- /package/dist/{chunk-7WJYQHYF.js.map → chunk-Y46574OW.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as ConceptInfo, P as PipeBlueprintUnion, a as PresenceMarker, b as GraphSpec, V as ValidationIssue } from '../types-
|
|
1
|
+
import { C as ConceptInfo, P as PipeBlueprintUnion, a as PresenceMarker, b as GraphSpec, V as ValidationIssue } from '../types-BaFWy56P.js';
|
|
2
2
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
3
3
|
|
|
4
4
|
type DiagnosticSeverity = "error" | "warning";
|
|
5
|
-
type DiagnosticCode = "toml-parse-error" | "missing-domain" | "invalid-bundle-shape" | "invalid-concept-entry" | "invalid-pipe-entry" | "unknown-pipe-type" | "retired-signature-tag" | "invalid-concept-ref" | "unknown-input-slot-key" | "missing-pipe-output" | "invalid-sub-pipe" | "incomplete-batch-spec" | "duplicate-concept" | "duplicate-pipe" | "signature-type-mismatch" | "unresolved-pipe-ref" | "cyclic-pipe-ref" | "missing-main-pipe" | "no-entry-pipe" | "conflicting-input-concept";
|
|
5
|
+
type DiagnosticCode = "toml-parse-error" | "missing-domain" | "invalid-bundle-shape" | "invalid-concept-entry" | "invalid-pipe-entry" | "unknown-pipe-type" | "retired-signature-tag" | "invalid-concept-ref" | "unknown-input-slot-key" | "invalid-input-name" | "missing-pipe-output" | "invalid-sub-pipe" | "invalid-binding-step" | "binding-path-unresolved" | "incomplete-batch-spec" | "duplicate-concept" | "duplicate-pipe" | "signature-type-mismatch" | "unresolved-pipe-ref" | "cyclic-pipe-ref" | "missing-main-pipe" | "no-entry-pipe" | "conflicting-input-concept";
|
|
6
6
|
/**
|
|
7
7
|
* A non-fatal note collected while parsing or merging. `error` means a whole
|
|
8
8
|
* unit could not be interpreted (unparseable TOML, a skipped pipe); `warning`
|
|
@@ -28,6 +28,31 @@ interface Diagnostic {
|
|
|
28
28
|
*/
|
|
29
29
|
domain_code?: string;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* One field of a concept's declared structure, as the binding walk reads it:
|
|
33
|
+
* the four keys that decide what a path through the field reaches. A field
|
|
34
|
+
* written as a bare description string is a required text field, as pipelex
|
|
35
|
+
* reads that shorthand.
|
|
36
|
+
*/
|
|
37
|
+
interface StructureField {
|
|
38
|
+
/** The declared `type`, or null when the field declares none (a field defined by its `choices`). */
|
|
39
|
+
type: string | null;
|
|
40
|
+
/** `concept_ref` of a `concept` field, as authored. */
|
|
41
|
+
conceptRef: string | null;
|
|
42
|
+
/** `item_type` of a `list` field. */
|
|
43
|
+
itemType: string | null;
|
|
44
|
+
/** `item_concept_ref` of a list of concepts, as authored. */
|
|
45
|
+
itemConceptRef: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* What a concept declares for its structure, beside its `ConceptInfo`: its
|
|
49
|
+
* fields in declaration order, or the name of the Python class a
|
|
50
|
+
* `structure = "ClassName"` string points at, which a bundle does not show. A
|
|
51
|
+
* concept declaring no structure has no entry. This is kept apart from
|
|
52
|
+
* `ConceptInfo` on purpose: `ConceptInfo` is what a GraphSpec's
|
|
53
|
+
* `concept_registry` carries, and a dry or live spec carries no such field.
|
|
54
|
+
*/
|
|
55
|
+
type ConceptStructure = Record<string, StructureField> | string;
|
|
31
56
|
/**
|
|
32
57
|
* One `.mthds` file, parsed and normalized. Pipes are narrowed to the same
|
|
33
58
|
* `PipeBlueprintUnion` shapes the pipelex runtime serializes into GraphSpec
|
|
@@ -41,6 +66,8 @@ interface ParsedBundle {
|
|
|
41
66
|
system_prompt: string | null;
|
|
42
67
|
/** Concepts declared in this bundle, keyed by bare concept code. */
|
|
43
68
|
concepts: Record<string, ConceptInfo>;
|
|
69
|
+
/** The structures those concepts declare, keyed by bare concept code — what a binding step walks. */
|
|
70
|
+
structures: Record<string, ConceptStructure>;
|
|
44
71
|
/** Pipes declared in this bundle, keyed by bare pipe code. */
|
|
45
72
|
pipes: Record<string, PipeBlueprintUnion>;
|
|
46
73
|
}
|
|
@@ -48,10 +75,11 @@ interface ParseMthdsBundleResult {
|
|
|
48
75
|
bundle: ParsedBundle;
|
|
49
76
|
diagnostics: Diagnostic[];
|
|
50
77
|
}
|
|
51
|
-
/** Namespace of one domain after merging bundles: concepts and pipes by bare code. */
|
|
78
|
+
/** Namespace of one domain after merging bundles: concepts, their structures and pipes by bare code. */
|
|
52
79
|
interface DomainNamespace {
|
|
53
80
|
domain: string;
|
|
54
81
|
concepts: Record<string, ConceptInfo>;
|
|
82
|
+
structures: Record<string, ConceptStructure>;
|
|
55
83
|
pipes: Record<string, PipeBlueprintUnion>;
|
|
56
84
|
}
|
|
57
85
|
/**
|
|
@@ -96,11 +124,6 @@ interface InputSlotParts {
|
|
|
96
124
|
missingConcept: boolean;
|
|
97
125
|
/** Keys of an expanded slot table this version of the standard does not define. */
|
|
98
126
|
unknownKeys: string[];
|
|
99
|
-
/**
|
|
100
|
-
* True when the table is not a slot table at all but the wreckage of an
|
|
101
|
-
* unquoted dotted input name — see {@link looksLikeUnquotedDottedName}.
|
|
102
|
-
*/
|
|
103
|
-
dottedName: boolean;
|
|
104
127
|
}
|
|
105
128
|
/**
|
|
106
129
|
* Read one `inputs` value, whichever form authored it.
|
|
@@ -242,4 +265,4 @@ declare const MTHDS_SOURCES_EMBED_ID = "mthds-sources";
|
|
|
242
265
|
*/
|
|
243
266
|
declare function serializeMthdsSourcesEmbed(sources: readonly MthdsSource[]): string;
|
|
244
267
|
|
|
245
|
-
export { type ConceptRefParts, DEFAULT_BUNDLE_FILE_NAME, type Diagnostic, type DiagnosticCode, type DiagnosticSeverity, type DomainNamespace, type InputSlotParts, MTHDS_SOURCES_EMBED_ID, type MergedMethodSet, type MthdsSource, NATIVE_CONCEPT_CODES, NATIVE_DOMAIN, type ParseMthdsBundleResult, type ParsedBundle, type StaticGraphOptions, type StaticGraphResult, UNKNOWN_DOMAIN, buildStaticGraphSpec, buildStaticGraphSpecFromToml, hasTopLevelMainPipe, mergeBundles, orderMthdsSources, parseConceptRef, parseInputSlot, parseMthdsBundle, selectPrimaryMthdsSource, serializeMthdsSourcesEmbed, staticDiagnosticsToValidationIssues };
|
|
268
|
+
export { type ConceptRefParts, type ConceptStructure, DEFAULT_BUNDLE_FILE_NAME, type Diagnostic, type DiagnosticCode, type DiagnosticSeverity, type DomainNamespace, type InputSlotParts, MTHDS_SOURCES_EMBED_ID, type MergedMethodSet, type MthdsSource, NATIVE_CONCEPT_CODES, NATIVE_DOMAIN, type ParseMthdsBundleResult, type ParsedBundle, type StaticGraphOptions, type StaticGraphResult, type StructureField, UNKNOWN_DOMAIN, buildStaticGraphSpec, buildStaticGraphSpecFromToml, hasTopLevelMainPipe, mergeBundles, orderMthdsSources, parseConceptRef, parseInputSlot, parseMthdsBundle, selectPrimaryMthdsSource, serializeMthdsSourcesEmbed, staticDiagnosticsToValidationIssues };
|