@everfur/cli 0.8.0 → 0.9.1

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.
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { hostnameOf, listen, close, writeJson, serveStatelessMcp } from './chunk-AEY522A6.js';
3
- import { createHostedTokenVerifier, tokenBucketOf, isAccessTokenShaped, buildServer, MCP_SCOPE, tenantContextOf, sendTestUserRef, hostedVerifyUserRef, REVOKED_AUTHORIZATION_REMEDY, SYNTHETIC_USER_REF_PREFIX } from './chunk-EDURPYNG.js';
4
- import { BASE_URL_ENV_VAR, resolveEndpoint, fetchTransport, systemClock, createApiClient, withPrefix, ephemeralCredential, validateContractText, isJsonObject, describeFailure } from './chunk-WPEB2AVZ.js';
2
+ /*! @everfur/cli. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
3
+ import { hostnameOf, listen, close, writeJson, serveStatelessMcp } from './chunk-JURZYOMH.js';
4
+ import { createHostedTokenVerifier, tokenBucketOf, isAccessTokenShaped, buildServer, MCP_SCOPE, tenantContextOf, sendTestUserRef, hostedVerifyUserRef, REVOKED_AUTHORIZATION_REMEDY, SYNTHETIC_USER_REF_PREFIX } from './chunk-FLW4ZANY.js';
5
+ import { BASE_URL_ENV_VAR, resolveEndpoint, fetchTransport, systemClock, createApiClient, withPrefix, ephemeralCredential, validateContractText, isJsonObject, describeFailure } from './chunk-VUXILRME.js';
5
6
  import { createServer } from 'http';
6
7
  import { InvalidTokenError, TooManyRequestsError, TemporarilyUnavailableError } from '@modelcontextprotocol/sdk/server/auth/errors.js';
7
8
  import { isIP } from 'net';
@@ -316,6 +317,25 @@ The tenant tools read the connected tenant's own state and change nothing:
316
317
  None of them returns a signing secret, a key value, or a member's conversation, message or record content.
317
318
  everfur_search_docs searches the contract's error registry, capability packs and integration guide.
318
319
 
320
+ The claims tools are for an insurer connecting its own claims system to Everfur, and none of them reads a claim,
321
+ evidence, an eligibility answer or a decision. A claims integration starts from everfur_plan_claims_integration, and
322
+ everfur_plan_integration plans the SDK surfaces only:
323
+ - everfur_plan_claims_integration returns the inbound-first claims plan with no project: every change on the
324
+ insurer's side in order (the security rules, the sandbox endpoint, the claims system's outbound webhook settings with
325
+ the signing headers, answers and retries, the field mapping, documents and their limits, profile events, signed
326
+ samples, secret rotation with no downtime, go-live with Everfur, and the adjusters' review in the claims portal), each
327
+ step naming the tool that does it or the exact setting, with a checklist that defines done. With project_details it
328
+ adds the OPTIONAL server code for an insurer that also files through the Claims API or receives Everfur's outbound
329
+ webhooks. It is paged like everfur_plan_integration and needs no key or secret.
330
+ - everfur_propose_claims_mapping proposes the inbound mapping from sample native events passed in samples, offline:
331
+ each field's source path, transforms and why, the gaps per kind, and the personal data paths to scrub. It never maps
332
+ an owner name, contact, address or payment field.
333
+ - everfur_explain_claims_error explains an inbound webhook code, a Claims API error code, a document_rejected reason,
334
+ a webhook delivery state or a profile import code, offline.
335
+ Saving and activating the mapping, the signing setup, sample events, the sandbox event log, the sandbox test events
336
+ and the receiver checks run only on a server the developer runs, which holds the sandbox key and the secrets; the plan
337
+ names each of those steps as local only.
338
+
319
339
  Every tool returns structured content. A failed call carries error.code, error.retryable and error.next_action, which
320
340
  are stable, while the message is prose that may change. TENANT_SURFACE_NOT_ENABLED means that surface is not switched
321
341
  on for the connected tenant, a setting Everfur holds rather than a fault in the call. CONTRACT_UNAVAILABLE means the Everfur API did not serve the contract, and error.retryable says
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { buildServer } from './chunk-EDURPYNG.js';
2
+ /*! @everfur/cli. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
3
+ import { buildServer } from './chunk-FLW4ZANY.js';
3
4
  import { createServer } from 'http';
4
5
  import { timingSafeEqual } from 'crypto';
5
6
  import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
@@ -126,7 +127,7 @@ function createRemoteMcpRequestListener(config) {
126
127
  writeJson(res, allowed.status, { error: allowed.message }, allowed.headers ?? {});
127
128
  return;
128
129
  }
129
- await serveStatelessMcp(req, res, buildServer({ env: config.env }));
130
+ await serveStatelessMcp(req, res, buildServer({ env: config.env }, {}, { localSecretTools: false }));
130
131
  };
131
132
  }
132
133
  function listen(server, port, host) {
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { VERIFY_IDENTITY_MODES, SURFACES, ENVIRONMENTS, BASE_URL_ENV_VAR, MIN_TIMEOUT_MS, MAX_TIMEOUT_MS, DEFAULT_TIMEOUT_MS, ALL_CAPABILITIES, expandCapabilities, errorOutcome, describeFailure, failureDetails, countsAsNotOn, diagnoseVerdict, isJsonObject, succeed, CAPABILITY_QUESTION, CAPABILITIES_TREE, WEB_EMBEDDING_QUESTION, PLATFORM_TREE, loadDecisionSpace, fetchContract, contractUnavailableOutcome, loadDecisionSpaceFromContract, parseEnvironment, checkTenantMode, detectProject, planIntegration, fail, ExitCode, DOCS_KEY, resolveContractPath, validateContractFile, buildSupportBundle, renderSupportBundle, chooseWidgetAuth, DIAGNOSTICS_PATH, diagnoseFailure, parseDiagnostics, buildDiagnosisDocument, PARTNER_KEY, SESSION_TOKEN, resolveCredential, ADMIN_TOKEN, withPrefix, parseOrigin, parseLoaderUrl, parseSurfaces, parseIdentityMode, runVerification, PARTNER_SECRET_KEY, resolveOffline, resolveWithoutRegistry, knownCodes, loadErrorRegistryFromContract, loadErrorRegistry, resolveAfterRegistryMiss, registryAlsoIn, buildExplanationDocument, renderExplanation, alsoInLines, resolveEndpoint, isCorrelatableRequestId, EMPTY_REGISTRY, createApiClient, offlineDocument, renderOffline, IDENTITY_QUESTION, IDENTITY_TREE, BACKEND_LANGUAGE_QUESTION, SESSION_MINT_TREE, CREDENTIAL_SPECS } from './chunk-WPEB2AVZ.js';
2
+ /*! @everfur/cli. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
3
+ import { VERIFY_IDENTITY_MODES, SURFACES, ENVIRONMENTS, BASE_URL_ENV_VAR, MIN_TIMEOUT_MS, MAX_TIMEOUT_MS, DEFAULT_TIMEOUT_MS, ALL_CAPABILITIES, expandCapabilities, errorOutcome, describeFailure, failureDetails, countsAsNotOn, diagnoseVerdict, isJsonObject, succeed, CAPABILITY_QUESTION, CAPABILITIES_TREE, WEB_EMBEDDING_QUESTION, PLATFORM_TREE, loadDecisionSpace, fetchContract, contractUnavailableOutcome, loadDecisionSpaceFromContract, parseEnvironment, checkTenantMode, detectProject, planIntegration, fail, ExitCode, DOCS_KEY, resolveContractPath, validateContractFile, buildSupportBundle, renderSupportBundle, chooseWidgetAuth, DIAGNOSTICS_PATH, diagnoseFailure, parseDiagnostics, buildDiagnosisDocument, PARTNER_KEY, SESSION_TOKEN, resolveCredential, ADMIN_TOKEN, withPrefix, parseOrigin, parseLoaderUrl, parseSurfaces, parseIdentityMode, runVerification, PARTNER_SECRET_KEY, resolveOffline, resolveWithoutRegistry, knownCodes, loadErrorRegistryFromContract, loadErrorRegistry, resolveAfterRegistryMiss, registryAlsoIn, buildExplanationDocument, renderExplanation, alsoInLines, resolveEndpoint, isCorrelatableRequestId, EMPTY_REGISTRY, createApiClient, offlineDocument, renderOffline, IDENTITY_QUESTION, IDENTITY_TREE, BACKEND_LANGUAGE_QUESTION, SESSION_MINT_TREE, CREDENTIAL_SPECS } from './chunk-VUXILRME.js';
3
4
  import { isAbsolute, resolve } from 'path';
4
5
 
5
6
  // src/cli/format.ts