@promptmetrics/sdk 1.0.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/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "@promptmetrics/sdk",
3
+ "version": "1.0.0",
4
+ "description": "Official TypeScript/JavaScript SDK for PromptMetrics API - Manage and execute LLM prompts with version control, monitoring, and analytics",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "CHANGELOG.md",
20
+ "LICENSE"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
24
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
25
+ "lint": "eslint src --ext .ts",
26
+ "lint:fix": "eslint src --ext .ts --fix",
27
+ "typecheck": "tsc --noEmit",
28
+ "test": "echo \"Error: no test specified\" && exit 1",
29
+ "example:list": "ts-node examples/list-prompts.ts",
30
+ "example:get": "ts-node examples/get-template.ts",
31
+ "example:template": "ts-node examples/template-operations.ts",
32
+ "example:version": "ts-node examples/version-operations.ts",
33
+ "example:logs": "ts-node examples/log-operations.ts",
34
+ "example:providers": "ts-node examples/provider-operations.ts",
35
+ "example:traceable": "ts-node examples/traceable-decorator.ts",
36
+ "example:advanced": "ts-node examples/advanced-scenarios",
37
+ "prepublishOnly": "npm run lint && npm run typecheck && npm run build",
38
+ "prepack": "npm run build"
39
+ },
40
+ "keywords": [
41
+ "promptmetrics",
42
+ "llm",
43
+ "ai",
44
+ "openai",
45
+ "claude",
46
+ "anthropic",
47
+ "prompt",
48
+ "template",
49
+ "prompt-engineering",
50
+ "prompt-management",
51
+ "tracing",
52
+ "observability",
53
+ "monitoring",
54
+ "analytics",
55
+ "sdk",
56
+ "typescript",
57
+ "javascript",
58
+ "nodejs"
59
+ ],
60
+ "author": "PromptMetrics",
61
+ "license": "MIT",
62
+ "homepage": "https://app.promptmetrics.dev/",
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "git+https://github.com/Xomatic/promptmetrics-sdk.git"
66
+ },
67
+ "bugs": {
68
+ "url": "https://github.com/Xomatic/promptmetrics-sdk/issues"
69
+ },
70
+ "dependencies": {
71
+ "axios": "^1.6.0"
72
+ },
73
+ "devDependencies": {
74
+ "@types/node": "^20.0.0",
75
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
76
+ "@typescript-eslint/parser": "^8.50.0",
77
+ "dotenv": "^17.2.3",
78
+ "eslint": "^8.0.0",
79
+ "ts-node": "^10.9.0",
80
+ "tsup": "^8.0.0",
81
+ "typescript": "^5.0.0"
82
+ },
83
+ "engines": {
84
+ "node": ">=18.0.0"
85
+ }
86
+ }