@langwatch/mcp-server 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-shim +1 -0
- package/CHANGELOG.md +87 -0
- package/LICENSE +7 -0
- package/dist/archive-project-HZBRPR2S.js +19 -0
- package/dist/{archive-scenario-WJ2A7ETN.js → archive-scenario-P5RRITRM.js} +4 -4
- package/dist/{archive-suite-4JOM4SSL.js → archive-suite-NUUFD2EM.js} +4 -4
- package/dist/{assign-prompt-tag-GL7EAAF3.js → assign-prompt-tag-FKCCZPML.js} +3 -3
- package/dist/{chunk-2WPLXEKF.js → chunk-42ZHHHIJ.js} +20 -5
- package/dist/chunk-ADSJ2FDA.js +44 -0
- package/dist/{chunk-IE4M5OGE.js → chunk-BB7EOKHR.js} +2 -2
- package/dist/chunk-BBJ5WAJB.js +24 -0
- package/dist/{chunk-EGH5RPXM.js → chunk-BYWYM2RP.js} +2 -2
- package/dist/{chunk-2GT7IFWK.js → chunk-CCM4ZFGF.js} +2 -2
- package/dist/{chunk-LUMEZEHL.js → chunk-CHKCEZBP.js} +2 -2
- package/dist/{chunk-ZVS4UKN2.js → chunk-HKY3GW45.js} +2 -2
- package/dist/{chunk-EUQDVOSU.js → chunk-JHOSVOHT.js} +2 -2
- package/dist/{chunk-E5JYYU3J.js → chunk-JVLJKQJG.js} +669 -94
- package/dist/{chunk-BWWY5KEF.js → chunk-KOO5733S.js} +3 -2
- package/dist/{chunk-HYMIWO3U.js → chunk-R7C7OUVG.js} +2 -2
- package/dist/{chunk-WQG2DFHX.js → chunk-TROIWSEQ.js} +2 -2
- package/dist/{chunk-CCWCIJJ3.js → chunk-X2SEURT2.js} +2 -2
- package/dist/{chunk-4AUB2BIA.js → chunk-XC62KJIT.js} +3 -3
- package/dist/config.js +1 -1
- package/dist/{create-agent-MBOOT3XK.js → create-agent-K5Q7BFGZ.js} +4 -4
- package/dist/{create-annotation-XMV6A7ED.js → create-annotation-KN3GE3DK.js} +4 -4
- package/dist/create-api-key-OQI5PUNQ.js +26 -0
- package/dist/{create-dashboard-VRKLFVZJ.js → create-dashboard-G4QA5AXP.js} +4 -4
- package/dist/{create-dataset-7HQPZCRE.js → create-dataset-WQSC37N7.js} +4 -4
- package/dist/{create-dataset-records-2NIVFYTV.js → create-dataset-records-B4RL3FLC.js} +4 -4
- package/dist/{create-evaluator-WYFRFLRC.js → create-evaluator-YFFQIR7E.js} +4 -4
- package/dist/create-mcp-server.js +3 -2
- package/dist/create-project-CUVQ67VN.js +44 -0
- package/dist/{create-prompt-IEN7O6JT.js → create-prompt-NGXKSP4X.js} +3 -3
- package/dist/{create-prompt-tag-CAEZ45VO.js → create-prompt-tag-IUKYPVHH.js} +3 -3
- package/dist/{create-scenario-6YHSMGLP.js → create-scenario-FNBXALH3.js} +4 -4
- package/dist/{create-suite-H5XOFDE5.js → create-suite-DJEPD4ZB.js} +4 -4
- package/dist/{delete-agent-JKTNBWAA.js → delete-agent-TJI5XBBM.js} +4 -4
- package/dist/{delete-annotation-ACMDV6QO.js → delete-annotation-KRP53TUU.js} +4 -4
- package/dist/{delete-dashboard-VJSR7CRU.js → delete-dashboard-N5SZJIR3.js} +4 -4
- package/dist/{delete-dataset-RTTTWP4D.js → delete-dataset-KDUOHL2P.js} +4 -4
- package/dist/{delete-dataset-records-KNQTIPQK.js → delete-dataset-records-DM4W3PAW.js} +4 -4
- package/dist/{delete-evaluator-7FVC5WM4.js → delete-evaluator-7ZATLJOA.js} +4 -4
- package/dist/{delete-prompt-tag-ZMZUAGFW.js → delete-prompt-tag-I6HNMSVJ.js} +3 -3
- package/dist/{delete-workflow-EYQ3T4RQ.js → delete-workflow-QEO74JQR.js} +4 -4
- package/dist/{get-agent-E3QSTVKG.js → get-agent-3KDWCP5N.js} +4 -4
- package/dist/{get-analytics-2OHV763I.js → get-analytics-GPVJX7SF.js} +3 -3
- package/dist/{get-dashboard-PC7JDHH6.js → get-dashboard-YPTIE5YY.js} +4 -4
- package/dist/{get-dataset-H5IK5FVU.js → get-dataset-6DQFYITM.js} +4 -4
- package/dist/{get-evaluator-UWVUPYTM.js → get-evaluator-PCM6XQAU.js} +4 -4
- package/dist/get-project-JCMWXVLU.js +26 -0
- package/dist/{get-prompt-WZUOLLQC.js → get-prompt-5XAGWWBG.js} +3 -3
- package/dist/{get-scenario-Q6LCNUYN.js → get-scenario-7XBCDZWX.js} +4 -4
- package/dist/{get-simulation-run-Z2XKO256.js → get-simulation-run-AV24FJWI.js} +4 -4
- package/dist/{get-suite-BXK5TN7P.js → get-suite-4DBVHFEM.js} +4 -4
- package/dist/{get-trace-4EJAYVBG.js → get-trace-MRBDS3HJ.js} +3 -3
- package/dist/{get-workflow-O34QJLHD.js → get-workflow-UR4Y6UFX.js} +4 -4
- package/dist/{http-server-ISHF7NJX.js → http-server-DEGNV5EP.js} +4 -3
- package/dist/index.js +1453 -431
- package/dist/{langwatch-api-annotations-ERBG27RF.js → langwatch-api-annotations-ZJDRB4JH.js} +4 -4
- package/dist/{langwatch-api-dashboards-G6TR7VVO.js → langwatch-api-dashboards-WARLI6NF.js} +4 -4
- package/dist/{langwatch-api-monitors-WSXZLS2B.js → langwatch-api-monitors-4XKXHYCG.js} +3 -3
- package/dist/{langwatch-api-secrets-RR5DKG2X.js → langwatch-api-secrets-6SHK5G7Q.js} +3 -3
- package/dist/{langwatch-api-triggers-2RTNSWQY.js → langwatch-api-triggers-5SX6R2WU.js} +3 -3
- package/dist/langwatch-api-workflows-NLJENNXE.js +15 -0
- package/dist/{list-agents-AW3P6FJV.js → list-agents-NECO7MPI.js} +4 -4
- package/dist/{list-annotations-QNCGWPQ3.js → list-annotations-3OJEO774.js} +4 -4
- package/dist/list-api-keys-AWW7ROLB.js +37 -0
- package/dist/{list-dashboards-R7RK2IXL.js → list-dashboards-DVPVVVKW.js} +4 -4
- package/dist/{list-dataset-records-WVCSQP7P.js → list-dataset-records-I4BYORF5.js} +4 -4
- package/dist/{list-datasets-KEXRLDEU.js → list-datasets-WUAE5HGX.js} +4 -4
- package/dist/{list-evaluators-7R2LB4JH.js → list-evaluators-B6OSVAM2.js} +4 -4
- package/dist/{list-model-providers-OBYJCKBX.js → list-model-providers-NL6IP4UZ.js} +4 -4
- package/dist/list-projects-5FHMJ4PQ.js +42 -0
- package/dist/{list-prompt-tags-6LY3ZPYI.js → list-prompt-tags-Z2DD6FLQ.js} +3 -3
- package/dist/{list-prompts-VWEZ4CDE.js → list-prompts-VNXKHK7T.js} +3 -3
- package/dist/{list-scenarios-TXD4W2ZJ.js → list-scenarios-CFZHXL76.js} +4 -4
- package/dist/{list-simulation-runs-RHPOLMFI.js → list-simulation-runs-AM2BXLBW.js} +4 -4
- package/dist/{list-suites-FSGBX27Z.js → list-suites-ZDOHAAXF.js} +4 -4
- package/dist/{list-workflows-VRGEZ3EN.js → list-workflows-WBRBKLIT.js} +4 -4
- package/dist/{rename-prompt-tag-VOJJLX4M.js → rename-prompt-tag-A4RJUK7Z.js} +3 -3
- package/dist/revoke-api-key-ZSPSPF5G.js +15 -0
- package/dist/{run-agent-KTCC7TB7.js → run-agent-JFNDY7MR.js} +4 -4
- package/dist/{run-suite-BTMHGI2D.js → run-suite-TH7LO5TJ.js} +4 -4
- package/dist/{run-workflow-IGAYGKJL.js → run-workflow-CK3JP5U2.js} +4 -4
- package/dist/{search-traces-VYFUIMXH.js → search-traces-3BBVYPC3.js} +3 -3
- package/dist/{set-model-provider-W5IUI326.js → set-model-provider-WOC5FNMV.js} +4 -4
- package/dist/{update-agent-4BB7EYLR.js → update-agent-YMEV5MTL.js} +4 -4
- package/dist/{update-dataset-CXBKZ4W3.js → update-dataset-EYT5POFM.js} +4 -4
- package/dist/{update-dataset-record-HOHAMHXG.js → update-dataset-record-VFF5JTX4.js} +4 -4
- package/dist/{update-evaluator-IVOR6FTR.js → update-evaluator-6IJHFG2E.js} +4 -4
- package/dist/update-project-OIT4WPFI.js +24 -0
- package/dist/{update-prompt-OWQAKE7K.js → update-prompt-ZU2DD6KM.js} +3 -3
- package/dist/{update-scenario-GDFVILPN.js → update-scenario-3VUTPDRU.js} +4 -4
- package/dist/{update-suite-BXYUYSPT.js → update-suite-C6JFDQHL.js} +4 -4
- package/package.json +7 -7
- package/pnpm-workspace.yaml +2 -0
- package/pyproject.toml +3 -0
- package/src/__tests__/all-tools.integration.test.ts +9 -0
- package/src/__tests__/datasets.integration.test.ts +17 -0
- package/src/__tests__/datasets.unit.test.ts +4 -0
- package/src/__tests__/experiment-list-tools.unit.test.ts +157 -0
- package/src/__tests__/get-experiment-results.unit.test.ts +222 -0
- package/src/__tests__/project-api-key-tools.unit.test.ts +451 -0
- package/src/__tests__/scenario-tools.unit.test.ts +3 -0
- package/src/config.ts +2 -0
- package/src/create-mcp-server.ts +257 -13
- package/src/langwatch-api-api-keys.ts +54 -0
- package/src/langwatch-api-projects.ts +82 -0
- package/src/langwatch-api.ts +22 -4
- package/src/tools/archive-project.ts +14 -0
- package/src/tools/create-api-key.ts +29 -0
- package/src/tools/create-project.ts +45 -0
- package/src/tools/get-experiment-results.ts +273 -0
- package/src/tools/get-project.ts +20 -0
- package/src/tools/list-api-keys.ts +33 -0
- package/src/tools/list-experiment-runs.ts +142 -0
- package/src/tools/list-experiments.ts +95 -0
- package/src/tools/list-projects.ts +41 -0
- package/src/tools/revoke-api-key.ts +9 -0
- package/src/tools/{run-evaluation.ts → run-experiment.ts} +5 -5
- package/src/tools/update-project.ts +22 -0
- package/uv.lock +192 -530
- package/Dockerfile +0 -22
- package/build.js +0 -12
- package/dist/archive-scenario-WJ2A7ETN.js.map +0 -1
- package/dist/archive-suite-4JOM4SSL.js.map +0 -1
- package/dist/assign-prompt-tag-GL7EAAF3.js.map +0 -1
- package/dist/chunk-2GT7IFWK.js.map +0 -1
- package/dist/chunk-2WPLXEKF.js.map +0 -1
- package/dist/chunk-4AUB2BIA.js.map +0 -1
- package/dist/chunk-BWWY5KEF.js.map +0 -1
- package/dist/chunk-CCWCIJJ3.js.map +0 -1
- package/dist/chunk-E5JYYU3J.js.map +0 -1
- package/dist/chunk-EGH5RPXM.js.map +0 -1
- package/dist/chunk-EUQDVOSU.js.map +0 -1
- package/dist/chunk-HYMIWO3U.js.map +0 -1
- package/dist/chunk-IE4M5OGE.js.map +0 -1
- package/dist/chunk-LUMEZEHL.js.map +0 -1
- package/dist/chunk-NUFPTHKU.js.map +0 -1
- package/dist/chunk-WQG2DFHX.js.map +0 -1
- package/dist/chunk-WVI5CJ6S.js.map +0 -1
- package/dist/chunk-ZVS4UKN2.js.map +0 -1
- package/dist/chunk-ZXKLPC2E.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/create-agent-MBOOT3XK.js.map +0 -1
- package/dist/create-annotation-XMV6A7ED.js.map +0 -1
- package/dist/create-dashboard-VRKLFVZJ.js.map +0 -1
- package/dist/create-dataset-7HQPZCRE.js.map +0 -1
- package/dist/create-dataset-records-2NIVFYTV.js.map +0 -1
- package/dist/create-evaluator-WYFRFLRC.js.map +0 -1
- package/dist/create-mcp-server.js.map +0 -1
- package/dist/create-prompt-IEN7O6JT.js.map +0 -1
- package/dist/create-prompt-tag-CAEZ45VO.js.map +0 -1
- package/dist/create-scenario-6YHSMGLP.js.map +0 -1
- package/dist/create-suite-H5XOFDE5.js.map +0 -1
- package/dist/delete-agent-JKTNBWAA.js.map +0 -1
- package/dist/delete-annotation-ACMDV6QO.js.map +0 -1
- package/dist/delete-dashboard-VJSR7CRU.js.map +0 -1
- package/dist/delete-dataset-RTTTWP4D.js.map +0 -1
- package/dist/delete-dataset-records-KNQTIPQK.js.map +0 -1
- package/dist/delete-evaluator-7FVC5WM4.js.map +0 -1
- package/dist/delete-prompt-tag-ZMZUAGFW.js.map +0 -1
- package/dist/delete-workflow-EYQ3T4RQ.js.map +0 -1
- package/dist/discover-evaluator-schema-H23XCLNE.js.map +0 -1
- package/dist/discover-scenario-schema-MEEEVND7.js.map +0 -1
- package/dist/discover-schema-3T52ORPB.js.map +0 -1
- package/dist/get-agent-E3QSTVKG.js.map +0 -1
- package/dist/get-analytics-2OHV763I.js.map +0 -1
- package/dist/get-dashboard-PC7JDHH6.js.map +0 -1
- package/dist/get-dataset-H5IK5FVU.js.map +0 -1
- package/dist/get-evaluator-UWVUPYTM.js.map +0 -1
- package/dist/get-prompt-WZUOLLQC.js.map +0 -1
- package/dist/get-scenario-Q6LCNUYN.js.map +0 -1
- package/dist/get-simulation-run-Z2XKO256.js.map +0 -1
- package/dist/get-suite-BXK5TN7P.js.map +0 -1
- package/dist/get-trace-4EJAYVBG.js.map +0 -1
- package/dist/get-workflow-O34QJLHD.js.map +0 -1
- package/dist/http-server-ISHF7NJX.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/langwatch-api-annotations-ERBG27RF.js.map +0 -1
- package/dist/langwatch-api-dashboards-G6TR7VVO.js.map +0 -1
- package/dist/langwatch-api-monitors-WSXZLS2B.js.map +0 -1
- package/dist/langwatch-api-secrets-RR5DKG2X.js.map +0 -1
- package/dist/langwatch-api-triggers-2RTNSWQY.js.map +0 -1
- package/dist/langwatch-api-workflows-VJRIIDZ7.js +0 -15
- package/dist/langwatch-api-workflows-VJRIIDZ7.js.map +0 -1
- package/dist/list-agents-AW3P6FJV.js.map +0 -1
- package/dist/list-annotations-QNCGWPQ3.js.map +0 -1
- package/dist/list-dashboards-R7RK2IXL.js.map +0 -1
- package/dist/list-dataset-records-WVCSQP7P.js.map +0 -1
- package/dist/list-datasets-KEXRLDEU.js.map +0 -1
- package/dist/list-evaluators-7R2LB4JH.js.map +0 -1
- package/dist/list-model-providers-OBYJCKBX.js.map +0 -1
- package/dist/list-prompt-tags-6LY3ZPYI.js.map +0 -1
- package/dist/list-prompts-VWEZ4CDE.js.map +0 -1
- package/dist/list-scenarios-TXD4W2ZJ.js.map +0 -1
- package/dist/list-simulation-runs-RHPOLMFI.js.map +0 -1
- package/dist/list-suites-FSGBX27Z.js.map +0 -1
- package/dist/list-workflows-VRGEZ3EN.js.map +0 -1
- package/dist/rename-prompt-tag-VOJJLX4M.js.map +0 -1
- package/dist/run-agent-KTCC7TB7.js.map +0 -1
- package/dist/run-evaluation-2X3V3Q6L.js +0 -64
- package/dist/run-evaluation-2X3V3Q6L.js.map +0 -1
- package/dist/run-suite-BTMHGI2D.js.map +0 -1
- package/dist/run-workflow-IGAYGKJL.js.map +0 -1
- package/dist/search-traces-VYFUIMXH.js.map +0 -1
- package/dist/set-model-provider-W5IUI326.js.map +0 -1
- package/dist/update-agent-4BB7EYLR.js.map +0 -1
- package/dist/update-dataset-CXBKZ4W3.js.map +0 -1
- package/dist/update-dataset-record-HOHAMHXG.js.map +0 -1
- package/dist/update-evaluator-IVOR6FTR.js.map +0 -1
- package/dist/update-prompt-OWQAKE7K.js.map +0 -1
- package/dist/update-scenario-GDFVILPN.js.map +0 -1
- package/dist/update-suite-BXYUYSPT.js.map +0 -1
- package/tests/evaluations.ipynb +0 -649
- package/tests/fixtures/azure/azure_openai_stream_bot_expected.py +0 -102
- package/tests/fixtures/azure/azure_openai_stream_bot_input.py +0 -78
- package/tests/fixtures/dspy/dspy_bot_expected.py +0 -61
- package/tests/fixtures/dspy/dspy_bot_input.py +0 -53
- package/tests/fixtures/fastapi/fastapi_app_expected.py +0 -68
- package/tests/fixtures/fastapi/fastapi_app_input.py +0 -60
- package/tests/fixtures/fastapi/prompt_management_fastapi_expected.py +0 -114
- package/tests/fixtures/fastapi/prompt_management_fastapi_input.py +0 -88
- package/tests/fixtures/haystack/haystack_bot_expected.py +0 -141
- package/tests/fixtures/haystack/haystack_bot_input.py +0 -69
- package/tests/fixtures/langchain/langchain_bot_expected.py +0 -53
- package/tests/fixtures/langchain/langchain_bot_input.py +0 -45
- package/tests/fixtures/langchain/langchain_bot_with_memory_expected.py +0 -69
- package/tests/fixtures/langchain/langchain_bot_with_memory_input.py +0 -61
- package/tests/fixtures/langchain/langchain_rag_bot_expected.py +0 -97
- package/tests/fixtures/langchain/langchain_rag_bot_input.py +0 -77
- package/tests/fixtures/langchain/langchain_rag_bot_vertex_ai_expected.py +0 -116
- package/tests/fixtures/langchain/langchain_rag_bot_vertex_ai_input.py +0 -81
- package/tests/fixtures/langchain/langgraph_rag_bot_with_threads_expected.py +0 -331
- package/tests/fixtures/langchain/langgraph_rag_bot_with_threads_input.py +0 -106
- package/tests/fixtures/litellm/litellm_bot_expected.py +0 -40
- package/tests/fixtures/litellm/litellm_bot_input.py +0 -35
- package/tests/fixtures/openai/openai_bot_expected.py +0 -43
- package/tests/fixtures/openai/openai_bot_function_call_expected.py +0 -91
- package/tests/fixtures/openai/openai_bot_function_call_input.py +0 -82
- package/tests/fixtures/openai/openai_bot_input.py +0 -36
- package/tests/fixtures/openai/openai_bot_rag_expected.py +0 -73
- package/tests/fixtures/openai/openai_bot_rag_input.py +0 -51
- package/tests/fixtures/opentelemetry/openinference_dspy_bot_expected.py +0 -63
- package/tests/fixtures/opentelemetry/openinference_dspy_bot_input.py +0 -58
- package/tests/fixtures/opentelemetry/openinference_langchain_bot_expected.py +0 -53
- package/tests/fixtures/opentelemetry/openinference_langchain_bot_input.py +0 -52
- package/tests/fixtures/opentelemetry/openinference_openai_bot_expected.py +0 -49
- package/tests/fixtures/opentelemetry/openinference_openai_bot_input.py +0 -41
- package/tests/fixtures/opentelemetry/openllmetry_openai_bot_expected.py +0 -44
- package/tests/fixtures/opentelemetry/openllmetry_openai_bot_input.py +0 -40
- package/tests/fixtures/strands/strands_bot_expected.py +0 -84
- package/tests/fixtures/strands/strands_bot_input.py +0 -52
- package/tests/scenario-openai.test.ts +0 -160
- package/tsup.config.ts +0 -14
- package/vitest.config.js +0 -7
|
@@ -26,7 +26,8 @@ function initConfig(args) {
|
|
|
26
26
|
const state = getGlobalState();
|
|
27
27
|
state.globalConfig = {
|
|
28
28
|
apiKey: args.apiKey || process.env.LANGWATCH_API_KEY,
|
|
29
|
-
endpoint: args.endpoint || process.env.LANGWATCH_ENDPOINT || "https://app.langwatch.ai"
|
|
29
|
+
endpoint: args.endpoint || process.env.LANGWATCH_ENDPOINT || "https://app.langwatch.ai",
|
|
30
|
+
projectId: process.env.LANGWATCH_PROJECT_ID
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
function getConfig() {
|
|
@@ -68,4 +69,4 @@ export {
|
|
|
68
69
|
requireApiKey,
|
|
69
70
|
runWithConfig
|
|
70
71
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-KOO5733S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
4
|
|
|
5
5
|
// src/langwatch-api-evaluators.ts
|
|
6
6
|
function getEvaluatorType(evaluator) {
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
updateEvaluator,
|
|
42
42
|
deleteEvaluator
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-R7C7OUVG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
4
|
|
|
5
5
|
// src/langwatch-api-datasets.ts
|
|
6
6
|
async function listDatasets(params) {
|
|
@@ -83,4 +83,4 @@ export {
|
|
|
83
83
|
deleteDatasetRecords,
|
|
84
84
|
listDatasetRecords
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-TROIWSEQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
4
|
|
|
5
5
|
// src/langwatch-api-model-providers.ts
|
|
6
6
|
async function listModelProviders() {
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
listModelProviders,
|
|
20
20
|
setModelProvider
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-X2SEURT2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
4
|
|
|
5
5
|
// src/langwatch-api-agents.ts
|
|
6
6
|
async function listAgents(params) {
|
|
@@ -49,7 +49,7 @@ async function runAgent(id, input) {
|
|
|
49
49
|
`Agent "${agent.name}" (type: ${agent.type}) cannot be executed directly. Only HTTP agents and workflow-linked agents can be run.`
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
const { runWorkflow } = await import("./langwatch-api-workflows-
|
|
52
|
+
const { runWorkflow } = await import("./langwatch-api-workflows-NLJENNXE.js");
|
|
53
53
|
const result = await runWorkflow(workflowId, input);
|
|
54
54
|
return { agentType: agent.type, result };
|
|
55
55
|
}
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
runAgent,
|
|
69
69
|
deleteAgent
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-XC62KJIT.js.map
|
package/dist/config.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgent
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XC62KJIT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-agent.ts
|
|
8
8
|
async function handleCreateAgent(params) {
|
|
@@ -20,4 +20,4 @@ async function handleCreateAgent(params) {
|
|
|
20
20
|
export {
|
|
21
21
|
handleCreateAgent
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=create-agent-
|
|
23
|
+
//# sourceMappingURL=create-agent-K5Q7BFGZ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAnnotation
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BB7EOKHR.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-annotation.ts
|
|
8
8
|
async function handleCreateAnnotation(params) {
|
|
@@ -21,4 +21,4 @@ async function handleCreateAnnotation(params) {
|
|
|
21
21
|
export {
|
|
22
22
|
handleCreateAnnotation
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=create-annotation-
|
|
24
|
+
//# sourceMappingURL=create-annotation-KN3GE3DK.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createApiKey
|
|
3
|
+
} from "./chunk-BBJ5WAJB.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
|
+
|
|
7
|
+
// src/tools/create-api-key.ts
|
|
8
|
+
async function handleCreateApiKey(params) {
|
|
9
|
+
const result = await createApiKey(params);
|
|
10
|
+
const lines = [];
|
|
11
|
+
lines.push(`API key created successfully!
|
|
12
|
+
`);
|
|
13
|
+
lines.push(`**Name**: ${result.apiKey.name}`);
|
|
14
|
+
lines.push(`**ID**: ${result.apiKey.id}`);
|
|
15
|
+
lines.push(`**Token**: \`${result.token}\``);
|
|
16
|
+
lines.push(`**Created**: ${result.apiKey.createdAt}`);
|
|
17
|
+
lines.push("");
|
|
18
|
+
lines.push(
|
|
19
|
+
"> \u26A0\uFE0F Save this token now \u2014 it will not be shown again."
|
|
20
|
+
);
|
|
21
|
+
return lines.join("\n");
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
handleCreateApiKey
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=create-api-key-OQI5PUNQ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDashboard
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JHOSVOHT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-dashboard.ts
|
|
8
8
|
async function handleCreateDashboard(params) {
|
|
@@ -15,4 +15,4 @@ async function handleCreateDashboard(params) {
|
|
|
15
15
|
export {
|
|
16
16
|
handleCreateDashboard
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=create-dashboard-
|
|
18
|
+
//# sourceMappingURL=create-dashboard-G4QA5AXP.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
import "./chunk-NUFPTHKU.js";
|
|
5
5
|
import {
|
|
6
6
|
createDataset
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TROIWSEQ.js";
|
|
8
|
+
import "./chunk-42ZHHHIJ.js";
|
|
9
|
+
import "./chunk-KOO5733S.js";
|
|
10
10
|
|
|
11
11
|
// src/tools/create-dataset.ts
|
|
12
12
|
async function handleCreateDataset(params) {
|
|
@@ -19,4 +19,4 @@ async function handleCreateDataset(params) {
|
|
|
19
19
|
export {
|
|
20
20
|
handleCreateDataset
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=create-dataset-
|
|
22
|
+
//# sourceMappingURL=create-dataset-WQSC37N7.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDatasetRecords
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TROIWSEQ.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-dataset-records.ts
|
|
8
8
|
async function handleCreateDatasetRecords(params) {
|
|
@@ -19,4 +19,4 @@ async function handleCreateDatasetRecords(params) {
|
|
|
19
19
|
export {
|
|
20
20
|
handleCreateDatasetRecords
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=create-dataset-records-
|
|
22
|
+
//# sourceMappingURL=create-dataset-records-B4RL3FLC.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEvaluator,
|
|
3
3
|
getEvaluatorType
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-R7C7OUVG.js";
|
|
5
|
+
import "./chunk-42ZHHHIJ.js";
|
|
6
|
+
import "./chunk-KOO5733S.js";
|
|
7
7
|
|
|
8
8
|
// src/tools/create-evaluator.ts
|
|
9
9
|
async function handleCreateEvaluator(params) {
|
|
@@ -24,4 +24,4 @@ async function handleCreateEvaluator(params) {
|
|
|
24
24
|
export {
|
|
25
25
|
handleCreateEvaluator
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=create-evaluator-
|
|
27
|
+
//# sourceMappingURL=create-evaluator-YFFQIR7E.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createProject
|
|
3
|
+
} from "./chunk-ADSJ2FDA.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
|
+
|
|
7
|
+
// src/tools/create-project.ts
|
|
8
|
+
async function handleCreateProject(params) {
|
|
9
|
+
if (!params.teamId && !params.newTeamName) {
|
|
10
|
+
return "Error: You must provide either `teamId` (to add to an existing team) or `newTeamName` (to create a new team for this project).";
|
|
11
|
+
}
|
|
12
|
+
const result = await createProject({
|
|
13
|
+
name: params.name,
|
|
14
|
+
language: params.language,
|
|
15
|
+
framework: params.framework,
|
|
16
|
+
teamId: params.teamId,
|
|
17
|
+
newTeamName: params.newTeamName
|
|
18
|
+
});
|
|
19
|
+
if (!result.serviceApiKey) {
|
|
20
|
+
throw new Error(
|
|
21
|
+
"API did not return a service API key. The project was created but the key is missing \u2014 check the LangWatch UI."
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
const lines = [];
|
|
25
|
+
lines.push(`Project created successfully!
|
|
26
|
+
`);
|
|
27
|
+
lines.push(`**Name**: ${result.name}`);
|
|
28
|
+
lines.push(`**ID**: ${result.id}`);
|
|
29
|
+
lines.push(`**Slug**: ${result.slug}`);
|
|
30
|
+
lines.push(`**Language**: ${result.language}`);
|
|
31
|
+
lines.push(`**Framework**: ${result.framework}`);
|
|
32
|
+
lines.push("");
|
|
33
|
+
lines.push(`**Service API Key**: \`${result.serviceApiKey}\``);
|
|
34
|
+
lines.push(`**Service API Key ID**: ${result.serviceApiKeyId}`);
|
|
35
|
+
lines.push("");
|
|
36
|
+
lines.push(
|
|
37
|
+
"> \u26A0\uFE0F Save the service API key now \u2014 it will not be shown again. Use it as `LANGWATCH_API_KEY` to authenticate project-scoped operations."
|
|
38
|
+
);
|
|
39
|
+
return lines.join("\n");
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
handleCreateProject
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=create-project-CUVQ67VN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPrompt
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
|
+
import "./chunk-KOO5733S.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/create-prompt.ts
|
|
7
7
|
var HANDLE_PATTERN = /^[a-z0-9_-]+(?:\/[a-z0-9_-]+)?$/;
|
|
@@ -36,4 +36,4 @@ async function handleCreatePrompt(params) {
|
|
|
36
36
|
export {
|
|
37
37
|
handleCreatePrompt
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=create-prompt-
|
|
39
|
+
//# sourceMappingURL=create-prompt-NGXKSP4X.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPromptTag
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
|
+
import "./chunk-KOO5733S.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/create-prompt-tag.ts
|
|
7
7
|
async function handleCreatePromptTag(params) {
|
|
@@ -14,4 +14,4 @@ async function handleCreatePromptTag(params) {
|
|
|
14
14
|
export {
|
|
15
15
|
handleCreatePromptTag
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=create-prompt-tag-
|
|
17
|
+
//# sourceMappingURL=create-prompt-tag-IUKYPVHH.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createScenario
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CCM4ZFGF.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-scenario.ts
|
|
8
8
|
async function handleCreateScenario(params) {
|
|
@@ -23,4 +23,4 @@ async function handleCreateScenario(params) {
|
|
|
23
23
|
export {
|
|
24
24
|
handleCreateScenario
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=create-scenario-
|
|
26
|
+
//# sourceMappingURL=create-scenario-FNBXALH3.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSuite
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CHKCEZBP.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/create-suite.ts
|
|
8
8
|
async function handleCreateSuite(params) {
|
|
@@ -35,4 +35,4 @@ async function handleCreateSuite(params) {
|
|
|
35
35
|
export {
|
|
36
36
|
handleCreateSuite
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=create-suite-
|
|
38
|
+
//# sourceMappingURL=create-suite-DJEPD4ZB.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteAgent
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XC62KJIT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-agent.ts
|
|
8
8
|
async function handleDeleteAgent(params) {
|
|
@@ -15,4 +15,4 @@ async function handleDeleteAgent(params) {
|
|
|
15
15
|
export {
|
|
16
16
|
handleDeleteAgent
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=delete-agent-
|
|
18
|
+
//# sourceMappingURL=delete-agent-TJI5XBBM.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteAnnotation
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BB7EOKHR.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-annotation.ts
|
|
8
8
|
async function handleDeleteAnnotation(params) {
|
|
@@ -14,4 +14,4 @@ async function handleDeleteAnnotation(params) {
|
|
|
14
14
|
export {
|
|
15
15
|
handleDeleteAnnotation
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=delete-annotation-
|
|
17
|
+
//# sourceMappingURL=delete-annotation-KRP53TUU.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDashboard
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JHOSVOHT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-dashboard.ts
|
|
8
8
|
async function handleDeleteDashboard(params) {
|
|
@@ -15,4 +15,4 @@ async function handleDeleteDashboard(params) {
|
|
|
15
15
|
export {
|
|
16
16
|
handleDeleteDashboard
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=delete-dashboard-
|
|
18
|
+
//# sourceMappingURL=delete-dashboard-N5SZJIR3.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDataset
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TROIWSEQ.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-dataset.ts
|
|
8
8
|
async function handleDeleteDataset(params) {
|
|
@@ -17,4 +17,4 @@ async function handleDeleteDataset(params) {
|
|
|
17
17
|
export {
|
|
18
18
|
handleDeleteDataset
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=delete-dataset-
|
|
20
|
+
//# sourceMappingURL=delete-dataset-KDUOHL2P.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDatasetRecords
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TROIWSEQ.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-dataset-records.ts
|
|
8
8
|
async function handleDeleteDatasetRecords(params) {
|
|
@@ -18,4 +18,4 @@ async function handleDeleteDatasetRecords(params) {
|
|
|
18
18
|
export {
|
|
19
19
|
handleDeleteDatasetRecords
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=delete-dataset-records-
|
|
21
|
+
//# sourceMappingURL=delete-dataset-records-DM4W3PAW.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteEvaluator
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-R7C7OUVG.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-evaluator.ts
|
|
8
8
|
async function handleDeleteEvaluator(params) {
|
|
@@ -12,4 +12,4 @@ async function handleDeleteEvaluator(params) {
|
|
|
12
12
|
export {
|
|
13
13
|
handleDeleteEvaluator
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=delete-evaluator-
|
|
15
|
+
//# sourceMappingURL=delete-evaluator-7ZATLJOA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deletePromptTag
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
|
+
import "./chunk-KOO5733S.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/delete-prompt-tag.ts
|
|
7
7
|
async function handleDeletePromptTag(params) {
|
|
@@ -14,4 +14,4 @@ async function handleDeletePromptTag(params) {
|
|
|
14
14
|
export {
|
|
15
15
|
handleDeletePromptTag
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=delete-prompt-tag-
|
|
17
|
+
//# sourceMappingURL=delete-prompt-tag-I6HNMSVJ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteWorkflow
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HKY3GW45.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/delete-workflow.ts
|
|
8
8
|
async function handleDeleteWorkflow(params) {
|
|
@@ -14,4 +14,4 @@ async function handleDeleteWorkflow(params) {
|
|
|
14
14
|
export {
|
|
15
15
|
handleDeleteWorkflow
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=delete-workflow-
|
|
17
|
+
//# sourceMappingURL=delete-workflow-QEO74JQR.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAgent
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XC62KJIT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/get-agent.ts
|
|
8
8
|
async function handleGetAgent(params) {
|
|
@@ -25,4 +25,4 @@ async function handleGetAgent(params) {
|
|
|
25
25
|
export {
|
|
26
26
|
handleGetAgent
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=get-agent-
|
|
28
|
+
//# sourceMappingURL=get-agent-3KDWCP5N.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-ZXKLPC2E.js";
|
|
4
4
|
import {
|
|
5
5
|
getAnalyticsTimeseries
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
7
|
+
import "./chunk-KOO5733S.js";
|
|
8
8
|
|
|
9
9
|
// src/tools/get-analytics.ts
|
|
10
10
|
function getGroupedData(bucket, groupBy) {
|
|
@@ -69,4 +69,4 @@ async function handleGetAnalytics(params) {
|
|
|
69
69
|
export {
|
|
70
70
|
handleGetAnalytics
|
|
71
71
|
};
|
|
72
|
-
//# sourceMappingURL=get-analytics-
|
|
72
|
+
//# sourceMappingURL=get-analytics-GPVJX7SF.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDashboard
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JHOSVOHT.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
6
|
|
|
7
7
|
// src/tools/get-dashboard.ts
|
|
8
8
|
async function handleGetDashboard(params) {
|
|
@@ -26,4 +26,4 @@ async function handleGetDashboard(params) {
|
|
|
26
26
|
export {
|
|
27
27
|
handleGetDashboard
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=get-dashboard-
|
|
29
|
+
//# sourceMappingURL=get-dashboard-YPTIE5YY.js.map
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-NUFPTHKU.js";
|
|
4
4
|
import {
|
|
5
5
|
getDataset
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TROIWSEQ.js";
|
|
7
|
+
import "./chunk-42ZHHHIJ.js";
|
|
8
|
+
import "./chunk-KOO5733S.js";
|
|
9
9
|
|
|
10
10
|
// src/tools/get-dataset.ts
|
|
11
11
|
function formatDatasetResponse(dataset) {
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
formatDatasetResponse,
|
|
46
46
|
handleGetDataset
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=get-dataset-
|
|
48
|
+
//# sourceMappingURL=get-dataset-6DQFYITM.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEvaluator,
|
|
3
3
|
getEvaluatorType
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-R7C7OUVG.js";
|
|
5
|
+
import "./chunk-42ZHHHIJ.js";
|
|
6
|
+
import "./chunk-KOO5733S.js";
|
|
7
7
|
|
|
8
8
|
// src/tools/get-evaluator.ts
|
|
9
9
|
async function handleGetEvaluator(params) {
|
|
@@ -44,4 +44,4 @@ async function handleGetEvaluator(params) {
|
|
|
44
44
|
export {
|
|
45
45
|
handleGetEvaluator
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=get-evaluator-
|
|
47
|
+
//# sourceMappingURL=get-evaluator-PCM6XQAU.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getProject
|
|
3
|
+
} from "./chunk-ADSJ2FDA.js";
|
|
4
|
+
import "./chunk-42ZHHHIJ.js";
|
|
5
|
+
import "./chunk-KOO5733S.js";
|
|
6
|
+
|
|
7
|
+
// src/tools/get-project.ts
|
|
8
|
+
async function handleGetProject(params) {
|
|
9
|
+
const project = await getProject(params.id);
|
|
10
|
+
const lines = [];
|
|
11
|
+
lines.push(`# ${project.name}
|
|
12
|
+
`);
|
|
13
|
+
lines.push(`**ID**: ${project.id}`);
|
|
14
|
+
lines.push(`**Slug**: ${project.slug}`);
|
|
15
|
+
lines.push(`**Language**: ${project.language}`);
|
|
16
|
+
lines.push(`**Framework**: ${project.framework}`);
|
|
17
|
+
lines.push(`**Team ID**: ${project.teamId}`);
|
|
18
|
+
lines.push(`**PII Redaction**: ${project.piiRedactionLevel}`);
|
|
19
|
+
lines.push(`**Created**: ${project.createdAt}`);
|
|
20
|
+
lines.push(`**Updated**: ${project.updatedAt}`);
|
|
21
|
+
return lines.join("\n");
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
handleGetProject
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=get-project-JCMWXVLU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPrompt
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-42ZHHHIJ.js";
|
|
4
|
+
import "./chunk-KOO5733S.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/get-prompt.ts
|
|
7
7
|
async function handleGetPrompt(params) {
|
|
@@ -42,4 +42,4 @@ async function handleGetPrompt(params) {
|
|
|
42
42
|
export {
|
|
43
43
|
handleGetPrompt
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=get-prompt-
|
|
45
|
+
//# sourceMappingURL=get-prompt-5XAGWWBG.js.map
|