@chat-js/registry 0.1.2 → 0.2.0-beta.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.
- package/README.md +60 -8
- package/dist/r/ai-titles.json +50 -0
- package/dist/r/akamai-storage.json +44 -0
- package/dist/r/alibaba-storage.json +44 -0
- package/dist/r/appwrite-storage.json +50 -0
- package/dist/r/archil-storage.json +52 -0
- package/dist/r/attachment-uploads.json +90 -0
- package/dist/r/azure-storage.json +51 -0
- package/dist/r/backblaze-b2-storage.json +44 -0
- package/dist/r/base/ai-titles.json +50 -0
- package/dist/r/base/akamai-storage.json +44 -0
- package/dist/r/base/alibaba-storage.json +44 -0
- package/dist/r/base/appwrite-storage.json +50 -0
- package/dist/r/base/archil-storage.json +52 -0
- package/dist/r/base/attachment-uploads.json +90 -0
- package/dist/r/base/azure-storage.json +51 -0
- package/dist/r/base/backblaze-b2-storage.json +44 -0
- package/dist/r/base/bunny-storage-storage.json +48 -0
- package/dist/r/base/cloudinary-storage.json +43 -0
- package/dist/r/base/code-documents.json +96 -0
- package/dist/r/base/code-execution-runtime.json +25 -0
- package/dist/r/base/code-execution-ui.json +32 -0
- package/dist/r/base/code-execution.json +69 -0
- package/dist/r/base/credits.json +103 -0
- package/dist/r/base/daytona-sandbox.json +55 -0
- package/dist/r/base/deep-research.json +224 -0
- package/dist/r/base/delete-document.json +58 -0
- package/dist/r/base/digitalocean-spaces-storage.json +44 -0
- package/dist/r/base/dropbox-storage.json +43 -0
- package/dist/r/base/exoscale-storage.json +44 -0
- package/dist/r/base/feedback.json +112 -0
- package/dist/r/base/filebase-storage.json +43 -0
- package/dist/r/base/firebase-storage-storage.json +52 -0
- package/dist/r/base/firecrawl-search.json +72 -0
- package/dist/r/base/followup-suggestions.json +152 -0
- package/dist/r/base/ftp-storage.json +54 -0
- package/dist/r/base/gcs-storage.json +33 -0
- package/dist/r/base/generate-image.json +101 -0
- package/dist/r/base/generate-video.json +70 -0
- package/dist/r/base/get-weather.json +52 -0
- package/dist/r/base/google-drive-storage.json +47 -0
- package/dist/r/base/hetzner-storage.json +44 -0
- package/dist/r/base/ibm-cos-storage.json +44 -0
- package/dist/r/base/idrive-e2-storage.json +44 -0
- package/dist/r/base/langfuse.json +63 -0
- package/dist/r/base/litellm-gateway.json +67 -0
- package/dist/r/base/mcp.json +320 -0
- package/dist/r/base/memory-storage.json +28 -0
- package/dist/r/base/minio-storage.json +44 -0
- package/dist/r/base/model-preferences.json +131 -0
- package/dist/r/base/neon-storage.json +44 -0
- package/dist/r/base/netlify-blobs-storage.json +31 -0
- package/dist/r/base/onedrive-storage.json +48 -0
- package/dist/r/base/openai-compatible-gateway.json +69 -0
- package/dist/r/base/openai-gateway.json +67 -0
- package/dist/r/base/openrouter-gateway.json +75 -0
- package/dist/r/base/oracle-cloud-storage.json +45 -0
- package/dist/r/base/ovhcloud-storage.json +44 -0
- package/dist/r/base/pocketbase-storage.json +50 -0
- package/dist/r/base/projects.json +275 -0
- package/dist/r/base/r2-storage.json +44 -0
- package/dist/r/base/read-document.json +34 -0
- package/dist/r/base/registry.json +4949 -0
- package/dist/r/base/retrieve-url.json +69 -0
- package/dist/r/base/s3-storage.json +44 -0
- package/dist/r/base/saved-code-execution.json +84 -0
- package/dist/r/base/scaleway-storage.json +44 -0
- package/dist/r/base/search.json +146 -0
- package/dist/r/base/sftp-storage.json +58 -0
- package/dist/r/base/sharepoint-storage.json +50 -0
- package/dist/r/base/sharing.json +144 -0
- package/dist/r/base/sheet-documents.json +94 -0
- package/dist/r/base/storj-storage.json +43 -0
- package/dist/r/base/supabase-storage.json +48 -0
- package/dist/r/base/tavily-search.json +72 -0
- package/dist/r/base/tencent-storage.json +44 -0
- package/dist/r/base/text-documents.json +117 -0
- package/dist/r/base/tigris-storage.json +43 -0
- package/dist/r/base/uploadthing-storage.json +38 -0
- package/dist/r/base/vercel-analytics.json +46 -0
- package/dist/r/base/vercel-blob-storage.json +42 -0
- package/dist/r/base/vercel-gateway.json +77 -0
- package/dist/r/base/vercel-sandbox.json +67 -0
- package/dist/r/base/vercel-speed-insights.json +46 -0
- package/dist/r/base/vultr-storage.json +44 -0
- package/dist/r/base/wasabi-storage.json +44 -0
- package/dist/r/base/webdav-storage.json +52 -0
- package/dist/r/base/word-count.json +51 -0
- package/dist/r/base/yandex-storage.json +43 -0
- package/dist/r/bunny-storage-storage.json +48 -0
- package/dist/r/cloudinary-storage.json +43 -0
- package/dist/r/code-documents.json +96 -0
- package/dist/r/code-execution-runtime.json +25 -0
- package/dist/r/code-execution-ui.json +32 -0
- package/dist/r/code-execution.json +69 -0
- package/dist/r/credits.json +103 -0
- package/dist/r/daytona-sandbox.json +55 -0
- package/dist/r/deep-research.json +224 -0
- package/dist/r/delete-document.json +58 -0
- package/dist/r/digitalocean-spaces-storage.json +44 -0
- package/dist/r/dropbox-storage.json +43 -0
- package/dist/r/exoscale-storage.json +44 -0
- package/dist/r/feedback.json +112 -0
- package/dist/r/filebase-storage.json +43 -0
- package/dist/r/firebase-storage-storage.json +52 -0
- package/dist/r/firecrawl-search.json +72 -0
- package/dist/r/followup-suggestions.json +152 -0
- package/dist/r/ftp-storage.json +54 -0
- package/dist/r/gcs-storage.json +33 -0
- package/dist/r/generate-image.json +101 -0
- package/dist/r/generate-video.json +70 -0
- package/dist/r/get-weather.json +52 -0
- package/dist/r/google-drive-storage.json +47 -0
- package/dist/r/hetzner-storage.json +44 -0
- package/dist/r/ibm-cos-storage.json +44 -0
- package/dist/r/idrive-e2-storage.json +44 -0
- package/dist/r/langfuse.json +63 -0
- package/dist/r/litellm-gateway.json +67 -0
- package/dist/r/mcp.json +320 -0
- package/dist/r/memory-storage.json +28 -0
- package/dist/r/minio-storage.json +44 -0
- package/dist/r/model-preferences.json +131 -0
- package/dist/r/neon-storage.json +44 -0
- package/dist/r/netlify-blobs-storage.json +31 -0
- package/dist/r/onedrive-storage.json +48 -0
- package/dist/r/openai-compatible-gateway.json +69 -0
- package/dist/r/openai-gateway.json +67 -0
- package/dist/r/openrouter-gateway.json +75 -0
- package/dist/r/oracle-cloud-storage.json +45 -0
- package/dist/r/ovhcloud-storage.json +44 -0
- package/dist/r/pocketbase-storage.json +50 -0
- package/dist/r/projects.json +275 -0
- package/dist/r/r2-storage.json +44 -0
- package/dist/r/radix/ai-titles.json +50 -0
- package/dist/r/radix/akamai-storage.json +44 -0
- package/dist/r/radix/alibaba-storage.json +44 -0
- package/dist/r/radix/appwrite-storage.json +50 -0
- package/dist/r/radix/archil-storage.json +52 -0
- package/dist/r/radix/attachment-uploads.json +90 -0
- package/dist/r/radix/azure-storage.json +51 -0
- package/dist/r/radix/backblaze-b2-storage.json +44 -0
- package/dist/r/radix/bunny-storage-storage.json +48 -0
- package/dist/r/radix/cloudinary-storage.json +43 -0
- package/dist/r/radix/code-documents.json +96 -0
- package/dist/r/radix/code-execution-runtime.json +25 -0
- package/dist/r/radix/code-execution-ui.json +32 -0
- package/dist/r/radix/code-execution.json +69 -0
- package/dist/r/radix/credits.json +103 -0
- package/dist/r/radix/daytona-sandbox.json +55 -0
- package/dist/r/radix/deep-research.json +224 -0
- package/dist/r/radix/delete-document.json +58 -0
- package/dist/r/radix/digitalocean-spaces-storage.json +44 -0
- package/dist/r/radix/dropbox-storage.json +43 -0
- package/dist/r/radix/exoscale-storage.json +44 -0
- package/dist/r/radix/feedback.json +112 -0
- package/dist/r/radix/filebase-storage.json +43 -0
- package/dist/r/radix/firebase-storage-storage.json +52 -0
- package/dist/r/radix/firecrawl-search.json +72 -0
- package/dist/r/radix/followup-suggestions.json +152 -0
- package/dist/r/radix/ftp-storage.json +54 -0
- package/dist/r/radix/gcs-storage.json +33 -0
- package/dist/r/radix/generate-image.json +101 -0
- package/dist/r/radix/generate-video.json +70 -0
- package/dist/r/radix/get-weather.json +52 -0
- package/dist/r/radix/google-drive-storage.json +47 -0
- package/dist/r/radix/hetzner-storage.json +44 -0
- package/dist/r/radix/ibm-cos-storage.json +44 -0
- package/dist/r/radix/idrive-e2-storage.json +44 -0
- package/dist/r/radix/langfuse.json +63 -0
- package/dist/r/radix/litellm-gateway.json +67 -0
- package/dist/r/radix/mcp.json +320 -0
- package/dist/r/radix/memory-storage.json +28 -0
- package/dist/r/radix/minio-storage.json +44 -0
- package/dist/r/radix/model-preferences.json +131 -0
- package/dist/r/radix/neon-storage.json +44 -0
- package/dist/r/radix/netlify-blobs-storage.json +31 -0
- package/dist/r/radix/onedrive-storage.json +48 -0
- package/dist/r/radix/openai-compatible-gateway.json +69 -0
- package/dist/r/radix/openai-gateway.json +67 -0
- package/dist/r/radix/openrouter-gateway.json +75 -0
- package/dist/r/radix/oracle-cloud-storage.json +45 -0
- package/dist/r/radix/ovhcloud-storage.json +44 -0
- package/dist/r/radix/pocketbase-storage.json +50 -0
- package/dist/r/radix/projects.json +275 -0
- package/dist/r/radix/r2-storage.json +44 -0
- package/dist/r/radix/read-document.json +34 -0
- package/dist/r/radix/registry.json +4949 -0
- package/dist/r/radix/retrieve-url.json +69 -0
- package/dist/r/radix/s3-storage.json +44 -0
- package/dist/r/radix/saved-code-execution.json +84 -0
- package/dist/r/radix/scaleway-storage.json +44 -0
- package/dist/r/radix/search.json +146 -0
- package/dist/r/radix/sftp-storage.json +58 -0
- package/dist/r/radix/sharepoint-storage.json +50 -0
- package/dist/r/radix/sharing.json +144 -0
- package/dist/r/radix/sheet-documents.json +94 -0
- package/dist/r/radix/storj-storage.json +43 -0
- package/dist/r/radix/supabase-storage.json +48 -0
- package/dist/r/radix/tavily-search.json +72 -0
- package/dist/r/radix/tencent-storage.json +44 -0
- package/dist/r/radix/text-documents.json +117 -0
- package/dist/r/radix/tigris-storage.json +43 -0
- package/dist/r/radix/uploadthing-storage.json +38 -0
- package/dist/r/radix/vercel-analytics.json +46 -0
- package/dist/r/radix/vercel-blob-storage.json +42 -0
- package/dist/r/radix/vercel-gateway.json +77 -0
- package/dist/r/radix/vercel-sandbox.json +67 -0
- package/dist/r/radix/vercel-speed-insights.json +46 -0
- package/dist/r/radix/vultr-storage.json +44 -0
- package/dist/r/radix/wasabi-storage.json +44 -0
- package/dist/r/radix/webdav-storage.json +52 -0
- package/dist/r/radix/word-count.json +51 -0
- package/dist/r/radix/yandex-storage.json +43 -0
- package/dist/r/read-document.json +34 -0
- package/dist/r/registry.json +4949 -0
- package/dist/r/retrieve-url.json +69 -0
- package/dist/r/s3-storage.json +44 -0
- package/dist/r/saved-code-execution.json +84 -0
- package/dist/r/scaleway-storage.json +44 -0
- package/dist/r/search.json +146 -0
- package/dist/r/sftp-storage.json +58 -0
- package/dist/r/sharepoint-storage.json +50 -0
- package/dist/r/sharing.json +144 -0
- package/dist/r/sheet-documents.json +94 -0
- package/dist/r/storj-storage.json +43 -0
- package/dist/r/supabase-storage.json +48 -0
- package/dist/r/tavily-search.json +72 -0
- package/dist/r/tencent-storage.json +44 -0
- package/dist/r/text-documents.json +117 -0
- package/dist/r/tigris-storage.json +43 -0
- package/dist/r/uploadthing-storage.json +38 -0
- package/dist/r/vercel-analytics.json +46 -0
- package/dist/r/vercel-blob-storage.json +42 -0
- package/dist/r/vercel-gateway.json +77 -0
- package/dist/r/vercel-sandbox.json +67 -0
- package/dist/r/vercel-speed-insights.json +46 -0
- package/dist/r/vultr-storage.json +44 -0
- package/dist/r/wasabi-storage.json +44 -0
- package/dist/r/webdav-storage.json +52 -0
- package/dist/r/word-count.json +51 -0
- package/dist/r/yandex-storage.json +43 -0
- package/package.json +113 -31
- package/index.d.ts +0 -4
- package/index.js +0 -1
- package/index.json +0 -19
- package/items/get-weather.json +0 -26
- package/items/retrieve-url.json +0 -35
- package/items/toolkit-renderer.json +0 -29
- package/items/word-count.json +0 -22
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "wasabi-storage",
|
|
4
|
+
"title": "Wasabi",
|
|
5
|
+
"description": "Wasabi Hot Cloud Storage via the S3-compatible API. AWS-style region names, Wasabi's own endpoints.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"files-sdk@2.5.0",
|
|
8
|
+
"@aws-sdk/client-s3@^3.1079.0",
|
|
9
|
+
"@aws-sdk/s3-presigned-post@^3.700.0",
|
|
10
|
+
"@aws-sdk/s3-request-presigner@^3.700.0"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/storage/wasabi/storage-provider.ts",
|
|
15
|
+
"content": "export { wasabi as createStorageAdapter } from \"files-sdk/wasabi\";\n",
|
|
16
|
+
"type": "registry:file",
|
|
17
|
+
"target": "~/lib/storage-provider.ts"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"chatjs": {
|
|
22
|
+
"configKeys": [
|
|
23
|
+
"bucket",
|
|
24
|
+
"region"
|
|
25
|
+
],
|
|
26
|
+
"contractVersion": 1,
|
|
27
|
+
"envRequirements": [
|
|
28
|
+
{
|
|
29
|
+
"description": "Wasabi credentials",
|
|
30
|
+
"options": [
|
|
31
|
+
[
|
|
32
|
+
"WASABI_ACCESS_KEY_ID",
|
|
33
|
+
"WASABI_SECRET_ACCESS_KEY"
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"id": "wasabi",
|
|
39
|
+
"kind": "storage",
|
|
40
|
+
"optionalEnv": []
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"type": "registry:item"
|
|
44
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "webdav-storage",
|
|
4
|
+
"title": "WebDAV",
|
|
5
|
+
"description": "WebDAV (Nextcloud, ownCloud, Apache mod_dav, …) via the webdav client. HTTP-based, with native server-side copy/move; url() needs an HTTP front (publicBaseUrl).",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"files-sdk@2.5.0",
|
|
8
|
+
"webdav@^5.10.0"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "src/storage/webdav/storage-provider.ts",
|
|
13
|
+
"content": "export { webdav as createStorageAdapter } from \"files-sdk/webdav\";\n",
|
|
14
|
+
"type": "registry:file",
|
|
15
|
+
"target": "~/lib/storage-provider.ts"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"chatjs": {
|
|
20
|
+
"configKeys": [
|
|
21
|
+
"baseUrl",
|
|
22
|
+
"root"
|
|
23
|
+
],
|
|
24
|
+
"contractVersion": 1,
|
|
25
|
+
"envRequirements": [
|
|
26
|
+
{
|
|
27
|
+
"description": "WebDAV configuration",
|
|
28
|
+
"options": [
|
|
29
|
+
[
|
|
30
|
+
"WEBDAV_URL"
|
|
31
|
+
]
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"description": "WebDAV credentials",
|
|
36
|
+
"options": [
|
|
37
|
+
[
|
|
38
|
+
"WEBDAV_USERNAME",
|
|
39
|
+
"WEBDAV_PASSWORD"
|
|
40
|
+
]
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"id": "webdav",
|
|
45
|
+
"kind": "storage",
|
|
46
|
+
"optionalEnv": [
|
|
47
|
+
"WEBDAV_AUTH_TYPE"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"type": "registry:item"
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "word-count",
|
|
4
|
+
"description": "Count words, characters, and sentences in text",
|
|
5
|
+
"dependencies": [
|
|
6
|
+
"ai@7.0.137",
|
|
7
|
+
"zod@4.5.4"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{
|
|
11
|
+
"path": "src/tools/word-count/tool.ts",
|
|
12
|
+
"content": "import type { ToolUsage } from \"@/lib/eve/tool-usage\";\nimport { defineTool } from \"eve/tools\";\nimport { executeWithToolUsage } from \"@/lib/eve/tool-usage\";\nimport { toolResultToModelOutput } from \"@/lib/eve/tool-model-output\";\nimport { wordCountInput } from \"./schemas\";\nimport type { z } from \"zod\";\n\nconst UNBILLED_TOOL_COST_USD = 0;\nconst EMPTY_COUNT = 0;\nconst WORD_SPLIT_REGEX = /\\s+/u;\nconst SENTENCE_SPLIT_REGEX = /[.!?]+/u;\n\nexport const wordCount = defineTool({\n description: \"Count the words, characters, and sentences in a given text\",\n execute: async (\n { text }: Readonly<z.infer<typeof wordCountInput>>,\n context: Readonly<{ abortSignal: Readonly<AbortSignal> }>\n ) =>\n await executeWithToolUsage(\n context,\n (usage: Readonly<Pick<ToolUsage, \"addCostUsd\">>) => {\n usage.addCostUsd(UNBILLED_TOOL_COST_USD);\n const words =\n text.trim() === \"\"\n ? EMPTY_COUNT\n : text.trim().split(WORD_SPLIT_REGEX).length;\n const characters = text.length;\n const charactersNoSpaces = text.replaceAll(/\\s/gu, \"\").length;\n const sentences = text\n .split(SENTENCE_SPLIT_REGEX)\n .filter((sentence) => sentence.trim().length > EMPTY_COUNT).length;\n\n return { characters, charactersNoSpaces, sentences, words };\n }\n ),\n inputSchema: wordCountInput,\n toModelOutput: toolResultToModelOutput,\n});\n",
|
|
13
|
+
"type": "registry:file",
|
|
14
|
+
"target": "~/tools/chatjs/word-count/tool.ts"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "src/tools/word-count/renderer.tsx",
|
|
18
|
+
"content": "\"use client\";\nimport { wordCountInput, wordCountResult } from \"./schemas\";\nimport React from \"react\";\nimport type { ReadonlyNativeSurface } from \"@/lib/readonly-native-surface\";\nimport type { ToolRendererProps } from \"@/lib/ai/define-tool-renderer\";\nimport { defineToolRenderer } from \"@/lib/ai/define-tool-renderer\";\n\ntype WordCountRendererTool = ToolRendererProps<\n typeof wordCountInput,\n typeof wordCountResult\n>[\"tool\"];\n\nconst Stat = ({\n label,\n value,\n}: Readonly<{ label: string; value: number }>): React.JSX.Element => (\n <div className=\"flex flex-col items-center gap-1\">\n <span className=\"text-lg font-semibold\">{value}</span>\n <span className=\"text-muted-foreground text-xs\">{label}</span>\n </div>\n);\n\nconst WordCountView = ({\n tool,\n}: ReadonlyNativeSurface<{\n tool: WordCountRendererTool;\n messageId: string;\n isReadonly: boolean;\n}>): React.JSX.Element | null => {\n if (tool.state === \"input-available\") {\n return (\n <div className=\"text-muted-foreground rounded-lg border p-3 text-sm\">\n Counting words...\n </div>\n );\n }\n\n if (tool.state !== \"output-available\") {\n return null;\n }\n\n if (tool.output === undefined) {\n return null;\n }\n\n const { words, characters, charactersNoSpaces, sentences } = tool.output;\n\n return (\n <div className=\"grid grid-cols-2 gap-2 rounded-lg border p-3 text-sm sm:grid-cols-4\">\n <Stat label=\"Words\" value={words} />\n <Stat label=\"Characters\" value={characters} />\n <Stat label=\"No spaces\" value={charactersNoSpaces} />\n <Stat label=\"Sentences\" value={sentences} />\n </div>\n );\n};\n\nexport const WordCountRenderer = defineToolRenderer({\n inputSchema: wordCountInput,\n outputSchema: wordCountResult,\n render: WordCountView,\n});\n",
|
|
19
|
+
"type": "registry:file",
|
|
20
|
+
"target": "~/tools/chatjs/word-count/renderer.tsx"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "src/tools/word-count/schemas.ts",
|
|
24
|
+
"content": "import { z } from \"zod\";\n\nconst wordCountInput = z.object({\n text: z.string().describe(\"The text to analyze\"),\n});\n\nconst wordCountResult = z.object({\n characters: z.number(),\n charactersNoSpaces: z.number(),\n sentences: z.number(),\n words: z.number(),\n});\nexport { wordCountInput, wordCountResult };\n",
|
|
25
|
+
"type": "registry:file",
|
|
26
|
+
"target": "~/tools/chatjs/word-count/schemas.ts"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "dist/source/word-count.json",
|
|
30
|
+
"content": "{\n \"envRequirements\": [],\n \"id\": \"word-count\",\n \"kind\": \"tool\",\n \"requiresTools\": [],\n \"tools\": [\n { \"rendererExport\": \"WordCountRenderer\", \"toolExport\": \"wordCount\" }\n ],\n \"contractVersion\": 1\n}\n",
|
|
31
|
+
"type": "registry:file",
|
|
32
|
+
"target": "~/tools/chatjs/word-count/chatjs.json"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"meta": {
|
|
36
|
+
"chatjs": {
|
|
37
|
+
"envRequirements": [],
|
|
38
|
+
"id": "word-count",
|
|
39
|
+
"kind": "tool",
|
|
40
|
+
"requiresTools": [],
|
|
41
|
+
"tools": [
|
|
42
|
+
{
|
|
43
|
+
"rendererExport": "WordCountRenderer",
|
|
44
|
+
"toolExport": "wordCount"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"contractVersion": 1
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"type": "registry:item"
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "yandex-storage",
|
|
4
|
+
"title": "Yandex Object Storage",
|
|
5
|
+
"description": "Yandex Object Storage via the S3-compatible API. Fixed global endpoint, region defaults to ru-central1.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"files-sdk@2.5.0",
|
|
8
|
+
"@aws-sdk/client-s3@^3.1079.0",
|
|
9
|
+
"@aws-sdk/s3-presigned-post@^3.700.0",
|
|
10
|
+
"@aws-sdk/s3-request-presigner@^3.700.0"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/storage/yandex/storage-provider.ts",
|
|
15
|
+
"content": "export { yandex as createStorageAdapter } from \"files-sdk/yandex\";\n",
|
|
16
|
+
"type": "registry:file",
|
|
17
|
+
"target": "~/lib/storage-provider.ts"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"chatjs": {
|
|
22
|
+
"configKeys": [
|
|
23
|
+
"bucket"
|
|
24
|
+
],
|
|
25
|
+
"contractVersion": 1,
|
|
26
|
+
"envRequirements": [
|
|
27
|
+
{
|
|
28
|
+
"description": "Yandex Object Storage credentials",
|
|
29
|
+
"options": [
|
|
30
|
+
[
|
|
31
|
+
"YANDEX_ACCESS_KEY_ID",
|
|
32
|
+
"YANDEX_SECRET_ACCESS_KEY"
|
|
33
|
+
]
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"id": "yandex",
|
|
38
|
+
"kind": "storage",
|
|
39
|
+
"optionalEnv": []
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"type": "registry:item"
|
|
43
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "read-document",
|
|
4
|
+
"description": "Read an owned document and its current revision before editing",
|
|
5
|
+
"files": [
|
|
6
|
+
{
|
|
7
|
+
"path": "src/tools/read-document/tool.ts",
|
|
8
|
+
"content": "import {\n eveDocumentReadInput,\n eveDocumentReadResult,\n} from \"@/lib/eve/document-contracts\";\nimport type { ToolContext } from \"eve/tools\";\nimport { defineTool } from \"eve/tools\";\nimport { executeEveDocumentTool } from \"@/lib/eve/document-tools\";\nimport type { z } from \"zod\";\n\ntype ReadonlyReadInput = Readonly<z.infer<typeof eveDocumentReadInput>>;\n\ntype ReadonlyReadContext = Readonly<\n Pick<ToolContext, \"callId\" | \"session\"> & {\n abortSignal: Readonly<AbortSignal>;\n }\n>;\n\nexport const readDocument = defineTool({\n description:\n \"Read the latest document content and revision ID in this conversation before editing it.\",\n execute: async (input: ReadonlyReadInput, context: ReadonlyReadContext) =>\n eveDocumentReadResult.parse(\n await executeEveDocumentTool(\"readDocument\", input, context)\n ),\n inputSchema: eveDocumentReadInput,\n outputSchema: eveDocumentReadResult,\n});\n",
|
|
9
|
+
"type": "registry:file",
|
|
10
|
+
"target": "~/tools/chatjs/read-document/tool.ts"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"path": "dist/source/read-document.json",
|
|
14
|
+
"content": "{\n \"envRequirements\": [],\n \"id\": \"read-document\",\n \"kind\": \"tool\",\n \"requiresTools\": [],\n \"tools\": [{ \"toolExport\": \"readDocument\" }],\n \"contractVersion\": 1\n}\n",
|
|
15
|
+
"type": "registry:file",
|
|
16
|
+
"target": "~/tools/chatjs/read-document/chatjs.json"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"meta": {
|
|
20
|
+
"chatjs": {
|
|
21
|
+
"envRequirements": [],
|
|
22
|
+
"id": "read-document",
|
|
23
|
+
"kind": "tool",
|
|
24
|
+
"requiresTools": [],
|
|
25
|
+
"tools": [
|
|
26
|
+
{
|
|
27
|
+
"toolExport": "readDocument"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"contractVersion": 1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"type": "registry:item"
|
|
34
|
+
}
|