@activepieces/piece-claude 0.1.8 → 0.1.10
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/package.json +5 -4
- package/src/i18n/de.json +2 -0
- package/src/i18n/es.json +2 -0
- package/src/i18n/fr.json +2 -0
- package/src/i18n/ja.json +2 -0
- package/src/i18n/nl.json +2 -0
- package/src/i18n/pt.json +2 -0
- package/src/i18n/translation.json +2 -0
- package/src/i18n/zh.json +2 -0
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-claude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ai-sdk/anthropic": "2.0.3",
|
|
6
6
|
"@ai-sdk/google": "2.0.6",
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
"mime-types": "2.1.35",
|
|
19
19
|
"nanoid": "3.3.8",
|
|
20
20
|
"semver": "7.6.0",
|
|
21
|
+
"tslib": "2.6.2",
|
|
21
22
|
"zod": "3.25.76",
|
|
22
|
-
"@activepieces/
|
|
23
|
+
"@activepieces/common-ai": "0.0.1",
|
|
24
|
+
"@activepieces/pieces-common": "0.7.0",
|
|
23
25
|
"@activepieces/pieces-framework": "0.18.3",
|
|
24
|
-
"@activepieces/shared": "0.
|
|
25
|
-
"tslib": "2.8.1"
|
|
26
|
+
"@activepieces/shared": "0.19.0"
|
|
26
27
|
},
|
|
27
28
|
"overrides": {
|
|
28
29
|
"@tryfabric/martian": {
|
package/src/i18n/de.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "Kopfzeilen",
|
|
25
25
|
"Query Parameters": "Abfrageparameter",
|
|
26
26
|
"Body": "Körper",
|
|
27
|
+
"Response is Binary ?": "Antwort ist binär?",
|
|
27
28
|
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
28
29
|
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Das Modell, das die Vervollständigung generiert. Einige Modelle eignen sich für Aufgaben der natürlichen Sprache, andere sind auf Code spezialisiert.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Aufforderung zur Führung der KI.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "Für ein komplexes Schema können Sie den erweiterten Modus verwenden.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/es.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "Encabezados",
|
|
25
25
|
"Query Parameters": "Parámetros de consulta",
|
|
26
26
|
"Body": "Cuerpo",
|
|
27
|
+
"Response is Binary ?": "¿Respuesta es binaria?",
|
|
27
28
|
"No Error on Failure": "No hay ningún error en fallo",
|
|
28
29
|
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "El modelo que generará la terminación. Algunos modelos son adecuados para tareas de lenguaje natural, otros se especializan en código.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Aspecto para guiar la IA.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "Para esquemas complejos, puede utilizar el modo avanzado.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/fr.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "En-têtes",
|
|
25
25
|
"Query Parameters": "Paramètres de requête",
|
|
26
26
|
"Body": "Corps",
|
|
27
|
+
"Response is Binary ?": "La réponse est Binaire ?",
|
|
27
28
|
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
28
29
|
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Le modèle qui va générer la complétion. Certains modèles sont adaptés aux tâches de langage naturel, d'autres se spécialisent dans le code.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Demander à guider l'IA.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "Pour le schéma complexe, vous pouvez utiliser le mode avancé.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/ja.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "ヘッダー",
|
|
25
25
|
"Query Parameters": "クエリパラメータ",
|
|
26
26
|
"Body": "本文",
|
|
27
|
+
"Response is Binary ?": "応答はバイナリですか?",
|
|
27
28
|
"No Error on Failure": "失敗時にエラーはありません",
|
|
28
29
|
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "補完を生成するモデル。自然言語タスクに適しているモデルもあれば、コードに特化したモデルもあります。",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "AIを導くように促します。",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "複雑なスキーマでは、高度なモードを使用できます。",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
|
40
42
|
"Claude 3 Haiku": "クロード3俳句format@@0",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/nl.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "Kopteksten",
|
|
25
25
|
"Query Parameters": "Query parameters",
|
|
26
26
|
"Body": "Lichaam",
|
|
27
|
+
"Response is Binary ?": "Antwoord is binair?",
|
|
27
28
|
"No Error on Failure": "Geen fout bij fout",
|
|
28
29
|
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Het model dat de voltooiing zal genereren. Sommige modellen zijn geschikt voor natuurlijke taaltaken, andere zijn gespecialiseerd in code.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Vraag om de AI te begeleiden.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "Voor complexe schema's kunt u de geavanceerde modus gebruiken.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/pt.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "Cabeçalhos",
|
|
25
25
|
"Query Parameters": "Parâmetros da consulta",
|
|
26
26
|
"Body": "Conteúdo",
|
|
27
|
+
"Response is Binary ?": "A resposta é binária ?",
|
|
27
28
|
"No Error on Failure": "Nenhum erro no Failure",
|
|
28
29
|
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "O modelo que irá gerar a conclusão. Alguns modelos são adequados para tarefas de linguagem natural, outros são especializados no código.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Peça para guiar a I.A.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "Para esquemas complexos, você pode usar o modo avançado.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "Headers",
|
|
25
25
|
"Query Parameters": "Query Parameters",
|
|
26
26
|
"Body": "Body",
|
|
27
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
27
28
|
"No Error on Failure": "No Error on Failure",
|
|
28
29
|
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "Prompt to guide the AI.",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "For complex schema, you can use advanced mode.",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 Haiku",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 Sonnet",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 Opus",
|
package/src/i18n/zh.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"Headers": "標頭",
|
|
25
25
|
"Query Parameters": "查詢參數",
|
|
26
26
|
"Body": "正文",
|
|
27
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
27
28
|
"No Error on Failure": "失敗時無錯誤",
|
|
28
29
|
"Timeout (in seconds)": "超時(以秒為單位)",
|
|
29
30
|
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "生成完成的模型。一些模型適用於自然語言任務,其他模型專注於代碼。",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"Prompt to guide the AI.": "引導 AI 的提示。",
|
|
38
39
|
"For complex schema, you can use advanced mode.": "對於複雜架構,您可以使用高級模式。",
|
|
39
40
|
"Authorization headers are injected automatically from your connection.": "授權標頭會從您的連接中自動插入。",
|
|
41
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
40
42
|
"Claude 3 Haiku": "Claude 3 詩歌",
|
|
41
43
|
"Claude 3 Sonnet": "Claude 3 詩歌",
|
|
42
44
|
"Claude 3 Opus": "Claude 3 作品",
|
package/src/index.js
CHANGED
|
@@ -9,10 +9,11 @@ const send_prompt_1 = require("./lib/actions/send-prompt");
|
|
|
9
9
|
const common_1 = require("./lib/common/common");
|
|
10
10
|
const shared_1 = require("@activepieces/shared");
|
|
11
11
|
const extract_structured_data_1 = require("./lib/actions/extract-structured-data");
|
|
12
|
+
const common_ai_1 = require("@activepieces/common-ai");
|
|
12
13
|
exports.claudeAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
13
14
|
displayName: 'API Key',
|
|
14
15
|
required: true,
|
|
15
|
-
description: (_a =
|
|
16
|
+
description: (_a = common_ai_1.SUPPORTED_AI_PROVIDERS.find(p => p.provider === 'anthropic')) === null || _a === void 0 ? void 0 : _a.markdown,
|
|
16
17
|
});
|
|
17
18
|
exports.claude = (0, pieces_framework_1.createPiece)({
|
|
18
19
|
displayName: 'Anthropic Claude',
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/claude/src/index.ts"],"names":[],"mappings":";;;;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,2DAAsD;AACtD,gDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/claude/src/index.ts"],"names":[],"mappings":";;;;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,2DAAsD;AACtD,gDAA8C;AAC9C,iDAAqD;AACrD,mFAAoF;AACpF,uDAAiE;AAEpD,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,MAAA,kCAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,WAAW,CAAC,0CAAE,QAAQ;CACpF,CAAC,CAAC;AAEU,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,kBAAU;IAChB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,aAAa,EAAC,YAAY,CAAC;IACrC,OAAO,EAAE;QACP,uBAAS;QACT,qDAA2B;QAC3B,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,kBAAU;YAChB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAO;YACtB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,WAAW,EAAE,GAAG,IAAI,EAAE;iBACvB,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|