@jini-ai/core 0.6.23 → 0.7.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/approval.d.ts +34 -3
  3. package/dist/approval.js +27 -4
  4. package/dist/batch-tool-inputs.d.ts +13 -0
  5. package/dist/batch-tool-inputs.js +37 -6
  6. package/dist/contracts/cards.d.ts +382 -0
  7. package/dist/contracts/cards.js +2 -0
  8. package/dist/contracts/content-types.d.ts +32 -0
  9. package/dist/contracts/content-types.js +3 -0
  10. package/dist/contracts/credentials.d.ts +402 -0
  11. package/dist/contracts/credentials.js +2 -0
  12. package/dist/contracts/hosted-mcp/config.d.ts +253 -0
  13. package/dist/contracts/hosted-mcp/config.js +2 -0
  14. package/dist/contracts/hosted-mcp/record.d.ts +198 -0
  15. package/dist/contracts/hosted-mcp/record.js +2 -0
  16. package/dist/contracts/hosted-mcp/vocabulary.d.ts +14 -0
  17. package/dist/contracts/hosted-mcp/vocabulary.js +2 -0
  18. package/dist/contracts/hosted-mcp.d.ts +5 -0
  19. package/dist/contracts/hosted-mcp.js +2 -0
  20. package/dist/contracts/mail/adapter-module.d.ts +31 -0
  21. package/dist/contracts/mail/adapter-module.js +2 -0
  22. package/dist/contracts/mail/engine-contracts.d.ts +130 -0
  23. package/dist/contracts/mail/engine-contracts.js +2 -0
  24. package/dist/contracts/mail/ports.d.ts +93 -0
  25. package/dist/contracts/mail/ports.js +3 -0
  26. package/dist/contracts/mail/provider.d.ts +84 -0
  27. package/dist/contracts/mail/provider.js +2 -0
  28. package/dist/contracts/mail.d.ts +128 -0
  29. package/dist/contracts/mail.js +3 -0
  30. package/dist/contracts/oauth/details.d.ts +46 -0
  31. package/dist/contracts/oauth/details.js +2 -0
  32. package/dist/contracts/oauth/flow.d.ts +253 -0
  33. package/dist/contracts/oauth/flow.js +2 -0
  34. package/dist/contracts/oauth.d.ts +139 -0
  35. package/dist/contracts/oauth.js +2 -0
  36. package/dist/contracts/server.d.ts +84 -0
  37. package/dist/contracts/server.js +15 -0
  38. package/dist/contracts/vault/ports.d.ts +34 -0
  39. package/dist/contracts/vault/ports.js +2 -0
  40. package/dist/contracts/vault/records.d.ts +149 -0
  41. package/dist/contracts/vault/records.js +2 -0
  42. package/dist/contracts/vault/vendor-credential-sets.d.ts +75 -0
  43. package/dist/contracts/vault/vendor-credential-sets.js +7 -0
  44. package/dist/contracts/vault.d.ts +14 -0
  45. package/dist/contracts/vault.js +2 -0
  46. package/dist/index.d.ts +1 -0
  47. package/dist/primitives/http.d.ts +2 -0
  48. package/dist/settings/agent-value-write-tools.d.ts +3 -1
  49. package/dist/settings/agent-value-write-tools.js +11 -4
  50. package/dist/settings/tool-registrations.js +1 -1
  51. package/dist/surface-cards.d.ts +2 -0
  52. package/dist/surface-cards.js +2 -0
  53. package/dist/text/descriptor-i18n.d.ts +24 -0
  54. package/dist/text/descriptor-i18n.js +65 -0
  55. package/dist/text/index.d.ts +2 -0
  56. package/dist/text/index.js +1 -0
  57. package/dist/tool-metadata-types.d.ts +6 -0
  58. package/dist/user-facing-error.d.ts +28 -1
  59. package/dist/user-facing-error.js +87 -4
  60. package/package.json +50 -2
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @file The optional `i18n` block a plugin descriptor carries so its own person-facing text (labels,
3
+ * help, guidance) renders in the viewer's language without core naming the plugin's strings.
4
+ *
5
+ * Shape: `{ "<locale>": { "<English source text>": "<translation>" } }`. Keyed by the exact English
6
+ * string the descriptor declares, so the admin looks a string up by the text it already has and falls
7
+ * back to that English when a locale or a string has no entry. A key that matches no descriptor string
8
+ * is harmless (never shown), so a reworded English string only loses its translation, never the host.
9
+ *
10
+ * Shared by every descriptor parser that has person-facing text (deploy targets,
11
+ * `@jini-ai/devops/deploy`'s `parseDeployTargetsFile`; a host's own descriptor parsers).
12
+ */
13
+ /** Locale → English source text → translation. */
14
+ export type DescriptorI18n = Readonly<Record<string, Readonly<Record<string, string>>>>;
15
+ /**
16
+ * A descriptor's `i18n` block (absent = English only), or the reason it is invalid.
17
+ *
18
+ * @complexity O(l·e) in locales times entries, both capped.
19
+ */
20
+ export declare function parseDescriptorI18n({ value, at }: {
21
+ readonly value: unknown;
22
+ readonly at: string;
23
+ }, _optional?: Record<string, never>): DescriptorI18n | undefined | string;
24
+ //# sourceMappingURL=descriptor-i18n.d.ts.map
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @file The optional `i18n` block a plugin descriptor carries so its own person-facing text (labels,
3
+ * help, guidance) renders in the viewer's language without core naming the plugin's strings.
4
+ *
5
+ * Shape: `{ "<locale>": { "<English source text>": "<translation>" } }`. Keyed by the exact English
6
+ * string the descriptor declares, so the admin looks a string up by the text it already has and falls
7
+ * back to that English when a locale or a string has no entry. A key that matches no descriptor string
8
+ * is harmless (never shown), so a reworded English string only loses its translation, never the host.
9
+ *
10
+ * Shared by every descriptor parser that has person-facing text (deploy targets,
11
+ * `@jini-ai/devops/deploy`'s `parseDeployTargetsFile`; a host's own descriptor parsers).
12
+ */
13
+ /** A BCP 47-shaped tag as the admin's locales spell them (`es`, `pt-BR`, `zh-TW`). */
14
+ const LOCALE_PATTERN = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/;
15
+ const MAX_LOCALES = 64;
16
+ const MAX_ENTRIES_PER_LOCALE = 200;
17
+ /** Matches the longest descriptor string (a help text). */
18
+ const MAX_SOURCE_LENGTH = 500;
19
+ /** Translations run longer than their English source. */
20
+ const MAX_TRANSLATION_LENGTH = 2000;
21
+ /**
22
+ * A descriptor's `i18n` block (absent = English only), or the reason it is invalid.
23
+ *
24
+ * @complexity O(l·e) in locales times entries, both capped.
25
+ */
26
+ export function parseDescriptorI18n({ value, at }, _optional = {}) {
27
+ if (value === undefined)
28
+ return undefined;
29
+ if (!isPlainObject(value))
30
+ return `${at} must map locales to translations`;
31
+ const locales = Object.entries(value);
32
+ if (locales.length > MAX_LOCALES)
33
+ return `${at} must declare at most ${MAX_LOCALES} locales`;
34
+ const parsed = {};
35
+ for (const [locale, entries] of locales) {
36
+ if (!LOCALE_PATTERN.test(locale))
37
+ return `${at} has an invalid locale '${locale}'`;
38
+ const translations = parseLocaleTranslations({ entries, at: `${at}.${locale}` });
39
+ if (typeof translations === "string")
40
+ return translations;
41
+ parsed[locale] = translations;
42
+ }
43
+ return parsed;
44
+ }
45
+ function isPlainObject(value) {
46
+ return typeof value === "object" && value !== null && !Array.isArray(value);
47
+ }
48
+ /** Validate one locale's bounded dictionary, retaining the first invalid entry's reason. */
49
+ function parseLocaleTranslations(input, _options = {}) {
50
+ const { entries, at } = input;
51
+ if (!isPlainObject(entries))
52
+ return `${at} must map English text to its translation`;
53
+ const pairs = Object.entries(entries);
54
+ if (pairs.length > MAX_ENTRIES_PER_LOCALE)
55
+ return `${at} must declare at most ${MAX_ENTRIES_PER_LOCALE} strings`;
56
+ for (const [source, translation] of pairs) {
57
+ if (source.trim() === "" || source.length > MAX_SOURCE_LENGTH)
58
+ return `${at} keys must be non-empty English text of at most ${MAX_SOURCE_LENGTH} characters`;
59
+ if (typeof translation !== "string" || translation.trim() === "" || translation.length > MAX_TRANSLATION_LENGTH) {
60
+ return `${at} translations must be non-empty strings of at most ${MAX_TRANSLATION_LENGTH} characters`;
61
+ }
62
+ }
63
+ return Object.fromEntries(pairs);
64
+ }
65
+ //# sourceMappingURL=descriptor-i18n.js.map
@@ -3,4 +3,6 @@ export type { SanitizeTextOptions } from './sanitize-untrusted-text.js';
3
3
  export { escapeHtml, escapeXml } from "./escape.js";
