sysprom 1.17.0 → 1.18.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 +145 -75
- package/dist/schema.json +2 -1
- package/dist/src/cli/commands/graph.d.ts +15 -0
- package/dist/src/cli/commands/graph.js +51 -2
- package/dist/src/cli/commands/init.d.ts +1 -1
- package/dist/src/cli/commands/json2md.d.ts +30 -1
- package/dist/src/cli/commands/json2md.js +42 -1
- package/dist/src/cli/commands/md2json.d.ts +1 -1
- package/dist/src/cli/commands/sync.d.ts +1 -1
- package/dist/src/cli/define-command.d.ts +1 -1
- package/dist/src/cli/define-command.js +176 -156
- package/dist/src/endpoint-types.js +13 -6
- package/dist/src/json-to-md.d.ts +32 -2
- package/dist/src/json-to-md.js +145 -5
- package/dist/src/md-to-json.js +7 -0
- package/dist/src/operations/add-node.d.ts +12 -9
- package/dist/src/operations/add-plan-task.d.ts +8 -6
- package/dist/src/operations/add-relationship.d.ts +11 -8
- package/dist/src/operations/check.d.ts +4 -3
- package/dist/src/operations/define-operation.d.ts +1 -1
- package/dist/src/operations/graph-decision.d.ts +329 -0
- package/dist/src/operations/graph-decision.js +96 -0
- package/dist/src/operations/graph-dependency.d.ts +329 -0
- package/dist/src/operations/graph-dependency.js +121 -0
- package/dist/src/operations/graph-refinement.d.ts +329 -0
- package/dist/src/operations/graph-refinement.js +97 -0
- package/dist/src/operations/graph-shared.d.ts +116 -0
- package/dist/src/operations/graph-shared.js +257 -0
- package/dist/src/operations/graph.d.ts +20 -4
- package/dist/src/operations/graph.js +129 -36
- package/dist/src/operations/index.d.ts +3 -0
- package/dist/src/operations/index.js +3 -0
- package/dist/src/operations/infer-completeness.d.ts +4 -3
- package/dist/src/operations/infer-derived.d.ts +4 -3
- package/dist/src/operations/infer-impact.d.ts +28 -21
- package/dist/src/operations/infer-lifecycle.d.ts +4 -3
- package/dist/src/operations/init-document.d.ts +4 -3
- package/dist/src/operations/json-to-markdown.d.ts +28 -3
- package/dist/src/operations/json-to-markdown.js +11 -1
- package/dist/src/operations/mark-task-done.d.ts +8 -6
- package/dist/src/operations/mark-task-undone.d.ts +8 -6
- package/dist/src/operations/markdown-to-json.d.ts +4 -3
- package/dist/src/operations/next-id.d.ts +4 -3
- package/dist/src/operations/node-history.d.ts +4 -3
- package/dist/src/operations/plan-add-task.d.ts +8 -6
- package/dist/src/operations/plan-gate.d.ts +4 -3
- package/dist/src/operations/plan-init.d.ts +4 -3
- package/dist/src/operations/plan-progress.d.ts +4 -3
- package/dist/src/operations/plan-status.d.ts +4 -3
- package/dist/src/operations/query-node.d.ts +24 -17
- package/dist/src/operations/query-nodes.d.ts +8 -6
- package/dist/src/operations/query-relationships.d.ts +7 -5
- package/dist/src/operations/remove-node.d.ts +12 -9
- package/dist/src/operations/remove-relationship.d.ts +10 -7
- package/dist/src/operations/rename.d.ts +8 -6
- package/dist/src/operations/search.d.ts +8 -6
- package/dist/src/operations/speckit-diff.d.ts +4 -3
- package/dist/src/operations/speckit-export.d.ts +4 -3
- package/dist/src/operations/speckit-import.d.ts +4 -3
- package/dist/src/operations/speckit-sync.d.ts +12 -9
- package/dist/src/operations/state-at.d.ts +4 -3
- package/dist/src/operations/stats.d.ts +4 -3
- package/dist/src/operations/sync.d.ts +12 -9
- package/dist/src/operations/task-list.d.ts +4 -3
- package/dist/src/operations/timeline.d.ts +4 -3
- package/dist/src/operations/trace-from-node.d.ts +12 -9
- package/dist/src/operations/update-metadata.d.ts +8 -6
- package/dist/src/operations/update-node.d.ts +11 -8
- package/dist/src/operations/update-plan-task.d.ts +8 -6
- package/dist/src/operations/validate.d.ts +4 -3
- package/dist/src/schema.d.ts +15 -10
- package/dist/src/schema.js +3 -11
- package/dist/src/utils/define-schema.d.ts +17 -0
- package/dist/src/utils/define-schema.js +21 -0
- package/package.json +98 -93
- package/schema.json +2 -1
package/dist/src/json-to-md.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { NODE_FILE_MAP, NODE_TYPE_LABELS, NodeType, RelationshipType, RELATIONSHIP_TYPE_LABELS, } from "./schema.js";
|
|
4
|
+
import { graphOp } from "./operations/graph.js";
|
|
5
|
+
import { graphRefinementOp } from "./operations/graph-refinement.js";
|
|
6
|
+
import { graphDecisionOp } from "./operations/graph-decision.js";
|
|
7
|
+
import { graphDependencyOp } from "./operations/graph-dependency.js";
|
|
4
8
|
// ---------------------------------------------------------------------------
|
|
5
9
|
// Text helpers
|
|
6
10
|
// ---------------------------------------------------------------------------
|
|
@@ -25,7 +29,13 @@ function renderFrontMatter(fields) {
|
|
|
25
29
|
// ---------------------------------------------------------------------------
|
|
26
30
|
// Node location map (for hyperlinking)
|
|
27
31
|
// ---------------------------------------------------------------------------
|
|
28
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* GitHub-compatible heading anchor slug.
|
|
34
|
+
* @param text
|
|
35
|
+
* @example
|
|
36
|
+
* // Convert a heading into a GitHub-style slug
|
|
37
|
+
* // slugify('ID — Name') // 'id---name'
|
|
38
|
+
*/
|
|
29
39
|
function slugify(text) {
|
|
30
40
|
return text
|
|
31
41
|
.toLowerCase()
|
|
@@ -64,6 +74,10 @@ function fileForNodeType(type) {
|
|
|
64
74
|
* In single-file mode: `[ID](#anchor)`
|
|
65
75
|
* In multi-doc mode: `[ID](./FILE.md#anchor)`
|
|
66
76
|
* Falls back to plain ID if the node isn't in the map.
|
|
77
|
+
* @param id
|
|
78
|
+
* @param nodeMap
|
|
79
|
+
* @param currentFile
|
|
80
|
+
* @example
|
|
67
81
|
*/
|
|
68
82
|
function linkNodeId(id, nodeMap, currentFile) {
|
|
69
83
|
const loc = nodeMap.get(id);
|
|
@@ -412,9 +426,82 @@ function generateDocFile(doc, fileName, types, fromIdx, nodeMap) {
|
|
|
412
426
|
lines.push(...renderNodesGrouped(doc.nodes, types, fromIdx, 2, nodeMap, `${fileName}.md`));
|
|
413
427
|
return lines.join("\n") + "\n";
|
|
414
428
|
}
|
|
429
|
+
function generateDiagramsFile(doc, opts) {
|
|
430
|
+
const lines = [];
|
|
431
|
+
lines.push(renderFrontMatter({
|
|
432
|
+
title: "Diagrams",
|
|
433
|
+
doc_type: "diagrams",
|
|
434
|
+
}));
|
|
435
|
+
lines.push("");
|
|
436
|
+
lines.push("# Diagrams");
|
|
437
|
+
lines.push("");
|
|
438
|
+
lines.push("## Relationship Graph");
|
|
439
|
+
lines.push("");
|
|
440
|
+
lines.push("```mermaid");
|
|
441
|
+
lines.push(graphOp({
|
|
442
|
+
doc,
|
|
443
|
+
format: "mermaid",
|
|
444
|
+
layout: opts?.relationshipLayout ?? "TD",
|
|
445
|
+
labelMode: opts?.labelMode ?? "friendly",
|
|
446
|
+
cluster: true,
|
|
447
|
+
connectedOnly: false,
|
|
448
|
+
}));
|
|
449
|
+
lines.push("```");
|
|
450
|
+
lines.push("");
|
|
451
|
+
const refinement = graphRefinementOp({
|
|
452
|
+
doc,
|
|
453
|
+
format: "mermaid",
|
|
454
|
+
layout: opts?.refinementLayout ?? "TD",
|
|
455
|
+
labelMode: opts?.labelMode ?? "friendly",
|
|
456
|
+
});
|
|
457
|
+
if (refinement.includes("-->")) {
|
|
458
|
+
lines.push("## Refinement Chain");
|
|
459
|
+
lines.push("");
|
|
460
|
+
lines.push("```mermaid");
|
|
461
|
+
lines.push(refinement);
|
|
462
|
+
lines.push("```");
|
|
463
|
+
lines.push("");
|
|
464
|
+
}
|
|
465
|
+
const decisions = graphDecisionOp({
|
|
466
|
+
doc,
|
|
467
|
+
format: "mermaid",
|
|
468
|
+
layout: opts?.decisionLayout ?? "TD",
|
|
469
|
+
labelMode: opts?.labelMode ?? "friendly",
|
|
470
|
+
});
|
|
471
|
+
if (decisions.includes("-->")) {
|
|
472
|
+
lines.push("## Decision Map");
|
|
473
|
+
lines.push("");
|
|
474
|
+
lines.push("```mermaid");
|
|
475
|
+
lines.push(decisions);
|
|
476
|
+
lines.push("```");
|
|
477
|
+
lines.push("");
|
|
478
|
+
}
|
|
479
|
+
const dependencies = graphDependencyOp({
|
|
480
|
+
doc,
|
|
481
|
+
format: "mermaid",
|
|
482
|
+
layout: opts?.dependencyLayout ?? "LR",
|
|
483
|
+
labelMode: opts?.labelMode ?? "friendly",
|
|
484
|
+
});
|
|
485
|
+
if (dependencies.includes("-->") || dependencies.includes("-.->")) {
|
|
486
|
+
lines.push("## Dependency Graph");
|
|
487
|
+
lines.push("");
|
|
488
|
+
lines.push("```mermaid");
|
|
489
|
+
lines.push(dependencies);
|
|
490
|
+
lines.push("```");
|
|
491
|
+
lines.push("");
|
|
492
|
+
}
|
|
493
|
+
return lines.join("\n") + "\n";
|
|
494
|
+
}
|
|
415
495
|
/**
|
|
416
496
|
* Convert a SysProM document to a single Markdown string.
|
|
417
497
|
* @param doc - The SysProM document to convert.
|
|
498
|
+
* @param options
|
|
499
|
+
* @param options.embedDiagrams
|
|
500
|
+
* @param options.labelMode
|
|
501
|
+
* @param options.relationshipLayout
|
|
502
|
+
* @param options.refinementLayout
|
|
503
|
+
* @param options.decisionLayout
|
|
504
|
+
* @param options.dependencyLayout
|
|
418
505
|
* @returns The Markdown representation.
|
|
419
506
|
* @example
|
|
420
507
|
* ```ts
|
|
@@ -422,7 +509,7 @@ function generateDocFile(doc, fileName, types, fromIdx, nodeMap) {
|
|
|
422
509
|
* writeFileSync("output.spm.md", md);
|
|
423
510
|
* ```
|
|
424
511
|
*/
|
|
425
|
-
export function jsonToMarkdownSingle(doc) {
|
|
512
|
+
export function jsonToMarkdownSingle(doc, options) {
|
|
426
513
|
const fromIdx = indexRelationshipsFrom(doc.relationships ?? []);
|
|
427
514
|
const nodeMap = buildNodeLocationMap(doc.nodes, "single-file");
|
|
428
515
|
const lines = [];
|
|
@@ -449,6 +536,26 @@ export function jsonToMarkdownSingle(doc) {
|
|
|
449
536
|
"version",
|
|
450
537
|
];
|
|
451
538
|
lines.push(...renderNodesGrouped(doc.nodes, allTypes, fromIdx, 2, nodeMap));
|
|
539
|
+
// Diagrams section
|
|
540
|
+
if (options?.embedDiagrams &&
|
|
541
|
+
doc.relationships &&
|
|
542
|
+
doc.relationships.length > 0) {
|
|
543
|
+
lines.push("## Diagrams");
|
|
544
|
+
lines.push("");
|
|
545
|
+
lines.push("### Relationship Graph");
|
|
546
|
+
lines.push("");
|
|
547
|
+
lines.push("```mermaid");
|
|
548
|
+
lines.push(graphOp({
|
|
549
|
+
doc,
|
|
550
|
+
format: "mermaid",
|
|
551
|
+
layout: options?.relationshipLayout ?? "TD",
|
|
552
|
+
labelMode: options?.labelMode ?? "friendly",
|
|
553
|
+
cluster: true,
|
|
554
|
+
connectedOnly: false,
|
|
555
|
+
}));
|
|
556
|
+
lines.push("```");
|
|
557
|
+
lines.push("");
|
|
558
|
+
}
|
|
452
559
|
// Relationships summary
|
|
453
560
|
if (doc.relationships && doc.relationships.length > 0) {
|
|
454
561
|
lines.push("## Relationships");
|
|
@@ -479,12 +586,19 @@ export function jsonToMarkdownSingle(doc) {
|
|
|
479
586
|
* Convert a SysProM document to a multi-document Markdown folder.
|
|
480
587
|
* @param doc - The SysProM document to convert.
|
|
481
588
|
* @param outDir - Output directory path.
|
|
589
|
+
* @param options
|
|
590
|
+
* @param options.embedDiagrams
|
|
591
|
+
* @param options.labelMode
|
|
592
|
+
* @param options.relationshipLayout
|
|
593
|
+
* @param options.refinementLayout
|
|
594
|
+
* @param options.decisionLayout
|
|
595
|
+
* @param options.dependencyLayout
|
|
482
596
|
* @example
|
|
483
597
|
* ```ts
|
|
484
598
|
* jsonToMarkdownMultiDoc(doc, "./SysProM");
|
|
485
599
|
* ```
|
|
486
600
|
*/
|
|
487
|
-
export function jsonToMarkdownMultiDoc(doc, outDir) {
|
|
601
|
+
export function jsonToMarkdownMultiDoc(doc, outDir, options) {
|
|
488
602
|
mkdirSync(outDir, { recursive: true });
|
|
489
603
|
const fromIdx = indexRelationshipsFrom(doc.relationships ?? []);
|
|
490
604
|
const nodeMap = buildNodeLocationMap(doc.nodes, "multi-doc");
|
|
@@ -495,6 +609,18 @@ export function jsonToMarkdownMultiDoc(doc, outDir) {
|
|
|
495
609
|
continue;
|
|
496
610
|
writeFileSync(join(outDir, `${fileName}.md`), generateDocFile(doc, fileName, types, fromIdx, nodeMap));
|
|
497
611
|
}
|
|
612
|
+
// Diagrams file
|
|
613
|
+
if (options?.embedDiagrams &&
|
|
614
|
+
doc.relationships &&
|
|
615
|
+
doc.relationships.length > 0) {
|
|
616
|
+
writeFileSync(join(outDir, "DIAGRAMS.md"), generateDiagramsFile(doc, {
|
|
617
|
+
labelMode: options?.labelMode ?? "friendly",
|
|
618
|
+
relationshipLayout: options?.relationshipLayout,
|
|
619
|
+
refinementLayout: options?.refinementLayout,
|
|
620
|
+
decisionLayout: options?.decisionLayout,
|
|
621
|
+
dependencyLayout: options?.dependencyLayout,
|
|
622
|
+
}));
|
|
623
|
+
}
|
|
498
624
|
// Subsystem folders or single files
|
|
499
625
|
const subsystemNodes = doc.nodes.filter((n) => n.subsystem);
|
|
500
626
|
// Count subsystems per type to decide automatic grouping
|
|
@@ -556,9 +682,23 @@ export function jsonToMarkdownMultiDoc(doc, outDir) {
|
|
|
556
682
|
*/
|
|
557
683
|
export function jsonToMarkdown(doc, output, options) {
|
|
558
684
|
if (options.form === "single-file") {
|
|
559
|
-
writeFileSync(output, jsonToMarkdownSingle(doc
|
|
685
|
+
writeFileSync(output, jsonToMarkdownSingle(doc, {
|
|
686
|
+
embedDiagrams: options.embedDiagrams,
|
|
687
|
+
labelMode: options.labelMode,
|
|
688
|
+
relationshipLayout: options.relationshipLayout,
|
|
689
|
+
refinementLayout: options.refinementLayout,
|
|
690
|
+
decisionLayout: options.decisionLayout,
|
|
691
|
+
dependencyLayout: options.dependencyLayout,
|
|
692
|
+
}));
|
|
560
693
|
}
|
|
561
694
|
else {
|
|
562
|
-
jsonToMarkdownMultiDoc(doc, output
|
|
695
|
+
jsonToMarkdownMultiDoc(doc, output, {
|
|
696
|
+
embedDiagrams: options.embedDiagrams,
|
|
697
|
+
labelMode: options.labelMode,
|
|
698
|
+
relationshipLayout: options.relationshipLayout,
|
|
699
|
+
refinementLayout: options.refinementLayout,
|
|
700
|
+
decisionLayout: options.decisionLayout,
|
|
701
|
+
dependencyLayout: options.dependencyLayout,
|
|
702
|
+
});
|
|
563
703
|
}
|
|
564
704
|
}
|
package/dist/src/md-to-json.js
CHANGED
|
@@ -3,6 +3,13 @@ import { readFileSync, existsSync, readdirSync, statSync } from "node:fs";
|
|
|
3
3
|
import { join, basename } from "node:path";
|
|
4
4
|
import { NODE_FILE_MAP, NODE_LABEL_TO_TYPE, RELATIONSHIP_TYPE_LABELS, RELATIONSHIP_LABEL_TO_TYPE, NodeType, RelationshipType, NodeStatus, ExternalReferenceRole, } from "./schema.js";
|
|
5
5
|
/** Strip markdown link syntax `[text](url)` → `text`. */
|
|
6
|
+
/**
|
|
7
|
+
* Strip markdown link syntax `[text](url)` → `text`.
|
|
8
|
+
* @param s - Markdown text potentially containing links
|
|
9
|
+
* @returns Text with markdown links removed
|
|
10
|
+
* @example
|
|
11
|
+
* // stripMarkdownLink('[Hello](https://example.com)') // 'Hello'
|
|
12
|
+
*/
|
|
6
13
|
function stripMarkdownLink(s) {
|
|
7
14
|
return s.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1");
|
|
8
15
|
}
|
|
@@ -194,8 +194,9 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
194
194
|
requires: "requires";
|
|
195
195
|
disables: "disables";
|
|
196
196
|
influence: "influence";
|
|
197
|
+
justifies: "justifies";
|
|
197
198
|
}> & {
|
|
198
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
199
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
199
200
|
};
|
|
200
201
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
201
202
|
is(value: unknown): value is string | string[];
|
|
@@ -214,7 +215,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
214
215
|
[x: string]: unknown;
|
|
215
216
|
from: string;
|
|
216
217
|
to: string;
|
|
217
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
218
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
218
219
|
description?: string | string[] | undefined;
|
|
219
220
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
220
221
|
strength?: number | undefined;
|
|
@@ -305,7 +306,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
305
306
|
[x: string]: unknown;
|
|
306
307
|
from: string;
|
|
307
308
|
to: string;
|
|
308
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
309
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
309
310
|
description?: string | string[] | undefined;
|
|
310
311
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
311
312
|
strength?: number | undefined;
|
|
@@ -502,8 +503,9 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
502
503
|
requires: "requires";
|
|
503
504
|
disables: "disables";
|
|
504
505
|
influence: "influence";
|
|
506
|
+
justifies: "justifies";
|
|
505
507
|
}> & {
|
|
506
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
508
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
507
509
|
};
|
|
508
510
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
509
511
|
is(value: unknown): value is string | string[];
|
|
@@ -522,7 +524,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
522
524
|
[x: string]: unknown;
|
|
523
525
|
from: string;
|
|
524
526
|
to: string;
|
|
525
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
527
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
526
528
|
description?: string | string[] | undefined;
|
|
527
529
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
528
530
|
strength?: number | undefined;
|
|
@@ -613,7 +615,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
613
615
|
[x: string]: unknown;
|
|
614
616
|
from: string;
|
|
615
617
|
to: string;
|
|
616
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
618
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
617
619
|
description?: string | string[] | undefined;
|
|
618
620
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
619
621
|
strength?: number | undefined;
|
|
@@ -815,8 +817,9 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
815
817
|
requires: "requires";
|
|
816
818
|
disables: "disables";
|
|
817
819
|
influence: "influence";
|
|
820
|
+
justifies: "justifies";
|
|
818
821
|
}> & {
|
|
819
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
822
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
820
823
|
};
|
|
821
824
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
822
825
|
is(value: unknown): value is string | string[];
|
|
@@ -835,7 +838,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
835
838
|
[x: string]: unknown;
|
|
836
839
|
from: string;
|
|
837
840
|
to: string;
|
|
838
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
841
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
839
842
|
description?: string | string[] | undefined;
|
|
840
843
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
841
844
|
strength?: number | undefined;
|
|
@@ -926,7 +929,7 @@ export declare const addNodeOp: import("./define-operation.js").DefinedOperation
|
|
|
926
929
|
[x: string]: unknown;
|
|
927
930
|
from: string;
|
|
928
931
|
to: string;
|
|
929
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
932
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
930
933
|
description?: string | string[] | undefined;
|
|
931
934
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
932
935
|
strength?: number | undefined;
|
|
@@ -188,8 +188,9 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
188
188
|
requires: "requires";
|
|
189
189
|
disables: "disables";
|
|
190
190
|
influence: "influence";
|
|
191
|
+
justifies: "justifies";
|
|
191
192
|
}> & {
|
|
192
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
193
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
193
194
|
};
|
|
194
195
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
195
196
|
is(value: unknown): value is string | string[];
|
|
@@ -208,7 +209,7 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
208
209
|
[x: string]: unknown;
|
|
209
210
|
from: string;
|
|
210
211
|
to: string;
|
|
211
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
212
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
212
213
|
description?: string | string[] | undefined;
|
|
213
214
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
214
215
|
strength?: number | undefined;
|
|
@@ -299,7 +300,7 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
299
300
|
[x: string]: unknown;
|
|
300
301
|
from: string;
|
|
301
302
|
to: string;
|
|
302
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
303
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
303
304
|
description?: string | string[] | undefined;
|
|
304
305
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
305
306
|
strength?: number | undefined;
|
|
@@ -499,8 +500,9 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
499
500
|
requires: "requires";
|
|
500
501
|
disables: "disables";
|
|
501
502
|
influence: "influence";
|
|
503
|
+
justifies: "justifies";
|
|
502
504
|
}> & {
|
|
503
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
505
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
504
506
|
};
|
|
505
507
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
506
508
|
is(value: unknown): value is string | string[];
|
|
@@ -519,7 +521,7 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
519
521
|
[x: string]: unknown;
|
|
520
522
|
from: string;
|
|
521
523
|
to: string;
|
|
522
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
524
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
523
525
|
description?: string | string[] | undefined;
|
|
524
526
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
525
527
|
strength?: number | undefined;
|
|
@@ -610,7 +612,7 @@ export declare const addPlanTaskOp: import("./define-operation.js").DefinedOpera
|
|
|
610
612
|
[x: string]: unknown;
|
|
611
613
|
from: string;
|
|
612
614
|
to: string;
|
|
613
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
615
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
614
616
|
description?: string | string[] | undefined;
|
|
615
617
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
616
618
|
strength?: number | undefined;
|
|
@@ -188,8 +188,9 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
188
188
|
requires: "requires";
|
|
189
189
|
disables: "disables";
|
|
190
190
|
influence: "influence";
|
|
191
|
+
justifies: "justifies";
|
|
191
192
|
}> & {
|
|
192
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
193
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
193
194
|
};
|
|
194
195
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
195
196
|
is(value: unknown): value is string | string[];
|
|
@@ -208,7 +209,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
208
209
|
[x: string]: unknown;
|
|
209
210
|
from: string;
|
|
210
211
|
to: string;
|
|
211
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
212
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
212
213
|
description?: string | string[] | undefined;
|
|
213
214
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
214
215
|
strength?: number | undefined;
|
|
@@ -299,7 +300,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
299
300
|
[x: string]: unknown;
|
|
300
301
|
from: string;
|
|
301
302
|
to: string;
|
|
302
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
303
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
303
304
|
description?: string | string[] | undefined;
|
|
304
305
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
305
306
|
strength?: number | undefined;
|
|
@@ -342,8 +343,9 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
342
343
|
requires: "requires";
|
|
343
344
|
disables: "disables";
|
|
344
345
|
influence: "influence";
|
|
346
|
+
justifies: "justifies";
|
|
345
347
|
}> & {
|
|
346
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
348
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
347
349
|
};
|
|
348
350
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
349
351
|
is(value: unknown): value is string | string[];
|
|
@@ -362,7 +364,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
362
364
|
[x: string]: unknown;
|
|
363
365
|
from: string;
|
|
364
366
|
to: string;
|
|
365
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
367
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
366
368
|
description?: string | string[] | undefined;
|
|
367
369
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
368
370
|
strength?: number | undefined;
|
|
@@ -552,8 +554,9 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
552
554
|
requires: "requires";
|
|
553
555
|
disables: "disables";
|
|
554
556
|
influence: "influence";
|
|
557
|
+
justifies: "justifies";
|
|
555
558
|
}> & {
|
|
556
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
559
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
557
560
|
};
|
|
558
561
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
559
562
|
is(value: unknown): value is string | string[];
|
|
@@ -572,7 +575,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
572
575
|
[x: string]: unknown;
|
|
573
576
|
from: string;
|
|
574
577
|
to: string;
|
|
575
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
578
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
576
579
|
description?: string | string[] | undefined;
|
|
577
580
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
578
581
|
strength?: number | undefined;
|
|
@@ -663,7 +666,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
|
|
|
663
666
|
[x: string]: unknown;
|
|
664
667
|
from: string;
|
|
665
668
|
to: string;
|
|
666
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
669
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
667
670
|
description?: string | string[] | undefined;
|
|
668
671
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
669
672
|
strength?: number | undefined;
|
|
@@ -189,8 +189,9 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
|
|
|
189
189
|
requires: "requires";
|
|
190
190
|
disables: "disables";
|
|
191
191
|
influence: "influence";
|
|
192
|
+
justifies: "justifies";
|
|
192
193
|
}> & {
|
|
193
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
194
|
+
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
194
195
|
};
|
|
195
196
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
196
197
|
is(value: unknown): value is string | string[];
|
|
@@ -209,7 +210,7 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
|
|
|
209
210
|
[x: string]: unknown;
|
|
210
211
|
from: string;
|
|
211
212
|
to: string;
|
|
212
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
213
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
213
214
|
description?: string | string[] | undefined;
|
|
214
215
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
215
216
|
strength?: number | undefined;
|
|
@@ -300,7 +301,7 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
|
|
|
300
301
|
[x: string]: unknown;
|
|
301
302
|
from: string;
|
|
302
303
|
to: string;
|
|
303
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence";
|
|
304
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
|
|
304
305
|
description?: string | string[] | undefined;
|
|
305
306
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
306
307
|
strength?: number | undefined;
|
|
@@ -24,7 +24,7 @@ export interface OperationDef<TInput extends z.ZodType = z.ZodType, TOutput exte
|
|
|
24
24
|
* @template TInput - Zod schema type for the operation's input.
|
|
25
25
|
* @template TOutput - Zod schema type for the operation's output.
|
|
26
26
|
*/
|
|
27
|
-
export type DefinedOperation<TInput extends z.ZodType = z.ZodType, TOutput extends z.ZodType = z.ZodType> = ((input: z.
|
|
27
|
+
export type DefinedOperation<TInput extends z.ZodType = z.ZodType, TOutput extends z.ZodType = z.ZodType> = ((input: z.input<TInput>) => z.infer<TOutput>) & {
|
|
28
28
|
/** The full operation definition including name, description, and schemas. */
|
|
29
29
|
def: OperationDef<TInput, TOutput>;
|
|
30
30
|
/** Zod schema for validating input before execution. */
|