@keystrokehq/replicate 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-get.cjs +4 -4
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +8 -3
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +8 -3
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +4 -4
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +8 -8
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +43 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +43 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +8 -8
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +10 -10
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +26 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +26 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +10 -10
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +5 -5
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +15 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +15 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +5 -5
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +8 -8
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +39 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +39 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +8 -8
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +10 -10
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +40 -3
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +40 -3
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +10 -10
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +16 -16
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +38 -3
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +38 -3
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +16 -16
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -1
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +12 -3
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +12 -3
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -1
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +4 -4
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +30 -3
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +30 -3
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +4 -4
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +17 -17
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +32 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +32 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +17 -17
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +7 -7
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +35 -3
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +35 -3
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +7 -7
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -1
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +10 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +10 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -1
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +8 -8
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +23 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +23 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +8 -8
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +10 -10
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +27 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +27 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +10 -10
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +11 -11
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +42 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +42 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +11 -11
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +4 -4
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +8 -3
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +8 -3
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +4 -4
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +11 -11
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +37 -3
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +37 -3
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +11 -11
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +26 -26
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +77 -3
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +77 -3
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +26 -26
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +11 -11
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +39 -3
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +39 -3
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +11 -11
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +7 -7
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +46 -3
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +46 -3
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +7 -7
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -1
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +11 -3
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +11 -3
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -1
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +4 -4
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +16 -3
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +16 -3
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +4 -4
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +5 -5
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +20 -3
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +20 -3
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +5 -5
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +7 -7
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +47 -3
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +47 -3
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +7 -7
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +12 -12
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +38 -3
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +38 -3
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +12 -12
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +28 -28
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +80 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +80 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +28 -28
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +8 -8
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +26 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +26 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +8 -8
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +8 -8
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +46 -3
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +46 -3
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +8 -8
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +13 -13
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +35 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +35 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +13 -13
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +7 -7
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +35 -3
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +35 -3
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +7 -7
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -1
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +5 -3
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +5 -3
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateSearchInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this version\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\"),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).describe(\"Representation of a model version.\");\nconst ReplicateSearch_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateSearch_PredictionSourceSchema: z.ZodTypeAny = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema: z.ZodTypeAny = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateSearch_PredictionExampleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\"),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\"),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the model\"),\n name: z.string().describe(\"Name of the model\"),\n owner: z.string().describe(\"Username or organization that owns the model\"),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\"),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\"),\n description: z.string().describe(\"Description of the model\"),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema: z.ZodTypeAny = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the collection\"),\n slug: z.string().describe(\"URL-friendly identifier for the collection\"),\n description: z.string().describe(\"Description of the collection\"),\n}).describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput: z.ZodTypeAny = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\"),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;AAC5H,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAA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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAClE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uCAAuC;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,+CAA+C;CACjH,aAAaA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+BAA+B;AACvG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).passthrough().describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this version\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).passthrough().describe(\"Representation of a model version.\");\nconst ReplicateSearch_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateSearch_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateSearch_PredictionExampleSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\").nullable(),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).passthrough().describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema = z.object({\n url: z.string().describe(\"URL of the model\").nullable(),\n name: z.string().describe(\"Name of the model\").nullable(),\n owner: z.string().describe(\"Username or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\").nullable(),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\").nullable(),\n description: z.string().describe(\"Description of the model\").nullable(),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).passthrough().describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).passthrough().describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema = z.object({\n name: z.string().describe(\"Name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable(),\n}).passthrough().describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\").nullable(),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).passthrough().describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;AAC5H,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,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AO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,86 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search.d.ts
|
|
4
|
-
declare const ReplicateSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateSearchInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ReplicateSearchOutput: z.ZodObject<{
|
|
9
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
query: z.ZodNullable<z.ZodString>;
|
|
14
|
+
models: z.ZodArray<z.ZodObject<{
|
|
15
|
+
model: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
19
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
id: z.ZodNullable<z.ZodString>;
|
|
27
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
28
|
+
cog_version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
get: z.ZodNullable<z.ZodString>;
|
|
37
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
39
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
model: z.ZodNullable<z.ZodString>;
|
|
44
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
45
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
46
|
+
web: "web";
|
|
47
|
+
api: "api";
|
|
48
|
+
}>>>;
|
|
49
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
50
|
+
starting: "starting";
|
|
51
|
+
processing: "processing";
|
|
52
|
+
succeeded: "succeeded";
|
|
53
|
+
failed: "failed";
|
|
54
|
+
canceled: "canceled";
|
|
55
|
+
aborted: "aborted";
|
|
56
|
+
}>>;
|
|
57
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$loose>>>;
|
|
61
|
+
version: z.ZodNullable<z.ZodString>;
|
|
62
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
63
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
generated_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
}, z.core.$loose>>;
|
|
74
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
75
|
+
name: z.ZodNullable<z.ZodString>;
|
|
76
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
77
|
+
description: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
}, z.core.$loose>;
|
|
80
|
+
declare const replicateSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
81
|
+
query: string;
|
|
82
|
+
limit?: number | undefined;
|
|
83
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
84
|
//#endregion
|
|
8
85
|
export { replicateSearch };
|
|
9
86
|
//# sourceMappingURL=search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAuEpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -1,9 +1,86 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search.d.ts
|
|
4
|
-
declare const ReplicateSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateSearchInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const ReplicateSearchOutput: z.ZodObject<{
|
|
9
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
query: z.ZodNullable<z.ZodString>;
|
|
14
|
+
models: z.ZodArray<z.ZodObject<{
|
|
15
|
+
model: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
19
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
id: z.ZodNullable<z.ZodString>;
|
|
27
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
28
|
+
cog_version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
get: z.ZodNullable<z.ZodString>;
|
|
37
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
39
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
model: z.ZodNullable<z.ZodString>;
|
|
44
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
45
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
46
|
+
web: "web";
|
|
47
|
+
api: "api";
|
|
48
|
+
}>>>;
|
|
49
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
50
|
+
starting: "starting";
|
|
51
|
+
processing: "processing";
|
|
52
|
+
succeeded: "succeeded";
|
|
53
|
+
failed: "failed";
|
|
54
|
+
canceled: "canceled";
|
|
55
|
+
aborted: "aborted";
|
|
56
|
+
}>>;
|
|
57
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$loose>>>;
|
|
61
|
+
version: z.ZodNullable<z.ZodString>;
|
|
62
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
63
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
generated_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
}, z.core.$loose>>;
|
|
74
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
75
|
+
name: z.ZodNullable<z.ZodString>;
|
|
76
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
77
|
+
description: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
}, z.core.$loose>;
|
|
80
|
+
declare const replicateSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
81
|
+
query: string;
|
|
82
|
+
limit?: number | undefined;
|
|
83
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
84
|
//#endregion
|
|
8
85
|
export { replicateSearch };
|
|
9
86
|
//# sourceMappingURL=search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAuEpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOrB,eAAA,gCAAe,wBAAA"}
|
package/dist/actions/search.mjs
CHANGED
|
@@ -8,19 +8,19 @@ const ReplicateSearchInput = z.object({
|
|
|
8
8
|
const ReplicateSearch_PageResultSchema = z.object({
|
|
9
9
|
url: z.string().describe("URL of the documentation page").nullable().optional(),
|
|
10
10
|
title: z.string().describe("Title of the documentation page").nullable().optional()
|
|
11
|
-
}).describe("Representation of a documentation page in search results.");
|
|
11
|
+
}).passthrough().describe("Representation of a documentation page in search results.");
|
|
12
12
|
const ReplicateSearch_ModelVersionSchema = z.object({
|
|
13
|
-
id: z.string().describe("Unique identifier for this version"),
|
|
14
|
-
created_at: z.string().describe("ISO 8601 timestamp of when this version was created"),
|
|
15
|
-
cog_version: z.string().describe("Version of the Cog framework used to build this model"),
|
|
13
|
+
id: z.string().describe("Unique identifier for this version").nullable(),
|
|
14
|
+
created_at: z.string().describe("ISO 8601 timestamp of when this version was created").nullable(),
|
|
15
|
+
cog_version: z.string().describe("Version of the Cog framework used to build this model").nullable(),
|
|
16
16
|
openapi_schema: z.record(z.string(), z.unknown()).describe("OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.")
|
|
17
|
-
}).describe("Representation of a model version.");
|
|
17
|
+
}).passthrough().describe("Representation of a model version.");
|
|
18
18
|
const ReplicateSearch_PredictionUrlsSchema = z.object({
|
|
19
|
-
get: z.string().describe("API endpoint URL to get the prediction details"),
|
|
19
|
+
get: z.string().describe("API endpoint URL to get the prediction details").nullable(),
|
|
20
20
|
web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
21
|
-
cancel: z.string().describe("API endpoint URL to cancel the prediction"),
|
|
21
|
+
cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
22
22
|
stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
23
|
-
}).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
23
|
+
}).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
|
|
24
24
|
const ReplicateSearch_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
25
25
|
const ReplicateSearch_PredictionStatusSchema = z.enum([
|
|
26
26
|
"starting",
|
|
@@ -35,50 +35,50 @@ const ReplicateSearch_PredictionMetricsSchema = z.object({
|
|
|
35
35
|
predict_time: z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
|
|
36
36
|
}).passthrough().describe("Metrics associated with a prediction.");
|
|
37
37
|
const ReplicateSearch_PredictionExampleSchema = z.object({
|
|
38
|
-
id: z.string().describe("Unique identifier for this prediction"),
|
|
38
|
+
id: z.string().describe("Unique identifier for this prediction").nullable(),
|
|
39
39
|
logs: z.string().describe("Logs generated during prediction execution").nullable().optional(),
|
|
40
40
|
urls: ReplicateSearch_PredictionUrlsSchema.nullable(),
|
|
41
41
|
error: z.string().describe("Error message if the prediction status is 'failed'").nullable().optional(),
|
|
42
42
|
input: z.record(z.string(), z.unknown()).describe("Input parameters used for the prediction. Structure varies by model.").nullable().optional(),
|
|
43
|
-
model: z.string().describe("The model identifier (format: owner/name)"),
|
|
43
|
+
model: z.string().describe("The model identifier (format: owner/name)").nullable(),
|
|
44
44
|
output: z.unknown().describe("Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).").nullable().optional(),
|
|
45
45
|
source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),
|
|
46
46
|
status: ReplicateSearch_PredictionStatusSchema.nullable(),
|
|
47
47
|
metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),
|
|
48
|
-
version: z.string().describe("The 64-character model version identifier"),
|
|
49
|
-
created_at: z.string().describe("ISO 8601 timestamp when the prediction was created"),
|
|
48
|
+
version: z.string().describe("The 64-character model version identifier").nullable(),
|
|
49
|
+
created_at: z.string().describe("ISO 8601 timestamp when the prediction was created").nullable(),
|
|
50
50
|
started_at: z.string().describe("ISO 8601 timestamp when the model began processing").nullable().optional(),
|
|
51
51
|
completed_at: z.string().describe("ISO 8601 timestamp when the prediction completed").nullable().optional(),
|
|
52
52
|
data_removed: z.boolean().describe("Whether the prediction input/output data has been removed (auto-deleted after 1 hour)").nullable().optional()
|
|
53
|
-
}).describe("Prediction object used as a model's default example.");
|
|
53
|
+
}).passthrough().describe("Prediction object used as a model's default example.");
|
|
54
54
|
const ReplicateSearch_ModelResultSchema = z.object({
|
|
55
|
-
url: z.string().describe("URL of the model"),
|
|
56
|
-
name: z.string().describe("Name of the model"),
|
|
57
|
-
owner: z.string().describe("Username or organization that owns the model"),
|
|
55
|
+
url: z.string().describe("URL of the model").nullable(),
|
|
56
|
+
name: z.string().describe("Name of the model").nullable(),
|
|
57
|
+
owner: z.string().describe("Username or organization that owns the model").nullable(),
|
|
58
58
|
paper_url: z.string().describe("Research paper URL, if available").nullable().optional(),
|
|
59
|
-
run_count: z.number().int().describe("Total number of prediction runs for this model"),
|
|
59
|
+
run_count: z.number().int().describe("Total number of prediction runs for this model").nullable(),
|
|
60
60
|
github_url: z.string().describe("GitHub repository URL, if available").nullable().optional(),
|
|
61
|
-
visibility: z.string().describe("Visibility setting - 'public' or 'private'"),
|
|
62
|
-
description: z.string().describe("Description of the model"),
|
|
61
|
+
visibility: z.string().describe("Visibility setting - 'public' or 'private'").nullable(),
|
|
62
|
+
description: z.string().describe("Description of the model").nullable(),
|
|
63
63
|
license_url: z.string().describe("License document URL, if available").nullable().optional(),
|
|
64
64
|
latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),
|
|
65
65
|
cover_image_url: z.string().describe("Cover image URL").nullable().optional(),
|
|
66
66
|
default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional()
|
|
67
|
-
}).describe("Representation of a model in search results.");
|
|
67
|
+
}).passthrough().describe("Representation of a model in search results.");
|
|
68
68
|
const ReplicateSearch_SearchMetadataSchema = z.object({
|
|
69
69
|
tags: z.array(z.string()).describe("Model categorization tags").nullable().optional(),
|
|
70
70
|
score: z.number().describe("Relevance ranking score for the search query").nullable().optional(),
|
|
71
71
|
generated_description: z.string().describe("Extended AI-generated description of the model").nullable().optional()
|
|
72
|
-
}).describe("Search-specific metadata for results.");
|
|
72
|
+
}).passthrough().describe("Search-specific metadata for results.");
|
|
73
73
|
const ReplicateSearch_ModelWithMetadataSchema = z.object({
|
|
74
74
|
model: ReplicateSearch_ModelResultSchema.nullable(),
|
|
75
75
|
metadata: ReplicateSearch_SearchMetadataSchema.nullable()
|
|
76
|
-
}).describe("Model with search metadata.");
|
|
76
|
+
}).passthrough().describe("Model with search metadata.");
|
|
77
77
|
const ReplicateSearch_CollectionResultSchema = z.object({
|
|
78
|
-
name: z.string().describe("Name of the collection"),
|
|
79
|
-
slug: z.string().describe("URL-friendly identifier for the collection"),
|
|
80
|
-
description: z.string().describe("Description of the collection")
|
|
81
|
-
}).describe("Representation of a collection in search results.");
|
|
78
|
+
name: z.string().describe("Name of the collection").nullable(),
|
|
79
|
+
slug: z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
80
|
+
description: z.string().describe("Description of the collection").nullable()
|
|
81
|
+
}).passthrough().describe("Representation of a collection in search results.");
|
|
82
82
|
const replicateSearch = action("REPLICATE_SEARCH", {
|
|
83
83
|
slug: "replicate-search",
|
|
84
84
|
name: "Search Models and Collections",
|
|
@@ -86,10 +86,10 @@ const replicateSearch = action("REPLICATE_SEARCH", {
|
|
|
86
86
|
input: ReplicateSearchInput,
|
|
87
87
|
output: z.object({
|
|
88
88
|
pages: z.array(ReplicateSearch_PageResultSchema).describe("Array of matching documentation pages"),
|
|
89
|
-
query: z.string().describe("The search query that was executed"),
|
|
89
|
+
query: z.string().describe("The search query that was executed").nullable(),
|
|
90
90
|
models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe("Array of matching models with search metadata"),
|
|
91
91
|
collections: z.array(ReplicateSearch_CollectionResultSchema).describe("Array of matching collections")
|
|
92
|
-
}).describe("Search results from the Replicate search API.")
|
|
92
|
+
}).passthrough().describe("Search results from the Replicate search API.")
|
|
93
93
|
});
|
|
94
94
|
//#endregion
|
|
95
95
|
export { replicateSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateSearchInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this version\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\"),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).describe(\"Representation of a model version.\");\nconst ReplicateSearch_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateSearch_PredictionSourceSchema: z.ZodTypeAny = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema: z.ZodTypeAny = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateSearch_PredictionExampleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\"),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\"),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the model\"),\n name: z.string().describe(\"Name of the model\"),\n owner: z.string().describe(\"Username or organization that owns the model\"),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\"),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\"),\n description: z.string().describe(\"Description of the model\"),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema: z.ZodTypeAny = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the collection\"),\n slug: z.string().describe(\"URL-friendly identifier for the collection\"),\n description: z.string().describe(\"Description of the collection\"),\n}).describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput: z.ZodTypeAny = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\"),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;AAC5H,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACnL,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,uCAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,KAAK,EAAE,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V,CAAC"}
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).passthrough().describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this version\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).passthrough().describe(\"Representation of a model version.\");\nconst ReplicateSearch_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateSearch_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicateSearch_PredictionExampleSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\").nullable(),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).passthrough().describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema = z.object({\n url: z.string().describe(\"URL of the model\").nullable(),\n name: z.string().describe(\"Name of the model\").nullable(),\n owner: z.string().describe(\"Username or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\").nullable(),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\").nullable(),\n description: z.string().describe(\"Description of the model\").nullable(),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).passthrough().describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).passthrough().describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema = z.object({\n name: z.string().describe(\"Name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable(),\n}).passthrough().describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\").nullable(),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).passthrough().describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,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AM,sCAAsC,CAAC,CAAC,SAAS,+BAA+B;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -3,26 +3,26 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/trainings-cancel.ts
|
|
4
4
|
const ReplicateTrainingsCancelInput = zod.z.object({ training_id: zod.z.string().describe("The identifier of the training operation to be terminated") }).describe("Request schema for canceling a training job.");
|
|
5
5
|
const ReplicateTrainingsCancel_TrainingUrlsSchema = zod.z.object({
|
|
6
|
-
get: zod.z.string().describe("URL to retrieve the training's current status"),
|
|
6
|
+
get: zod.z.string().describe("URL to retrieve the training's current status").nullable(),
|
|
7
7
|
web: zod.z.string().describe("Browser-viewable training URL").nullable().optional(),
|
|
8
|
-
cancel: zod.z.string().describe("URL to cancel the in-progress training")
|
|
9
|
-
}).describe("Endpoints to manage the training.");
|
|
8
|
+
cancel: zod.z.string().describe("URL to cancel the in-progress training").nullable()
|
|
9
|
+
}).passthrough().describe("Endpoints to manage the training.");
|
|
10
10
|
const ReplicateTrainingsCancelOutput = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique training identifier"),
|
|
11
|
+
id: zod.z.string().describe("Unique training identifier").nullable(),
|
|
12
12
|
logs: zod.z.string().describe("Training output logs").nullable().optional(),
|
|
13
13
|
urls: ReplicateTrainingsCancel_TrainingUrlsSchema.nullable().optional(),
|
|
14
14
|
error: zod.z.string().describe("Error message if training failed").nullable().optional(),
|
|
15
15
|
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Object containing inputs to the model's train() function"),
|
|
16
|
-
model: zod.z.string().describe("Model identifier (e.g., 'stability-ai/sdxl')"),
|
|
16
|
+
model: zod.z.string().describe("Model identifier (e.g., 'stability-ai/sdxl')").nullable(),
|
|
17
17
|
output: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Result object with fields like 'version' and 'weights' (on success)").nullable().optional(),
|
|
18
18
|
source: zod.z.string().describe("Indicates creation method ('api' or 'web')").nullable().optional(),
|
|
19
|
-
status: zod.z.string().describe("Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'"),
|
|
19
|
+
status: zod.z.string().describe("Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'").nullable(),
|
|
20
20
|
metrics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contains 'predict_time' (GPU/CPU seconds used) and 'total_time'").nullable().optional(),
|
|
21
21
|
version: zod.z.string().describe("64-character version ID of the model").nullable().optional(),
|
|
22
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp of when the training was created"),
|
|
22
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp of when the training was created").nullable(),
|
|
23
23
|
started_at: zod.z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
|
|
24
24
|
completed_at: zod.z.string().describe("ISO 8601 timestamp when training finished").nullable().optional()
|
|
25
|
-
}).describe("Response schema for canceling a training job.");
|
|
25
|
+
}).passthrough().describe("Response schema for canceling a training job.");
|
|
26
26
|
const replicateTrainingsCancel = require_action.action("REPLICATE_TRAININGS_CANCEL", {
|
|
27
27
|
slug: "replicate-trainings-cancel",
|
|
28
28
|
name: "Cancel Training",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-cancel.cjs","names":["z","action"],"sources":["../../src/actions/trainings-cancel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCancelInput
|
|
1
|
+
{"version":3,"file":"trainings-cancel.cjs","names":["z","action"],"sources":["../../src/actions/trainings-cancel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCancelInput = z.object({\n training_id: z.string().describe(\"The identifier of the training operation to be terminated\"),\n}).describe(\"Request schema for canceling a training job.\");\nconst ReplicateTrainingsCancel_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Endpoints to manage the training.\");\nexport const ReplicateTrainingsCancelOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training output logs\").nullable().optional(),\n urls: ReplicateTrainingsCancel_TrainingUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Object containing inputs to the model's train() function\"),\n model: z.string().describe(\"Model identifier (e.g., 'stability-ai/sdxl')\").nullable(),\n output: z.record(z.string(), z.unknown()).describe(\"Result object with fields like 'version' and 'weights' (on success)\").nullable().optional(),\n source: z.string().describe(\"Indicates creation method ('api' or 'web')\").nullable().optional(),\n status: z.string().describe(\"Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Contains 'predict_time' (GPU/CPU seconds used) and 'total_time'\").nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).passthrough().describe(\"Response schema for canceling a training job.\");\n\nexport const replicateTrainingsCancel = action(\"REPLICATE_TRAININGS_CANCEL\", {\n slug: \"replicate-trainings-cancel\",\n name: \"Cancel Training\",\n description: \"Tool to cancel an ongoing training operation in Replicate. Use when you need to stop a training job that is in progress.\",\n input: ReplicateTrainingsCancelInput,\n output: ReplicateTrainingsCancelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2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C,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACxL,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/trainings-cancel.d.ts
|
|
4
|
-
declare const ReplicateTrainingsCancelInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateTrainingsCancelInput: z.ZodObject<{
|
|
5
|
+
training_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateTrainingsCancelOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17
|
+
model: z.ZodNullable<z.ZodString>;
|
|
18
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
22
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const replicateTrainingsCancel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
training_id: string;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { replicateTrainingsCancel };
|
|
9
32
|
//# sourceMappingURL=trainings-cancel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-cancel.d.cts","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"trainings-cancel.d.cts","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/trainings-cancel.d.ts
|
|
4
|
-
declare const ReplicateTrainingsCancelInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateTrainingsCancelInput: z.ZodObject<{
|
|
5
|
+
training_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateTrainingsCancelOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17
|
+
model: z.ZodNullable<z.ZodString>;
|
|
18
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
19
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
22
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const replicateTrainingsCancel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
training_id: string;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { replicateTrainingsCancel };
|
|
9
32
|
//# sourceMappingURL=trainings-cancel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-cancel.d.mts","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"trainings-cancel.d.mts","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiB9B,wBAAA,gCAAwB,wBAAA"}
|