@vibesdotdev/integrations-context7 0.0.0-stage → 1.0.0-rc.0
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/LICENSE +126 -0
- package/README.md +14 -2
- package/dist/client.d.ts +11 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +90 -0
- package/dist/client.js.map +1 -0
- package/dist/config/context7.config.descriptor.d.ts +29 -0
- package/dist/config/context7.config.descriptor.d.ts.map +1 -0
- package/dist/config/context7.config.descriptor.js +24 -0
- package/dist/config/context7.config.descriptor.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations-context7.consumer.plugin.d.ts +8 -0
- package/dist/integrations-context7.consumer.plugin.d.ts.map +1 -0
- package/dist/integrations-context7.consumer.plugin.js +50 -0
- package/dist/integrations-context7.consumer.plugin.js.map +1 -0
- package/dist/integrations-context7.plugin.d.ts +10 -0
- package/dist/integrations-context7.plugin.d.ts.map +1 -0
- package/dist/integrations-context7.plugin.js +28 -0
- package/dist/integrations-context7.plugin.js.map +1 -0
- package/dist/schemas/index.d.ts +102 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +61 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/source/context7.descriptor.d.ts +18 -0
- package/dist/source/context7.descriptor.d.ts.map +1 -0
- package/dist/source/context7.descriptor.js +17 -0
- package/dist/source/context7.descriptor.js.map +1 -0
- package/dist/source/context7.impl.consumer.d.ts +17 -0
- package/dist/source/context7.impl.consumer.d.ts.map +1 -0
- package/dist/source/context7.impl.consumer.js +72 -0
- package/dist/source/context7.impl.consumer.js.map +1 -0
- package/dist/svelte/Context7DocsToolCard.svelte +85 -0
- package/dist/svelte/Context7DocsToolCard.svelte.d.ts +5 -0
- package/dist/svelte/Context7DocsToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/Context7SearchToolCard.svelte +99 -0
- package/dist/svelte/Context7SearchToolCard.svelte.d.ts +8 -0
- package/dist/svelte/Context7SearchToolCard.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +4 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +3 -0
- package/dist/svelte/integrations-context7-svelte.plugin.d.ts +4 -0
- package/dist/svelte/integrations-context7-svelte.plugin.d.ts.map +1 -0
- package/dist/svelte/integrations-context7-svelte.plugin.js +21 -0
- package/dist/tools/context7-docs.descriptor.d.ts +39 -0
- package/dist/tools/context7-docs.descriptor.d.ts.map +1 -0
- package/dist/tools/context7-docs.descriptor.js +27 -0
- package/dist/tools/context7-docs.descriptor.js.map +1 -0
- package/dist/tools/context7-docs.impl.d.ts +13 -0
- package/dist/tools/context7-docs.impl.d.ts.map +1 -0
- package/dist/tools/context7-docs.impl.js +13 -0
- package/dist/tools/context7-docs.impl.js.map +1 -0
- package/dist/tools/context7-search.descriptor.d.ts +46 -0
- package/dist/tools/context7-search.descriptor.d.ts.map +1 -0
- package/dist/tools/context7-search.descriptor.js +27 -0
- package/dist/tools/context7-search.descriptor.js.map +1 -0
- package/dist/tools/context7-search.impl.d.ts +13 -0
- package/dist/tools/context7-search.impl.d.ts.map +1 -0
- package/dist/tools/context7-search.impl.js +13 -0
- package/dist/tools/context7-search.impl.js.map +1 -0
- package/dist/tui/Context7DocsToolWidget.impl.consumer.d.ts +4 -0
- package/dist/tui/Context7DocsToolWidget.impl.consumer.d.ts.map +1 -0
- package/dist/tui/Context7DocsToolWidget.impl.consumer.js +20 -0
- package/dist/tui/Context7DocsToolWidget.impl.consumer.js.map +1 -0
- package/dist/tui/Context7SearchToolWidget.impl.consumer.d.ts +4 -0
- package/dist/tui/Context7SearchToolWidget.impl.consumer.d.ts.map +1 -0
- package/dist/tui/Context7SearchToolWidget.impl.consumer.js +21 -0
- package/dist/tui/Context7SearchToolWidget.impl.consumer.js.map +1 -0
- package/package.json +116 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context7 Search Tool Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Metadata for the context7-search tool. Safe to import anywhere.
|
|
5
|
+
*/
|
|
6
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel/factory';
|
|
7
|
+
import { Context7SearchInputSchema, Context7SearchOutputSchema } from "../schemas/index.js";
|
|
8
|
+
export default createRuntimeAsset({
|
|
9
|
+
kind: 'tools/tool',
|
|
10
|
+
id: 'context7-search',
|
|
11
|
+
name: 'Context7 Search',
|
|
12
|
+
description: 'Find Context7 library IDs.',
|
|
13
|
+
mcpDescription: 'Find library IDs. Ex: {query:"svelte"}; use result with context7-docs.',
|
|
14
|
+
category: 'knowledge',
|
|
15
|
+
subcategory: 'external',
|
|
16
|
+
hardware: ['consumer', 'cloud'],
|
|
17
|
+
purpose: ['direct', 'worker', 'mcp', 'agent'],
|
|
18
|
+
tags: ['search', 'knowledge', 'documentation', 'context7'],
|
|
19
|
+
safety: 'execute',
|
|
20
|
+
requiresApproval: false,
|
|
21
|
+
enabled: true,
|
|
22
|
+
schemas: {
|
|
23
|
+
input: Context7SearchInputSchema,
|
|
24
|
+
output: Context7SearchOutputSchema
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=context7-search.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context7-search.descriptor.js","sourceRoot":"","sources":["../../src/tools/context7-search.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAE5F,eAAe,kBAAkB,CAAC;IACjC,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,4BAA4B;IACzC,cAAc,EAAE,wEAAwE;IACxF,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,UAAU;IACvB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;IAC7C,IAAI,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,CAAC;IAC1D,MAAM,EAAE,SAAS;IACjB,gBAAgB,EAAE,KAAK;IACvB,OAAO,EAAE,IAAI;IACb,OAAO,EAAE;QACR,KAAK,EAAE,yBAAyB;QAChC,MAAM,EAAE,0BAA0B;KAClC;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context7 Search Tool Implementation
|
|
3
|
+
*
|
|
4
|
+
* Hardware-agnostic — pure HTTP fetch against Context7 endpoints.
|
|
5
|
+
* Works in consumer runtimes and cloud workers.
|
|
6
|
+
*/
|
|
7
|
+
import type { VibesRuntime, ToolCallContext } from '@vibesdotdev/kernel';
|
|
8
|
+
import type { Context7SearchInput, Context7SearchOutput } from '../schemas/index.ts';
|
|
9
|
+
declare const _default: {
|
|
10
|
+
execute(input: Context7SearchInput, runtime: VibesRuntime, _ctx: ToolCallContext): Promise<Context7SearchOutput>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=context7-search.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context7-search.impl.d.ts","sourceRoot":"","sources":["../../src/tools/context7-search.impl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;;mBAK5E,mBAAmB,WACjB,YAAY,QACf,eAAe,GACnB,OAAO,CAAC,oBAAoB,CAAC;;AALjC,wBAQE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context7 Search Tool Implementation
|
|
3
|
+
*
|
|
4
|
+
* Hardware-agnostic — pure HTTP fetch against Context7 endpoints.
|
|
5
|
+
* Works in consumer runtimes and cloud workers.
|
|
6
|
+
*/
|
|
7
|
+
import { searchContext7 } from "../client.js";
|
|
8
|
+
export default {
|
|
9
|
+
execute(input, runtime, _ctx) {
|
|
10
|
+
return searchContext7(runtime, input);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=context7-search.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context7-search.impl.js","sourceRoot":"","sources":["../../src/tools/context7-search.impl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAe;IACd,OAAO,CACN,KAA0B,EAC1B,OAAqB,EACrB,IAAqB;QAErB,OAAO,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type TuiToolWidgetProps } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
3
|
+
export default function Context7DocsToolWidget(tool: TuiToolWidgetProps): ReactNode;
|
|
4
|
+
//# sourceMappingURL=Context7DocsToolWidget.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context7DocsToolWidget.impl.consumer.d.ts","sourceRoot":"","sources":["../../src/tui/Context7DocsToolWidget.impl.consumer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9F,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,CAyClF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
+
import { SyntaxHighlightedText } from '@vibesdotdev/tui/components/code';
|
|
3
|
+
import { VStack } from '@vibesdotdev/tui/components/layout';
|
|
4
|
+
import { dsBase, dsColors, dsSpace } from '@vibesdotdev/tui/theme';
|
|
5
|
+
import { ToolWidgetCard } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
6
|
+
import { readPresentation, ContextDocsPresentationInput, ContextDocsPresentationOutput } from "../schemas/index.js";
|
|
7
|
+
export default function Context7DocsToolWidget(tool) {
|
|
8
|
+
const args = readPresentation(ContextDocsPresentationInput, tool.args);
|
|
9
|
+
const output = readPresentation(ContextDocsPresentationOutput, tool.output);
|
|
10
|
+
const libraryId = (output?.libraryId ?? '') || (args?.libraryId ?? '');
|
|
11
|
+
const topic = (output?.topic ?? '') || (args?.topic ?? '');
|
|
12
|
+
const page = (output?.page ?? args?.page ?? null);
|
|
13
|
+
const content = (output?.content ?? '');
|
|
14
|
+
const outputError = (output?.error ?? '');
|
|
15
|
+
const failed = tool.status === 'failed' || Boolean(tool.error) || Boolean(outputError);
|
|
16
|
+
const errorText = tool.error || outputError || 'The context7-docs tool failed.';
|
|
17
|
+
const title = failed ? 'Could not load Context7 docs' : libraryId || 'Context7 docs';
|
|
18
|
+
return (_jsx(ToolWidgetCard, { tool: tool, title: title, defaultOpen: failed || Boolean(content), children: _jsx(VStack, { gap: dsSpace.xs, children: failed ? (_jsx("text", { style: { fg: dsColors.danger.solid }, children: errorText })) : (_jsxs(_Fragment, { children: [topic || page !== null ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: [topic, page !== null ? `page ${page}` : ''].filter(Boolean).join(' | ') })) : null, content ? (_jsx(SyntaxHighlightedText, { content: content, language: "markdown", showLineNumbers: true, wrap: true })) : (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: "No documentation returned." }))] })) }) }));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Context7DocsToolWidget.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context7DocsToolWidget.impl.consumer.js","sourceRoot":"","sources":["../../src/tui/Context7DocsToolWidget.impl.consumer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAA2B,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,IAAwB;IACtE,MAAM,IAAI,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;IACvE,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;IACxC,MAAM,WAA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Ae,EAAE,2CAAmC,CAC9E,IACC,CACH,GACO,GACO,CACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type TuiToolWidgetProps } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
3
|
+
export default function Context7SearchToolWidget(tool: TuiToolWidgetProps): ReactNode;
|
|
4
|
+
//# sourceMappingURL=Context7SearchToolWidget.impl.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context7SearchToolWidget.impl.consumer.d.ts","sourceRoot":"","sources":["../../src/tui/Context7SearchToolWidget.impl.consumer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAKxG,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,CAiDpF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@opentui/react/jsx-runtime";
|
|
2
|
+
import { asString, ToolWidgetCard } from '@vibesdotdev/tools/tui/tool-widgets';
|
|
3
|
+
import { VStack } from '@vibesdotdev/tui/components/layout';
|
|
4
|
+
import { dsBase, dsColors, dsSpace } from '@vibesdotdev/tui/theme';
|
|
5
|
+
import { readPresentation, ContextSearchPresentationInput, ContextSearchPresentationOutput } from "../schemas/index.js";
|
|
6
|
+
export default function Context7SearchToolWidget(tool) {
|
|
7
|
+
const args = readPresentation(ContextSearchPresentationInput, tool.args);
|
|
8
|
+
const output = readPresentation(ContextSearchPresentationOutput, tool.output);
|
|
9
|
+
const query = args?.query ?? '';
|
|
10
|
+
const outputError = asString(output?.error);
|
|
11
|
+
const items = output?.results ?? [];
|
|
12
|
+
const failed = tool.status === 'failed' || Boolean(tool.error) || Boolean(outputError);
|
|
13
|
+
const errorText = tool.error || outputError || 'The context7-search tool failed.';
|
|
14
|
+
const title = failed
|
|
15
|
+
? 'Context7 search failed'
|
|
16
|
+
: query
|
|
17
|
+
? `Found ${items.length} Context7 ${items.length === 1 ? 'library' : 'libraries'}`
|
|
18
|
+
: 'Context7 search';
|
|
19
|
+
return (_jsx(ToolWidgetCard, { tool: tool, title: title, defaultOpen: true, children: _jsx(VStack, { gap: dsSpace.xs, children: failed ? (_jsx("text", { style: { fg: dsColors.danger.solid }, children: errorText })) : (_jsxs(_Fragment, { children: [query ? _jsx("text", { style: { fg: dsBase.mutedForeground }, children: query }) : null, items.length > 0 ? (_jsx(VStack, { gap: 0, children: items.slice(0, 5).map((item) => (_jsxs(VStack, { gap: 0, children: [_jsxs("text", { style: { fg: dsBase.foreground }, children: [item.title, item.trustScore !== undefined ? ` | trust ${item.trustScore}` : ''] }), item.id !== item.title ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: item.id })) : null, item.description ? (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: item.description })) : null] }, item.id))) })) : (_jsx("text", { style: { fg: dsBase.mutedForeground }, children: "No libraries found." }))] })) }) }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Context7SearchToolWidget.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context7SearchToolWidget.impl.consumer.js","sourceRoot":"","sources":["../../src/tui/Context7SearchToolWidget.impl.consumer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAA2B,MAAM,qCAAqC,CAAC;AACxG,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAExH,MAAM,CAAC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0",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@vibesdotdev/config": "^1.0.0-rc.3",
|
|
6
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.6",
|
|
7
|
+
"@vibesdotdev/knowledge": "^1.0.0-rc.1",
|
|
8
|
+
"@vibesdotdev/tools": "^1.0.0-rc.3",
|
|
9
|
+
"zod": "^4.6.7"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@opentui/react": "^0.5.8",
|
|
13
|
+
"@vibesdotdev/kit": "^1.0.0-rc.3",
|
|
14
|
+
"@vibesdotdev/tui": "^1.0.0-rc.2",
|
|
15
|
+
"react": "^19.2.8",
|
|
16
|
+
"svelte": "^5.56.10"
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"bun": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./plugin": {
|
|
27
|
+
"bun": "./dist/integrations-context7.plugin.js",
|
|
28
|
+
"types": "./dist/integrations-context7.plugin.d.ts",
|
|
29
|
+
"import": "./dist/integrations-context7.plugin.js",
|
|
30
|
+
"default": "./dist/integrations-context7.plugin.js"
|
|
31
|
+
},
|
|
32
|
+
"./consumer-plugin": {
|
|
33
|
+
"bun": "./dist/integrations-context7.consumer.plugin.js",
|
|
34
|
+
"types": "./dist/integrations-context7.consumer.plugin.d.ts",
|
|
35
|
+
"import": "./dist/integrations-context7.consumer.plugin.js",
|
|
36
|
+
"default": "./dist/integrations-context7.consumer.plugin.js"
|
|
37
|
+
},
|
|
38
|
+
"./client": {
|
|
39
|
+
"bun": "./dist/client.js",
|
|
40
|
+
"types": "./dist/client.d.ts",
|
|
41
|
+
"import": "./dist/client.js",
|
|
42
|
+
"default": "./dist/client.js"
|
|
43
|
+
},
|
|
44
|
+
"./schemas": {
|
|
45
|
+
"bun": "./dist/schemas/index.js",
|
|
46
|
+
"types": "./dist/schemas/index.d.ts",
|
|
47
|
+
"import": "./dist/schemas/index.js",
|
|
48
|
+
"default": "./dist/schemas/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./svelte": {
|
|
51
|
+
"bun": "./dist/svelte/index.js",
|
|
52
|
+
"types": "./dist/svelte/index.d.ts",
|
|
53
|
+
"svelte": "./dist/svelte/index.js",
|
|
54
|
+
"import": "./dist/svelte/index.js",
|
|
55
|
+
"default": "./dist/svelte/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./svelte/plugin": {
|
|
58
|
+
"bun": "./dist/svelte/integrations-context7-svelte.plugin.js",
|
|
59
|
+
"types": "./dist/svelte/integrations-context7-svelte.plugin.d.ts",
|
|
60
|
+
"import": "./dist/svelte/integrations-context7-svelte.plugin.js",
|
|
61
|
+
"default": "./dist/svelte/integrations-context7-svelte.plugin.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist",
|
|
66
|
+
"README.md",
|
|
67
|
+
"LICENSE",
|
|
68
|
+
"!dist/**/*.tsbuildinfo"
|
|
69
|
+
],
|
|
70
|
+
"scripts": {
|
|
71
|
+
"lint": "node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
|
|
72
|
+
"test": "${BUN:-bun} test src",
|
|
73
|
+
"check": "${BUN:-bun} --bun tsc -p tsconfig.json --noEmit && ${BUN:-bun} --bun svelte-check --tsconfig ./tsconfig.svelte.check.json",
|
|
74
|
+
"build": "rm -rf dist && tsc -p tsconfig.core.json && ${BUN:-bun} --bun svelte-package --input ./src/svelte --output ./dist/svelte --tsconfig ./tsconfig.svelte.json && rm -rf dist/svelte/__tests__ && find dist/svelte -name '*.test.*' -delete && find dist/svelte -name '*.spec.*' -delete"
|
|
75
|
+
},
|
|
76
|
+
"repository": {
|
|
77
|
+
"type": "git",
|
|
78
|
+
"url": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
79
|
+
"directory": "integrations/context7"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"registry": "https://packages.vibes.dev",
|
|
83
|
+
"access": "public"
|
|
84
|
+
},
|
|
85
|
+
"vibes": {
|
|
86
|
+
"visibility": "public",
|
|
87
|
+
"registry": {
|
|
88
|
+
"repositoryId": "70be51c9-5ab7-4d7e-9f47-801cb17720d8",
|
|
89
|
+
"directory": "integrations/context7"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"type": "module",
|
|
93
|
+
"types": "./dist/index.d.ts",
|
|
94
|
+
"peerDependenciesMeta": {
|
|
95
|
+
"@opentui/react": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@vibesdotdev/kit": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"@vibesdotdev/tui": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"react": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"svelte": {
|
|
108
|
+
"optional": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"license": "BUSL-1.1",
|
|
112
|
+
"gitHead": "6e2b3b71e16cb829d31a2e52da19fb03582a5ff6",
|
|
113
|
+
"_vibes_source": {
|
|
114
|
+
"repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
115
|
+
"sha": "6e2b3b71e16cb829d31a2e52da19fb03582a5ff6",
|
|
116
|
+
"workspaceDigest": "sha256:b300940af07a881549fac6f5881718cc5b424c4b9aa630f1886105861788aa72"
|
|
117
|
+
}
|
|
118
|
+
}
|