@saasontools/strauss-kb 0.1.23 → 0.3.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/ARCHITECTURE.md +12 -0
- package/README.md +4 -3
- package/dist/{chunk-5IPQVXCM.js → chunk-4AJGI6WN.js} +2 -2
- package/dist/{chunk-3EZ3PAPA.js → chunk-EOSRZHWY.js} +2 -2
- package/dist/{chunk-XENLCPL5.js → chunk-MC5LUSZ3.js} +7648 -483
- package/dist/chunk-MC5LUSZ3.js.map +1 -0
- package/dist/cli-main.cjs +7706 -546
- package/dist/cli-main.cjs.map +1 -1
- package/dist/cli-main.js +2 -2
- package/dist/index.cjs +7564 -400
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -50
- package/dist/index.d.ts +100 -50
- package/dist/index.js +13 -3
- package/dist/mcp-main.cjs +7700 -540
- package/dist/mcp-main.cjs.map +1 -1
- package/dist/mcp-main.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-XENLCPL5.js.map +0 -1
- /package/dist/{chunk-5IPQVXCM.js.map → chunk-4AJGI6WN.js.map} +0 -0
- /package/dist/{chunk-3EZ3PAPA.js.map → chunk-EOSRZHWY.js.map} +0 -0
package/ARCHITECTURE.md
CHANGED
|
@@ -72,6 +72,18 @@ bundle would drop the record instead of naming it. Tolerant read, strict write:
|
|
|
72
72
|
`kb_impact` reports a superseded or rejected record and stops there. A withdrawn
|
|
73
73
|
record's declared dependencies are not obligations anyone still owes.
|
|
74
74
|
|
|
75
|
+
An edge is `strauss_links` and nothing else. A markdown link in a body renders
|
|
76
|
+
the same claim for a reader that knows only OKF, and `compose` writes both at
|
|
77
|
+
once, so a consumer that walked prose would count the edge twice and disagree
|
|
78
|
+
the moment the two drifted.
|
|
79
|
+
|
|
80
|
+
Two representations is what the package had, and it cost data: `sweep` read
|
|
81
|
+
frontmatter only and deleted records still cited in prose, while `doctor` read
|
|
82
|
+
prose only and missed a `related_to` at a superseded target. The repair was one
|
|
83
|
+
representation, not two readers: `compose` writes the link wherever it writes
|
|
84
|
+
the sentence, and `validate` is the only body read left, reporting that a
|
|
85
|
+
record's prose and its links have come apart.
|
|
86
|
+
|
|
75
87
|
## Rejected: a format that needs a parser
|
|
76
88
|
|
|
77
89
|
A hand-rolled frontmatter reader could not express nested maps, misreading every
|
package/README.md
CHANGED
|
@@ -128,10 +128,10 @@ later OKF key of the same name:
|
|
|
128
128
|
| `strauss_verify` | Checks that would confirm the record still holds. |
|
|
129
129
|
| `strauss_materiality` / `strauss_confidence` / `strauss_owner` | `blocking`/`important`/`non-blocking`, `low`/`medium`/`high`, and a name. |
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
The types differ in what their body answers and where they start in the
|
|
132
132
|
lifecycle: `fact`, `requirement`, `constraint`, `decision`, `assumption`,
|
|
133
133
|
`open-question`, `risk`, `contract`, `flow`, `affected-system`,
|
|
134
|
-
`
|
|
134
|
+
`source-note`.
|
|
135
135
|
|
|
136
136
|
`strauss-kb types` prints each one's purpose, sections, and initial status;
|
|
137
137
|
`strauss-kb schema` emits JSON Schema from the code that enforces it.
|
|
@@ -341,7 +341,7 @@ strauss-kb [--bundle PATH] <command> [args]
|
|
|
341
341
|
sweep --tag <tag> --terminal [--dry-run]
|
|
342
342
|
Delete tagged records that are resolved, rejected or superseded.
|
|
343
343
|
schema JSON Schema for the format.
|
|
344
|
-
types
|
|
344
|
+
types Every type, its sections and initial status.
|
|
345
345
|
pin [bundle-path] [flags] Pin a base. --mode, --profiles, --frozen; --local/--user pick the layer.
|
|
346
346
|
unpin [bundle-path] Remove a base from every manifest layer that holds it.
|
|
347
347
|
pins Every pinned base, with whether it resolves to records.
|
|
@@ -474,6 +474,7 @@ caveats: <https://saasontools.github.io/strauss-agent-tools/mcp-reference>.
|
|
|
474
474
|
and `unchecked`. All nine groups are reported even when empty; `--strict` gates
|
|
475
475
|
on expiry alone, not on drift. Pass `--repo-root PATH` when the base does not sit
|
|
476
476
|
inside the tree it describes.
|
|
477
|
+
|
|
477
478
|
Windows and judgments:
|
|
478
479
|
[cli-reference](https://saasontools.github.io/strauss-agent-tools/cli-reference).
|
|
479
480
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
KB_DIR,
|
|
5
5
|
KbStore,
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MC5LUSZ3.js";
|
|
8
8
|
|
|
9
9
|
// src/cli.ts
|
|
10
10
|
import { join } from "path";
|
|
@@ -121,4 +121,4 @@ function usage() {
|
|
|
121
121
|
export {
|
|
122
122
|
runKbCli
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-4AJGI6WN.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
KB_COMMANDS,
|
|
3
3
|
KbStore,
|
|
4
4
|
VERSION
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MC5LUSZ3.js";
|
|
6
6
|
|
|
7
7
|
// src/mcp.ts
|
|
8
8
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -46,4 +46,4 @@ export {
|
|
|
46
46
|
createKbMcpServer,
|
|
47
47
|
runKbMcpServer
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-EOSRZHWY.js.map
|