@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/bin/cosyte.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var init_exit_codes = __esm({
|
|
|
37
37
|
DATAERR: 65,
|
|
38
38
|
/** No input: the named file does not exist or is unreadable (`EX_NOINPUT`). */
|
|
39
39
|
NOINPUT: 66,
|
|
40
|
-
/** Unavailable: a required capability is not yet
|
|
40
|
+
/** Unavailable: a required capability is not yet wired (e.g. `redact` before `@cosyte/deid`), a
|
|
41
41
|
* distinct non-zero signal that is never a fake success (`EX_UNAVAILABLE`). */
|
|
42
42
|
UNAVAILABLE: 69,
|
|
43
43
|
/** Internal error: an unexpected exception (a bug), distinct from a handled bad input (`EX_SOFTWARE`). */
|
|
@@ -89,8 +89,8 @@ var init_diagnostics = __esm({
|
|
|
89
89
|
/** The BYO ConceptMap supplied to `map-codes` is not valid JSON or not a loadable FHIR ConceptMap.
|
|
90
90
|
* Names the stable terminology-loader code, never the map's bytes. Exit `65`. */
|
|
91
91
|
CLI_MAP_INVALID: "CLI_MAP_INVALID",
|
|
92
|
-
/** A command whose ground-layer library is not yet
|
|
93
|
-
*
|
|
92
|
+
/** A command whose ground-layer library is not yet wired (e.g. `redact` before `@cosyte/deid` is
|
|
93
|
+
* wired). Never a fake success: a distinct, value-free "unavailable" signal. Exit `69`. */
|
|
94
94
|
CLI_NOT_IMPLEMENTED: "CLI_NOT_IMPLEMENTED",
|
|
95
95
|
/** An unexpected internal error (a bug). Exit `70`. */
|
|
96
96
|
CLI_INTERNAL: "CLI_INTERNAL"
|
|
@@ -1624,7 +1624,7 @@ init_parse();
|
|
|
1624
1624
|
init_diagnostics();
|
|
1625
1625
|
|
|
1626
1626
|
// src/core/deid.ts
|
|
1627
|
-
var DEID_UNAVAILABLE_REASON = "redact/deid is not yet available. It delegates to @cosyte/deid, which
|
|
1627
|
+
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.";
|
|
1628
1628
|
function deidStatus() {
|
|
1629
1629
|
return { available: false, reason: DEID_UNAVAILABLE_REASON };
|
|
1630
1630
|
}
|
|
@@ -1672,7 +1672,7 @@ Commands:
|
|
|
1672
1672
|
fmt <file|-> Canonically re-serialize via the parser's spec-clean serializer
|
|
1673
1673
|
convert <file|-> Convert HL7 v2 \u2192 FHIR R4 via @cosyte/transform (use --to fhir)
|
|
1674
1674
|
map-codes <cmap|-> Translate a code through a BYO FHIR ConceptMap via @cosyte/terminology
|
|
1675
|
-
redact <file|-> De-identify a message (alias: deid): gated on @cosyte/deid, not yet
|
|
1675
|
+
redact <file|-> De-identify a message (alias: deid): gated on @cosyte/deid, not yet wired
|
|
1676
1676
|
mcp Start the stdio MCP server (agent front door; also the cosyte-mcp bin)
|
|
1677
1677
|
completion <shell> Print a shell completion script (bash | zsh | fish)
|
|
1678
1678
|
|