4
4
  export { trimChars, trimCharsEnd, trimCharsStart } from "../primitives/trim-chars.js";
5
5
  export { captureLineTail } from "./line-tail.js";
6
+ export { parseDescriptorI18n } from "./descriptor-i18n.js";
7
+ export type { DescriptorI18n } from "./descriptor-i18n.js";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,5 @@ export { sanitizeUntrustedText, stripControlSequences } from './sanitize-untrust
2
2
  export { escapeHtml, escapeXml } from "./escape.js";
3
3
  export { trimChars, trimCharsEnd, trimCharsStart } from "../primitives/trim-chars.js";
4
4
  export { captureLineTail } from "./line-tail.js";
5
+ export { parseDescriptorI18n } from "./descriptor-i18n.js";
5
6
  //# sourceMappingURL=index.js.map
@@ -9,6 +9,12 @@ export interface ToolApprovalMetadata {
9
9
  export interface ToolMetadata<A extends ToolApprovalMetadata = ToolApprovalMetadata> {
10
10
  /** Human-facing action name and optional button verb; presentation only, never authority. */
11
11
  readonly title?: string;
12
+ /** Public federation provenance only; credentials, complete URLs and command arguments are excluded. */
13
+ readonly mcpSource?: {
14
+ readonly id: string;
15
+ readonly host: string;
16
+ readonly pluginId?: string;
17
+ };
12
18
  /** Plain-language consequence shown before approval; never used to classify or authorize. */
13
19
  readonly summary?: string;
14
20
  readonly actionVerb?: string;
@@ -1,5 +1,5 @@
1
1
  import { type SecretRedactionOptions } from './redact.js';
2
- /** Sanitized explanation and copyable evidence. Missing boundary metadata stays explicitly unavailable. */
2
+ /** Sanitized explanation and copyable evidence. Missing boundary metadata is omitted from the copyable evidence. */
3
3
  export interface UserFacingError {
4
4
  readonly message: string;
5
5
  readonly action: string;
@@ -24,6 +24,7 @@ export interface UserFacingErrorOptions extends SecretRedactionOptions {
24
24
  * Redacts complete fields before bounding them; uses an existing ERR ID before a boundary fallback.
25
25
  * No I/O, logging, clock, randomness or input mutation. Core handles hostile/circular causes.
26
26
  * @complexity O(n) diagnostic serialization plus core redaction over all input characters; bounded output.
27
+ * @overallScore 98 — callers own disclosure; public ID shapes do not override credential or exact-secret rules.
27
28
  */
28
29
  export declare function formatUserFacingError(requiredArgs: {
29
30
  message: string;
@@ -31,4 +32,30 @@ export declare function formatUserFacingError(requiredArgs: {
31
32
  step: string;
32
33
  cause: unknown;
33
34
  }, optionalArgs?: UserFacingErrorOptions): UserFacingError;
35
+ /** Approved host vocabulary only. Keys are static route segments or slash-delimited operation suffixes; prefix an override key with an HTTP method and a space to restrict it. */
36
+ export interface RequestFailureVocabulary {
37
+ readonly nouns: Readonly<Record<string, {
38
+ readonly singular: string;
39
+ readonly plural: string;
40
+ }>>;
41
+ readonly operations?: Readonly<Record<string, RequestFailureDescription>>;
42
+ }
43
+ export interface RequestFailureDescription {
44
+ readonly message: string;
45
+ readonly action: string;
46
+ readonly step: string;
47
+ }
48
+ /**
49
+ * Describe a failed request using only host-approved words; path values and query strings never render.
50
+ * A registered template is preferred; operation identifiers are the fallback for non-HTTP mappers.
51
+ * This is pure and does not infer a cause, retry a write or assume POST means creation.
52
+ * @complexity O(n + k*n) time for n bounded route tokens and k host override suffixes; O(n) space.
53
+ * @overallScore 98 — the host owns vocabulary accuracy; unknown contexts retain a safe request fallback.
54
+ */
55
+ export declare function describeRequestFailure({ method, route, operation, vocabulary }: {
56
+ method?: string;
57
+ route?: string;
58
+ operation?: string;
59
+ vocabulary: RequestFailureVocabulary;
60
+ }, _optionalArgs?: Record<string, never>): RequestFailureDescription;
34
61
  //# sourceMappingURL=user-facing-error.d.ts.map
@@ -5,6 +5,7 @@ import { formatErrorForLog, redactSecrets } from './redact.js';
5
5
  * Redacts complete fields before bounding them; uses an existing ERR ID before a boundary fallback.
6
6
  * No I/O, logging, clock, randomness or input mutation. Core handles hostile/circular causes.
7
7
  * @complexity O(n) diagnostic serialization plus core redaction over all input characters; bounded output.
8
+ * @overallScore 98 — callers own disclosure; public ID shapes do not override credential or exact-secret rules.
8
9
  */
9
10
  export function formatUserFacingError(requiredArgs, optionalArgs = {}) {
10
11
  const diagnostic = formatErrorForLog({ error: requiredArgs.cause }, optionalArgs);
@@ -19,19 +20,31 @@ export function formatUserFacingError(requiredArgs, optionalArgs = {}) {
19
20
  message: safeField({ text: requiredArgs.message }, optionalArgs),
20
21
  action: safeField({ text: requiredArgs.action }, optionalArgs),
21
22
  step: safeField({ text: requiredArgs.step }, optionalArgs),
22
- cause: bound({ text: diagnostic, limit: 4096 }),
23
+ cause: bound({ text: redactSecrets({ input: diagnostic }, optionalArgs), limit: 4096 }),
23
24
  ...Object.fromEntries(Object.entries(metadata).filter((entry) => entry[1] !== undefined)
24
- .map(([key, text]) => [key, safeField({ text }, optionalArgs)])),
25
+ .map(([key, text]) => [key, safeMetadataField({ key, text }, optionalArgs)])),
25
26
  };
26
27
  const labels = [
27
28
  ['Message', fields.message], ['Next action', fields.action], ['Error ID', fields.errorId],
28
29
  ['Step', fields.step], ['Cause', fields.cause], ['App version', fields.appVersion],
29
30
  ['Jini version', fields.jiniVersion], ['Time', fields.time],
30
31
  ];
31
- // Exact secrets can span a fixed label and a field; scrub the assembled block as well.
32
- const copyText = bound({ text: redactSecrets({ input: labels.map(([label, value]) => `${label}: ${value ?? 'Unavailable'}`).join('\n') }, optionalArgs), limit: 8192 });
32
+ // Each field is already PII-scrubbed. Repeat credential/exact redaction across labels,
33
+ // without letting a numeric group in a public correlation ID be mistaken for a card.
34
+ const copyText = bound({ text: redactSecrets({ input: labels.filter(([, value]) => value?.trim()).map(([label, value]) => `${label}: ${value}`).join('\n') }, { ...optionalArgs, redactPii: false }), limit: 8192 });
33
35
  return { ...fields, copyText };
34
36
  }
37
+ /** Boundary-owned UUIDs are public identifiers, while explicit secret rules still win.
38
+ * Other metadata retains the usual PII policy; arbitrary numeric error IDs remain redactable.
39
+ * @complexity O(n) for redaction of one metadata field; UUID-shape matching is bounded.
40
+ * @overallScore 98 — the boundary owns whether an identifier is a public correlation reference.
41
+ */
42
+ function safeMetadataField({ key, text }, options) {
43
+ const correlationId = /^[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}$/i.test(text);
44
+ if (key === 'errorId' && correlationId)
45
+ return safeField({ text }, { ...options, redactPii: false });
46
+ return safeField({ text }, options);
47
+ }
35
48
  /** Redact the complete value so a credential crossing the display bound cannot leak its prefix. */
36
49
  function safeField({ text }, options) {
37
50
  return bound({ text: redactSecrets({ input: text }, options), limit: 512 });
@@ -39,4 +52,74 @@ function safeField({ text }, options) {
39
52
  function bound({ text, limit }) {
40
53
  return text.length > limit ? text.slice(0, limit - 1) + '…' : text;
41
54
  }
55
+ const REPORT_REQUEST_FAILURE = 'Copy details and report this problem.';
56
+ const REQUEST_ACTIONS = {
57
+ publish: 'publishing', unpublish: 'unpublishing', import: 'import', export: 'export',
58
+ upload: 'upload', download: 'download', restore: 'restore', send: 'send', undo: 'undo',
59
+ pull: 'pull', push: 'push', plan: 'preparation', confirm: 'confirmation', execute: 'execution',
60
+ update: 'save', save: 'save', create: 'creation', delete: 'removal',
61
+ };
62
+ /**
63
+ * Describe a failed request using only host-approved words; path values and query strings never render.
64
+ * A registered template is preferred; operation identifiers are the fallback for non-HTTP mappers.
65
+ * This is pure and does not infer a cause, retry a write or assume POST means creation.
66
+ * @complexity O(n + k*n) time for n bounded route tokens and k host override suffixes; O(n) space.
67
+ * @overallScore 98 — the host owns vocabulary accuracy; unknown contexts retain a safe request fallback.
68
+ */
69
+ export function describeRequestFailure({ method, route, operation, vocabulary }, _optionalArgs = {}) {
70
+ const tokens = (route || operation || '').slice(0, 2048).split(/[?#]/, 1)[0].split('/').slice(0, 64);
71
+ const override = Object.entries(vocabulary.operations ?? {}).find(([suffix]) => matchesRequestSuffix(tokens, suffix, method?.toUpperCase()));
72
+ if (override)
73
+ return { ...override[1] };
74
+ const nounKey = tokens.slice().reverse().find(token => Object.hasOwn(vocabulary.nouns, token));
75
+ const noun = nounKey === undefined ? undefined : vocabulary.nouns[nounKey];
76
+ const actionToken = tokens[tokens.length - 1] ?? '';
77
+ const action = Object.hasOwn(REQUEST_ACTIONS, actionToken) ? REQUEST_ACTIONS[actionToken] : undefined;
78
+ return requestFailureDescription({ method: method?.toUpperCase(), noun, action });
79
+ }
80
+ function matchesRequestSuffix(tokens, suffix, method) {
81
+ const [prefix, path] = suffix.split(' ', 2);
82
+ if (path !== undefined && prefix !== method)
83
+ return false;
84
+ const expected = (path ?? prefix).split('/');
85
+ return expected.every((token, index) => token === tokens[tokens.length - expected.length + index]);
86
+ }
87
+ /** Keep uncertain writes explicit: users check the result before repeating an operation. */
88
+ function requestFailureDescription({ method, noun, action }) {
89
+ if (method === 'GET' || method === 'HEAD')
90
+ return readFailureDescription(noun);
91
+ if (method === 'PUT' || method === 'PATCH' || action === 'save')
92
+ return saveFailureDescription(noun);
93
+ if (method === 'DELETE' || action === 'removal')
94
+ return removalFailureDescription(noun);
95
+ return operationFailureDescription(noun, action);
96
+ }
97
+ function operationFailureDescription(noun, action) {
98
+ return {
99
+ message: noun ? `The ${noun.singular} ${action ?? 'operation'} could not be completed.` : 'The request could not be completed.',
100
+ action: `Check the result before repeating this operation. ${REPORT_REQUEST_FAILURE}`,
101
+ step: noun ? `${noun.singular} ${action ?? 'operation'}` : 'Request',
102
+ };
103
+ }
104
+ function readFailureDescription(noun) {
105
+ return {
106
+ message: `The ${noun?.plural ?? 'requested information'} could not be loaded.`,
107
+ action: 'Try loading them again. If it still fails, copy details and report this problem.',
108
+ step: `Load ${noun?.plural ?? 'information'}`,
109
+ };
110
+ }
111
+ function saveFailureDescription(noun) {
112
+ return {
113
+ message: `The ${noun?.singular ?? 'requested'} save could not be completed.`,
114
+ action: `Check whether your changes were saved before repeating the save. ${REPORT_REQUEST_FAILURE}`,
115
+ step: `Save ${noun?.singular ?? 'changes'}`,
116
+ };
117
+ }
118
+ function removalFailureDescription(noun) {
119
+ return {
120
+ message: `The ${noun?.singular ?? 'item'} removal could not be confirmed.`,
121
+ action: `Check the list before repeating the removal. ${REPORT_REQUEST_FAILURE}`,
122
+ step: `Remove ${noun?.singular ?? 'item'}`,
123
+ };
124
+ }
42
125
  //# sourceMappingURL=user-facing-error.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/core",
3
- "version": "0.6.23",
3
+ "version": "0.7.1",
4
4
  "description": "The Jini kernel: typed DI tokens, pack composition and lifecycle, the tool registry, redaction, and origin/API-token auth primitives. Zero dependencies.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,6 +20,7 @@
20
20
  "./contribution-registry": "universal",
21
21
  "./provider-registry": "universal",
22
22
  "./object-store": "universal",
23
+ "./contracts/server": "universal",
23
24
  "./naming": "universal",
24
25
  "./records": "universal",
25
26
  "./primitives": "universal",
@@ -29,7 +30,14 @@
29
30
  "./settings/express": "node",
30
31
  "./plugin-directory": "universal",
31
32
  "./filesystem": "universal",
32
- "./optional-peer": "universal"
33
+ "./optional-peer": "universal",
34
+ "./contracts/cards": "universal",
35
+ "./contracts/credentials": "universal",
36
+ "./contracts/mail": "universal",
37
+ "./contracts/vault": "universal",
38
+ "./contracts/oauth": "universal",
39
+ "./contracts/content-types": "universal",
40
+ "./contracts/hosted-mcp": "universal"
33
41
  },
34
42
  "isolation": {
35
43
  "entries": {
@@ -118,6 +126,11 @@
118
126
  "import": "./dist/object-store.js",
119
127
  "default": "./dist/object-store.js"
120
128
  },
129
+ "./contracts/server": {
130
+ "types": "./dist/contracts/server.d.ts",
131
+ "import": "./dist/contracts/server.js",
132
+ "default": "./dist/contracts/server.js"
133
+ },
121
134
  "./naming": {
122
135
  "types": "./dist/naming.d.ts",
123
136
  "import": "./dist/naming.js",
@@ -167,6 +180,41 @@
167
180
  "types": "./dist/optional-peer.d.ts",
168
181
  "import": "./dist/optional-peer.js",
169
182
  "default": "./dist/optional-peer.js"
183
+ },
184
+ "./contracts/cards": {
185
+ "types": "./dist/contracts/cards.d.ts",
186
+ "import": "./dist/contracts/cards.js",
187
+ "default": "./dist/contracts/cards.js"
188
+ },
189
+ "./contracts/credentials": {
190
+ "types": "./dist/contracts/credentials.d.ts",
191
+ "import": "./dist/contracts/credentials.js",
192
+ "default": "./dist/contracts/credentials.js"
193
+ },
194
+ "./contracts/mail": {
195
+ "types": "./dist/contracts/mail.d.ts",
196
+ "import": "./dist/contracts/mail.js",
197
+ "default": "./dist/contracts/mail.js"
198
+ },
199
+ "./contracts/vault": {
200
+ "types": "./dist/contracts/vault.d.ts",
201
+ "import": "./dist/contracts/vault.js",
202
+ "default": "./dist/contracts/vault.js"
203
+ },
204
+ "./contracts/oauth": {
205
+ "types": "./dist/contracts/oauth.d.ts",
206
+ "import": "./dist/contracts/oauth.js",
207
+ "default": "./dist/contracts/oauth.js"
208
+ },
209
+ "./contracts/content-types": {
210
+ "types": "./dist/contracts/content-types.d.ts",
211
+ "import": "./dist/contracts/content-types.js",
212
+ "default": "./dist/contracts/content-types.js"
213
+ },
214
+ "./contracts/hosted-mcp": {
215
+ "types": "./dist/contracts/hosted-mcp.d.ts",
216
+ "import": "./dist/contracts/hosted-mcp.js",
217
+ "default": "./dist/contracts/hosted-mcp.js"
170
218
  }
171
219
  },
172
220
  "files": [