@cosyte/cli 0.0.1 → 0.0.2
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/CHANGELOG.md +72 -2
- package/README.md +59 -14
- package/dist/bin/cosyte-mcp.cjs +3 -3
- package/dist/bin/cosyte-mcp.cjs.map +1 -1
- package/dist/bin/cosyte-mcp.mjs +3 -3
- package/dist/bin/cosyte-mcp.mjs.map +1 -1
- package/dist/bin/cosyte.cjs +5 -5
- package/dist/bin/cosyte.cjs.map +1 -1
- package/dist/bin/cosyte.mjs +5 -5
- package/dist/bin/cosyte.mjs.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.cjs +3 -3
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.mjs +3 -3
- package/dist/mcp.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ var EXIT = {
|
|
|
20
20
|
DATAERR: 65,
|
|
21
21
|
/** No input: the named file does not exist or is unreadable (`EX_NOINPUT`). */
|
|
22
22
|
NOINPUT: 66,
|
|
23
|
-
/** Unavailable: a required capability is not yet
|
|
23
|
+
/** Unavailable: a required capability is not yet wired (e.g. `redact` before `@cosyte/deid`), a
|
|
24
24
|
* distinct non-zero signal that is never a fake success (`EX_UNAVAILABLE`). */
|
|
25
25
|
UNAVAILABLE: 69,
|
|
26
26
|
/** Internal error: an unexpected exception (a bug), distinct from a handled bad input (`EX_SOFTWARE`). */
|
|
@@ -51,8 +51,8 @@ var CLI_CODES = {
|
|
|
51
51
|
/** The BYO ConceptMap supplied to `map-codes` is not valid JSON or not a loadable FHIR ConceptMap.
|
|
52
52
|
* Names the stable terminology-loader code, never the map's bytes. Exit `65`. */
|
|
53
53
|
CLI_MAP_INVALID: "CLI_MAP_INVALID",
|
|
54
|
-
/** A command whose ground-layer library is not yet
|
|
55
|
-
*
|
|
54
|
+
/** A command whose ground-layer library is not yet wired (e.g. `redact` before `@cosyte/deid` is
|
|
55
|
+
* wired). Never a fake success: a distinct, value-free "unavailable" signal. Exit `69`. */
|
|
56
56
|
CLI_NOT_IMPLEMENTED: "CLI_NOT_IMPLEMENTED",
|
|
57
57
|
/** An unexpected internal error (a bug). Exit `70`. */
|
|
58
58
|
CLI_INTERNAL: "CLI_INTERNAL"
|
|
@@ -672,7 +672,7 @@ async function readStreamBytes(stream) {
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
// src/core/deid.ts
|
|
675
|
-
var DEID_UNAVAILABLE_REASON = "redact/deid is not yet available. It delegates to @cosyte/deid, which
|
|
675
|
+
var DEID_UNAVAILABLE_REASON = "redact/deid is not yet available. It delegates to @cosyte/deid, which the CLI does not wire yet. The CLI ships no built-in redactor: a partial Safe-Harbor scrub over only the obvious PHI loci would leave PHI behind and present a false-safety impression, so nothing is emitted. This command will produce a de-identified copy once that integration lands and is vetted.";
|
|
676
676
|
function deidStatus() {
|
|
677
677
|
return { available: false, reason: DEID_UNAVAILABLE_REASON };
|
|
678
678
|
}
|
|
@@ -1324,7 +1324,7 @@ Commands:
|
|
|
1324
1324
|
fmt <file|-> Canonically re-serialize via the parser's spec-clean serializer
|
|
1325
1325
|
convert <file|-> Convert HL7 v2 \u2192 FHIR R4 via @cosyte/transform (use --to fhir)
|
|
1326
1326
|
map-codes <cmap|-> Translate a code through a BYO FHIR ConceptMap via @cosyte/terminology
|
|
1327
|
-
redact <file|-> De-identify a message (alias: deid): gated on @cosyte/deid, not yet
|
|
1327
|
+
redact <file|-> De-identify a message (alias: deid): gated on @cosyte/deid, not yet wired
|
|
1328
1328
|
mcp Start the stdio MCP server (agent front door; also the cosyte-mcp bin)
|
|
1329
1329
|
completion <shell> Print a shell completion script (bash | zsh | fish)
|
|
1330
1330
|
|