@nexalink/carecompass-sdk 0.1.0-beta.2 → 0.1.0-beta.4
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 +301 -2
- package/dist/cli.js +23 -9
- package/dist/cli.js.map +1 -1
- package/package.json +27 -2
package/README.md
CHANGED
|
@@ -1,3 +1,302 @@
|
|
|
1
|
-
# CareCompass SDK
|
|
1
|
+
# CareCompass Payer Embed SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@nexalink/carecompass-sdk` helps payer teams embed a branded CareCompass chat experience in their own websites and applications. It includes a React component, a vanilla JavaScript mount helper, shared configuration validation, and a CLI for setup, validation, snippet generation, and local diagnostics.
|
|
4
|
+
|
|
5
|
+
CareCompass lets a payer offer member-facing navigation support while keeping LLM inference behind Nexalink-hosted APIs. The payer controls the placement, branding, theme, labels, support links, allowed origins, and approved prompt configuration. Nexalink controls account validation, API-key enforcement, embed-key authorization, usage tracking, and the hosted model path.
|
|
6
|
+
|
|
7
|
+
This package is publicly installable for developer convenience, but meaningful use requires a Nexalink payer account and a Nexalink-issued API key.
|
|
8
|
+
|
|
9
|
+
## Who This Is For
|
|
10
|
+
|
|
11
|
+
This SDK is for enterprise healthcare teams that want to add CareCompass to a payer-owned frontend without building their own model gateway, prompt validation layer, key-management flow, or token-metering pipeline.
|
|
12
|
+
|
|
13
|
+
Typical users include:
|
|
14
|
+
|
|
15
|
+
- payer portal developers embedding CareCompass in a member site
|
|
16
|
+
- implementation engineers configuring staging and production deployments
|
|
17
|
+
- technical operators validating origins, branding, and prompt policy
|
|
18
|
+
- non-technical payer admins issuing SDK keys from the payer portal
|
|
19
|
+
|
|
20
|
+
## Account Required
|
|
21
|
+
|
|
22
|
+
You need a Nexalink payer account before using the SDK beyond package installation.
|
|
23
|
+
|
|
24
|
+
The account is required because Nexalink validates:
|
|
25
|
+
|
|
26
|
+
- the payer ID
|
|
27
|
+
- the secret SDK API key
|
|
28
|
+
- the public browser embed key
|
|
29
|
+
- the deployment environment
|
|
30
|
+
- the allowed website origins
|
|
31
|
+
- the approved prompt configuration
|
|
32
|
+
- API usage and token counts for future metered billing
|
|
33
|
+
|
|
34
|
+
API keys are issued in the Nexalink payer portal under the CareCompass SDK section. The secret API key is shown once and should be stored locally by the developer. It should never be committed to source control or placed in browser code.
|
|
35
|
+
|
|
36
|
+
If you do not have an API key, run:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npx @nexalink/carecompass-sdk login
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The CLI will direct you to the payer signup path.
|
|
43
|
+
|
|
44
|
+
## Install And Run
|
|
45
|
+
|
|
46
|
+
Use any common JavaScript package manager. For first-time testing, the simplest
|
|
47
|
+
path is to run each command with `npx`.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx @nexalink/carecompass-sdk login --api-key <nexalink-api-key>
|
|
51
|
+
npx @nexalink/carecompass-sdk init --payer-id acme-health --origin https://members.acme-health.com
|
|
52
|
+
npx @nexalink/carecompass-sdk validate --config carecompass.config.json
|
|
53
|
+
npx @nexalink/carecompass-sdk snippet --config carecompass.config.json --output carecompass-embed.html
|
|
54
|
+
npx @nexalink/carecompass-sdk doctor --config carecompass.config.json
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`npx` does not permanently install a `carecompass` shell command. If you use
|
|
58
|
+
`npx` for login, keep using `npx @nexalink/carecompass-sdk <command>` for init,
|
|
59
|
+
validate, snippet, and doctor.
|
|
60
|
+
|
|
61
|
+
Package-manager equivalents:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm exec --package @nexalink/carecompass-sdk -- carecompass init
|
|
65
|
+
pnpm dlx @nexalink/carecompass-sdk init
|
|
66
|
+
yarn dlx @nexalink/carecompass-sdk init
|
|
67
|
+
bunx @nexalink/carecompass-sdk init
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
You can also install it in a project and run the binary through your package
|
|
71
|
+
manager:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm install @nexalink/carecompass-sdk
|
|
75
|
+
npm exec carecompass -- init --payer-id acme-health --origin https://members.acme-health.com
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Or install it globally if your organization permits global npm tools:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm install -g @nexalink/carecompass-sdk
|
|
82
|
+
carecompass init --payer-id acme-health --origin https://members.acme-health.com
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## CLI Commands
|
|
86
|
+
|
|
87
|
+
### `login`
|
|
88
|
+
|
|
89
|
+
Stores your secret Nexalink API key locally so the other SDK commands can validate your payer configuration.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx @nexalink/carecompass-sdk login --api-key <nexalink-api-key>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Credentials are stored at `~/.nexalink/carecompass/credentials.json` by default. You can also set `CARECOMPASS_API_KEY` in your shell or CI environment.
|
|
96
|
+
|
|
97
|
+
### `init`
|
|
98
|
+
|
|
99
|
+
Creates a starter `carecompass.config.json` file. This file contains payer-facing configuration only. It does not contain the secret API key.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
npx @nexalink/carecompass-sdk init --payer-id acme-health --origin https://members.acme-health.com
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### `validate`
|
|
106
|
+
|
|
107
|
+
Checks that the config shape is valid and that credentials are available.
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npx @nexalink/carecompass-sdk validate --config carecompass.config.json
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### `snippet`
|
|
114
|
+
|
|
115
|
+
Generates an HTML embed snippet that can be pasted into a payer-owned page or reviewed by non-technical stakeholders.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npx @nexalink/carecompass-sdk snippet --config carecompass.config.json --output carecompass-embed.html
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### `doctor`
|
|
122
|
+
|
|
123
|
+
Prints a deployment readiness summary for the selected config.
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npx @nexalink/carecompass-sdk doctor --config carecompass.config.json
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Configuration
|
|
130
|
+
|
|
131
|
+
`carecompass.config.json` is safe to commit when it only contains public embed configuration. Do not add the secret API key to this file.
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
{
|
|
135
|
+
"payerId": "acme-health",
|
|
136
|
+
"environment": "staging",
|
|
137
|
+
"apiBaseUrl": "https://api.nexalink.care",
|
|
138
|
+
"embedKey": "embed_public_key_from_nexalink",
|
|
139
|
+
"allowedOrigins": ["https://members.acme-health.com"],
|
|
140
|
+
"branding": {
|
|
141
|
+
"displayName": "Acme Health",
|
|
142
|
+
"logoUrl": "https://members.acme-health.com/logo.svg",
|
|
143
|
+
"supportUrl": "https://members.acme-health.com/support"
|
|
144
|
+
},
|
|
145
|
+
"theme": {
|
|
146
|
+
"primaryColor": "#2563eb",
|
|
147
|
+
"backgroundColor": "#ffffff",
|
|
148
|
+
"textColor": "#111827",
|
|
149
|
+
"borderRadius": "8px",
|
|
150
|
+
"fontFamily": "system-ui, sans-serif"
|
|
151
|
+
},
|
|
152
|
+
"labels": {
|
|
153
|
+
"title": "Acme Care Guide",
|
|
154
|
+
"placeholder": "Ask about benefits, care options, or next steps...",
|
|
155
|
+
"sendButton": "Send",
|
|
156
|
+
"disclaimer": "CareCompass provides navigation support, not medical advice.",
|
|
157
|
+
"errorMessage": "CareCompass is unavailable right now."
|
|
158
|
+
},
|
|
159
|
+
"prompt": {
|
|
160
|
+
"systemInstruction": "Help members navigate benefits and care options within approved Acme Health support policies.",
|
|
161
|
+
"welcomeMessage": "How can I help you navigate your care today?",
|
|
162
|
+
"allowUserContext": false
|
|
163
|
+
},
|
|
164
|
+
"placement": {
|
|
165
|
+
"mode": "inline"
|
|
166
|
+
},
|
|
167
|
+
"deploymentTarget": "web"
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## React Usage
|
|
172
|
+
|
|
173
|
+
```tsx
|
|
174
|
+
import { CareCompassEmbed } from "@nexalink/carecompass-sdk";
|
|
175
|
+
import config from "./carecompass.config.json";
|
|
176
|
+
|
|
177
|
+
export function MemberSupport() {
|
|
178
|
+
return <CareCompassEmbed config={config} />;
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## Vanilla JavaScript Usage
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
import { mountCareCompass } from "@nexalink/carecompass-sdk";
|
|
186
|
+
import config from "./carecompass.config.json";
|
|
187
|
+
|
|
188
|
+
mountCareCompass(document.getElementById("carecompass-root"), config);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Package Exports
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
import {
|
|
195
|
+
CareCompassEmbed,
|
|
196
|
+
mountCareCompass,
|
|
197
|
+
validateCareCompassConfig,
|
|
198
|
+
createCareCompassClient,
|
|
199
|
+
} from "@nexalink/carecompass-sdk";
|
|
200
|
+
|
|
201
|
+
import type {
|
|
202
|
+
CareCompassConfig,
|
|
203
|
+
CareCompassTheme,
|
|
204
|
+
CareCompassLabels,
|
|
205
|
+
CareCompassPromptConfig,
|
|
206
|
+
} from "@nexalink/carecompass-sdk";
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Runtime Dependencies
|
|
210
|
+
|
|
211
|
+
The package has a small runtime surface:
|
|
212
|
+
|
|
213
|
+
- `zod` for shared config validation
|
|
214
|
+
- `react` as a peer dependency for the embed component
|
|
215
|
+
- `react-dom` as a peer dependency for mounting
|
|
216
|
+
|
|
217
|
+
Peer dependency range:
|
|
218
|
+
|
|
219
|
+
```json
|
|
220
|
+
{
|
|
221
|
+
"react": "^18.3.0 || ^19.0.0",
|
|
222
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The CLI requires Node.js 18 or newer.
|
|
227
|
+
|
|
228
|
+
## What Runs In The Browser
|
|
229
|
+
|
|
230
|
+
The browser receives only public embed configuration:
|
|
231
|
+
|
|
232
|
+
- payer ID
|
|
233
|
+
- environment
|
|
234
|
+
- public `embedKey`
|
|
235
|
+
- branding and theme values
|
|
236
|
+
- labels and support links
|
|
237
|
+
- approved prompt settings
|
|
238
|
+
|
|
239
|
+
The browser does not receive:
|
|
240
|
+
|
|
241
|
+
- the secret SDK API key
|
|
242
|
+
- SageMaker credentials
|
|
243
|
+
- private model endpoint details
|
|
244
|
+
- Nexalink server-side allowlists
|
|
245
|
+
|
|
246
|
+
Chat requests are sent to Nexalink-hosted CareCompass API routes. The component does not call the model endpoint directly.
|
|
247
|
+
|
|
248
|
+
## API Keys And Usage Tracking
|
|
249
|
+
|
|
250
|
+
SDK API keys are issued in the payer portal and stored server-side as hashes. Each key is associated with a payer, environment, public embed key, and allowed origins.
|
|
251
|
+
|
|
252
|
+
CareCompass usage under a key is tracked so Nexalink can support future Stripe metered billing. The backend records estimated prompt tokens, completion tokens, total tokens, and last-used timestamps per payer/API key.
|
|
253
|
+
|
|
254
|
+
## Staging And Production
|
|
255
|
+
|
|
256
|
+
Use separate keys and config files for staging and production.
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
npx @nexalink/carecompass-sdk validate --config carecompass.staging.json
|
|
260
|
+
npx @nexalink/carecompass-sdk snippet --config carecompass.staging.json --output staging-embed.html
|
|
261
|
+
npx @nexalink/carecompass-sdk doctor --config carecompass.staging.json
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Before production, confirm:
|
|
265
|
+
|
|
266
|
+
- production origin is allowlisted exactly
|
|
267
|
+
- production `embedKey` is separate from staging
|
|
268
|
+
- support links route to the payer's approved support surface
|
|
269
|
+
- prompt instructions are approved by Nexalink and the payer
|
|
270
|
+
- no secret API key appears in generated source code
|
|
271
|
+
|
|
272
|
+
## Troubleshooting
|
|
273
|
+
|
|
274
|
+
`Missing Nexalink API key`
|
|
275
|
+
|
|
276
|
+
Run `npx @nexalink/carecompass-sdk login --api-key <key>` or set `CARECOMPASS_API_KEY`.
|
|
277
|
+
|
|
278
|
+
`zsh: command not found: carecompass`
|
|
279
|
+
|
|
280
|
+
You ran the SDK with `npx`, which does not install a permanent global command.
|
|
281
|
+
Run the next command with `npx @nexalink/carecompass-sdk <command>`, install the
|
|
282
|
+
package in your project, or install it globally.
|
|
283
|
+
|
|
284
|
+
`Origin is not authorized`
|
|
285
|
+
|
|
286
|
+
Add the exact website origin to the payer portal SDK configuration.
|
|
287
|
+
|
|
288
|
+
`Prompt configuration violates CareCompass guardrails`
|
|
289
|
+
|
|
290
|
+
Remove unsafe or unsupported instructions and re-run validation.
|
|
291
|
+
|
|
292
|
+
`CareCompass embed client is not authorized`
|
|
293
|
+
|
|
294
|
+
Confirm `payerId`, `embedKey`, `environment`, and allowed origins match the key issued in the payer portal.
|
|
295
|
+
|
|
296
|
+
`CareCompass inference service is not configured`
|
|
297
|
+
|
|
298
|
+
Nexalink server operators should confirm the hosted environment has `CARECOMPASS_LLM_URL` configured.
|
|
299
|
+
|
|
300
|
+
## License
|
|
301
|
+
|
|
302
|
+
This SDK is proprietary software owned by Nexalink Health, Inc. See the included `LICENSE` file.
|
package/dist/cli.js
CHANGED
|
@@ -9,10 +9,13 @@ const DEFAULT_SIGNUP_URL = "https://nexalink.care/signup?group=payer";
|
|
|
9
9
|
function parseArgs(argv) {
|
|
10
10
|
const [command = "help", ...rest] = argv;
|
|
11
11
|
const flags = {};
|
|
12
|
+
const positionals = [];
|
|
12
13
|
for (let index = 0; index < rest.length; index += 1) {
|
|
13
14
|
const token = rest[index];
|
|
14
|
-
if (!token.startsWith("--"))
|
|
15
|
+
if (!token.startsWith("--")) {
|
|
16
|
+
positionals.push(token);
|
|
15
17
|
continue;
|
|
18
|
+
}
|
|
16
19
|
const key = token.slice(2);
|
|
17
20
|
const next = rest[index + 1];
|
|
18
21
|
const value = !next || next.startsWith("--") ? true : next;
|
|
@@ -29,7 +32,7 @@ function parseArgs(argv) {
|
|
|
29
32
|
}
|
|
30
33
|
flags[key] = value;
|
|
31
34
|
}
|
|
32
|
-
return { command, flags };
|
|
35
|
+
return { command, flags, positionals };
|
|
33
36
|
}
|
|
34
37
|
const flagString = (flags, key) => {
|
|
35
38
|
const value = flags[key];
|
|
@@ -39,7 +42,7 @@ function requireApiKey(flags, io) {
|
|
|
39
42
|
const credentialsPath = resolveCredentialsPath(io.env);
|
|
40
43
|
const credentials = resolveApiKey(flagString(flags, "api-key"), io.env, credentialsPath);
|
|
41
44
|
if (!credentials.apiKey) {
|
|
42
|
-
throw new Error("Missing Nexalink API key. Run `carecompass login --api-key <key>` or set CARECOMPASS_API_KEY.");
|
|
45
|
+
throw new Error("Missing Nexalink API key. Run `npx @nexalink/carecompass-sdk login --api-key <key>` or set CARECOMPASS_API_KEY.");
|
|
43
46
|
}
|
|
44
47
|
return credentials;
|
|
45
48
|
}
|
|
@@ -83,12 +86,23 @@ function buildInitConfig(flags) {
|
|
|
83
86
|
function printHelp(io) {
|
|
84
87
|
io.stdout.write(`CareCompass SDK CLI
|
|
85
88
|
|
|
86
|
-
|
|
89
|
+
Run one-off commands with npx:
|
|
90
|
+
npx @nexalink/carecompass-sdk login --api-key <key>
|
|
91
|
+
npx @nexalink/carecompass-sdk init --payer-id <id> --origin <url>
|
|
92
|
+
npx @nexalink/carecompass-sdk validate --config carecompass.config.json
|
|
93
|
+
npx @nexalink/carecompass-sdk snippet --config carecompass.config.json
|
|
94
|
+
npx @nexalink/carecompass-sdk doctor --config carecompass.config.json
|
|
95
|
+
|
|
96
|
+
If installed globally or run from a package script:
|
|
87
97
|
carecompass login --api-key <key>
|
|
88
98
|
carecompass init [--payer-id <id>] [--origin <url>]
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
99
|
+
|
|
100
|
+
Commands:
|
|
101
|
+
login --api-key <key>
|
|
102
|
+
init [--payer-id <id>] [--origin <url>]
|
|
103
|
+
validate --config carecompass.config.json
|
|
104
|
+
snippet --config carecompass.config.json [--output embed.html]
|
|
105
|
+
doctor --config carecompass.config.json
|
|
92
106
|
`);
|
|
93
107
|
}
|
|
94
108
|
export async function runCareCompassCli(argv = process.argv.slice(2), io = {
|
|
@@ -97,13 +111,13 @@ export async function runCareCompassCli(argv = process.argv.slice(2), io = {
|
|
|
97
111
|
env: process.env,
|
|
98
112
|
}) {
|
|
99
113
|
try {
|
|
100
|
-
const { command, flags } = parseArgs(argv);
|
|
114
|
+
const { command, flags, positionals } = parseArgs(argv);
|
|
101
115
|
if (command === "help" || command === "--help" || command === "-h") {
|
|
102
116
|
printHelp(io);
|
|
103
117
|
return 0;
|
|
104
118
|
}
|
|
105
119
|
if (command === "login") {
|
|
106
|
-
const apiKey = flagString(flags, "api-key");
|
|
120
|
+
const apiKey = flagString(flags, "api-key") ?? positionals[0];
|
|
107
121
|
if (!apiKey) {
|
|
108
122
|
const signupUrl = flagString(flags, "signup-url") ?? DEFAULT_SIGNUP_URL;
|
|
109
123
|
io.stderr.write(`Missing --api-key. Create a Nexalink payer account or request SDK access at ${signupUrl}\n`);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAE1B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","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C,CAAC,CAAC;YACG,OAAO,CAAC,CAAC;QACX,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAI,KAAe,CAAC,OAAO,IAAI,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC;AAED,MAAM,YAAY,GAAG,GAAG,EAAE,CACxB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACxB,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjF,IAAI,YAAY,EAAE,EAAE,CAAC;IACnB,KAAK,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QACrC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexalink/carecompass-sdk",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
4
|
"description": "Embeddable CareCompass SDK and CLI for payer-whitelabeled deployments.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"homepage": "https://nexalink.care",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/nexalink-care/nexalink-webapp.git",
|
|
10
|
+
"directory": "packages/carecompass-sdk"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/nexalink-care/nexalink-webapp/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"carecompass",
|
|
17
|
+
"nexalink",
|
|
18
|
+
"payer",
|
|
19
|
+
"healthcare",
|
|
20
|
+
"embed",
|
|
21
|
+
"sdk",
|
|
22
|
+
"react",
|
|
23
|
+
"cli",
|
|
24
|
+
"llm"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": false,
|
|
6
27
|
"bin": {
|
|
7
28
|
"carecompass": "dist/cli.js"
|
|
8
29
|
},
|
|
@@ -24,8 +45,12 @@
|
|
|
24
45
|
},
|
|
25
46
|
"files": [
|
|
26
47
|
"dist",
|
|
27
|
-
"README.md"
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
28
50
|
],
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=18"
|
|
53
|
+
},
|
|
29
54
|
"scripts": {
|
|
30
55
|
"build": "tsc -p tsconfig.json"
|
|
31
56
|
},
|