@proofhound/api-client 0.1.6
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/LICENSE +190 -0
- package/dist/annotation.d.ts +245 -0
- package/dist/annotation.d.ts.map +1 -0
- package/dist/annotation.js +19 -0
- package/dist/annotation.js.map +1 -0
- package/dist/api-token.d.ts +53 -0
- package/dist/api-token.d.ts.map +1 -0
- package/dist/api-token.js +12 -0
- package/dist/api-token.js.map +1 -0
- package/dist/auth-source.d.ts +29 -0
- package/dist/auth-source.d.ts.map +1 -0
- package/dist/auth-source.js +30 -0
- package/dist/auth-source.js.map +1 -0
- package/dist/canary-release.d.ts +635 -0
- package/dist/canary-release.d.ts.map +1 -0
- package/dist/canary-release.js +48 -0
- package/dist/canary-release.js.map +1 -0
- package/dist/configure.d.ts +20 -0
- package/dist/configure.d.ts.map +1 -0
- package/dist/configure.js +41 -0
- package/dist/configure.js.map +1 -0
- package/dist/connector.d.ts +446 -0
- package/dist/connector.d.ts.map +1 -0
- package/dist/connector.js +70 -0
- package/dist/connector.js.map +1 -0
- package/dist/dataset-import.d.ts +75 -0
- package/dist/dataset-import.d.ts.map +1 -0
- package/dist/dataset-import.js +25 -0
- package/dist/dataset-import.js.map +1 -0
- package/dist/dataset.d.ts +136 -0
- package/dist/dataset.d.ts.map +1 -0
- package/dist/dataset.js +67 -0
- package/dist/dataset.js.map +1 -0
- package/dist/experiment.d.ts +365 -0
- package/dist/experiment.d.ts.map +1 -0
- package/dist/experiment.js +65 -0
- package/dist/experiment.js.map +1 -0
- package/dist/http.d.ts +3 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +13 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/model.d.ts +274 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +73 -0
- package/dist/model.js.map +1 -0
- package/dist/monitoring.d.ts +200 -0
- package/dist/monitoring.d.ts.map +1 -0
- package/dist/monitoring.js +49 -0
- package/dist/monitoring.js.map +1 -0
- package/dist/optimization.d.ts +574 -0
- package/dist/optimization.d.ts.map +1 -0
- package/dist/optimization.js +22 -0
- package/dist/optimization.js.map +1 -0
- package/dist/production-release.d.ts +122 -0
- package/dist/production-release.d.ts.map +1 -0
- package/dist/production-release.js +22 -0
- package/dist/production-release.js.map +1 -0
- package/dist/prompt.d.ts +481 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +22 -0
- package/dist/prompt.js.map +1 -0
- package/dist/public-env.d.ts +2 -0
- package/dist/public-env.d.ts.map +1 -0
- package/dist/public-env.js +50 -0
- package/dist/public-env.js.map +1 -0
- package/dist/quick-start.d.ts +71 -0
- package/dist/quick-start.d.ts.map +1 -0
- package/dist/quick-start.js +11 -0
- package/dist/quick-start.js.map +1 -0
- package/dist/release-line.d.ts +1052 -0
- package/dist/release-line.d.ts.map +1 -0
- package/dist/release-line.js +18 -0
- package/dist/release-line.js.map +1 -0
- package/dist/run-result.d.ts +120 -0
- package/dist/run-result.d.ts.map +1 -0
- package/dist/run-result.js +50 -0
- package/dist/run-result.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-line.d.ts","sourceRoot":"","sources":["../src/release-line.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,kCAAkC,EAClC,qCAAqC,EACtC,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,iBAAiB;uBACT,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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(exports, "__esModule", { value: true });
|
|
3
|
+
exports.releaseLineClient = void 0;
|
|
4
|
+
const http_1 = require("./http");
|
|
5
|
+
exports.releaseLineClient = {
|
|
6
|
+
list: (_projectId) => http_1.httpClient.get('/release-lines').then((response) => response.data),
|
|
7
|
+
get: (_projectId, releaseLineId) => http_1.httpClient.get(`/release-lines/${releaseLineId}`).then((response) => response.data),
|
|
8
|
+
listEvents: (_projectId, releaseLineId) => http_1.httpClient
|
|
9
|
+
.get(`/release-lines/${releaseLineId}/events`)
|
|
10
|
+
.then((response) => response.data),
|
|
11
|
+
updateTrafficRatio: (_projectId, releaseLineId, body) => http_1.httpClient
|
|
12
|
+
.post(`/release-lines/${releaseLineId}/traffic-ratio`, body)
|
|
13
|
+
.then((response) => response.data),
|
|
14
|
+
updateRunConfig: (_projectId, releaseLineId, body) => http_1.httpClient
|
|
15
|
+
.post(`/release-lines/${releaseLineId}/run-config`, body)
|
|
16
|
+
.then((response) => response.data),
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=release-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-line.js","sourceRoot":"","sources":["../src/release-line.ts"],"names":[],"mappings":";;;AAOA,iCAAoC;AAEvB,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,CAAC,UAAkB,EAAE,EAAE,CAC3B,iBAAU,CAAC,GAAG,CAA6B,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEhG,GAAG,EAAE,CAAC,UAAkB,EAAE,aAAqB,EAAE,EAAE,CACjD,iBAAU,CAAC,GAAG,CAAiB,kBAAkB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAErG,UAAU,EAAE,CAAC,UAAkB,EAAE,aAAqB,EAAE,EAAE,CACxD,iBAAU;SACP,GAAG,CAAkC,kBAAkB,aAAa,SAAS,CAAC;SAC9E,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEtC,kBAAkB,EAAE,CAAC,UAAkB,EAAE,aAAqB,EAAE,IAA2C,EAAE,EAAE,CAC7G,iBAAU;SACP,IAAI,CAAiB,kBAAkB,aAAa,gBAAgB,EAAE,IAAI,CAAC;SAC3E,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEtC,eAAe,EAAE,CAAC,UAAkB,EAAE,aAAqB,EAAE,IAAwC,EAAE,EAAE,CACvG,iBAAU;SACP,IAAI,CAAiB,kBAAkB,aAAa,aAAa,EAAE,IAAI,CAAC;SACxE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { RunResultReleaseListQueryDto, RunResultListQueryDto } from '@proofhound/shared';
|
|
2
|
+
export declare const runResultClient: {
|
|
3
|
+
listForExperiment: (projectId: string, experimentId: string, query: RunResultListQueryDto) => Promise<{
|
|
4
|
+
data: {
|
|
5
|
+
id: string;
|
|
6
|
+
projectId: string;
|
|
7
|
+
experimentId: string;
|
|
8
|
+
sampleId: string | null;
|
|
9
|
+
externalId: string | null;
|
|
10
|
+
status: "timeout" | "error" | "success" | "rate_limited";
|
|
11
|
+
judgmentStatus: "correct" | "incorrect" | "parse_error" | "judge_error" | null;
|
|
12
|
+
isCorrect: boolean | null;
|
|
13
|
+
decisionOutput: string | null;
|
|
14
|
+
expectedOutput: string | null;
|
|
15
|
+
datasetTextFields: {
|
|
16
|
+
name: string;
|
|
17
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
18
|
+
value: unknown;
|
|
19
|
+
}[];
|
|
20
|
+
datasetImageFields: {
|
|
21
|
+
name: string;
|
|
22
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
23
|
+
value: unknown;
|
|
24
|
+
}[];
|
|
25
|
+
inputVariables: unknown;
|
|
26
|
+
rawResponse: string | null;
|
|
27
|
+
parsedOutput: unknown;
|
|
28
|
+
errorClass: string | null;
|
|
29
|
+
errorMessage: string | null;
|
|
30
|
+
latencyMs: number | null;
|
|
31
|
+
inputTokens: number | null;
|
|
32
|
+
outputTokens: number | null;
|
|
33
|
+
costEstimate: number | null;
|
|
34
|
+
attempt: number;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
}[];
|
|
37
|
+
total: number;
|
|
38
|
+
page: number;
|
|
39
|
+
pageSize: number;
|
|
40
|
+
}>;
|
|
41
|
+
listForRelease: (projectId: string, query: RunResultReleaseListQueryDto) => Promise<{
|
|
42
|
+
data: {
|
|
43
|
+
id: string;
|
|
44
|
+
projectId: string;
|
|
45
|
+
source: "release";
|
|
46
|
+
sourceId: string;
|
|
47
|
+
lane: "production" | "canary";
|
|
48
|
+
eventId: string | null;
|
|
49
|
+
canaryId: string | null;
|
|
50
|
+
releaseVariantId: string | null;
|
|
51
|
+
releaseVariantNumber: number | null;
|
|
52
|
+
releaseVariantLabel: string | null;
|
|
53
|
+
externalId: string | null;
|
|
54
|
+
promptName: string | null;
|
|
55
|
+
promptVersionId: string;
|
|
56
|
+
promptVersionNumber: number | null;
|
|
57
|
+
modelId: string;
|
|
58
|
+
modelName: string | null;
|
|
59
|
+
modelProvider: string | null;
|
|
60
|
+
status: "timeout" | "error" | "success" | "rate_limited";
|
|
61
|
+
judgmentStatus: "correct" | "incorrect" | "parse_error" | "judge_error" | null;
|
|
62
|
+
isCorrect: boolean | null;
|
|
63
|
+
decisionOutput: string | null;
|
|
64
|
+
inputVariables: unknown;
|
|
65
|
+
rawResponse: string | null;
|
|
66
|
+
parsedOutput: unknown;
|
|
67
|
+
errorClass: string | null;
|
|
68
|
+
errorMessage: string | null;
|
|
69
|
+
latencyMs: number | null;
|
|
70
|
+
inputTokens: number | null;
|
|
71
|
+
outputTokens: number | null;
|
|
72
|
+
costEstimate: number | null;
|
|
73
|
+
attempt: number;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
}[];
|
|
76
|
+
total: number;
|
|
77
|
+
page: number;
|
|
78
|
+
pageSize: number;
|
|
79
|
+
}>;
|
|
80
|
+
get: (projectId: string, experimentId: string, runResultId: string) => Promise<{
|
|
81
|
+
id: string;
|
|
82
|
+
projectId: string;
|
|
83
|
+
experimentId: string;
|
|
84
|
+
sampleId: string | null;
|
|
85
|
+
externalId: string | null;
|
|
86
|
+
status: "timeout" | "error" | "success" | "rate_limited";
|
|
87
|
+
judgmentStatus: "correct" | "incorrect" | "parse_error" | "judge_error" | null;
|
|
88
|
+
isCorrect: boolean | null;
|
|
89
|
+
decisionOutput: string | null;
|
|
90
|
+
expectedOutput: string | null;
|
|
91
|
+
datasetTextFields: {
|
|
92
|
+
name: string;
|
|
93
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
94
|
+
value: unknown;
|
|
95
|
+
}[];
|
|
96
|
+
datasetImageFields: {
|
|
97
|
+
name: string;
|
|
98
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
99
|
+
value: unknown;
|
|
100
|
+
}[];
|
|
101
|
+
errorClass: string | null;
|
|
102
|
+
errorMessage: string | null;
|
|
103
|
+
latencyMs: number | null;
|
|
104
|
+
inputTokens: number | null;
|
|
105
|
+
outputTokens: number | null;
|
|
106
|
+
costEstimate: number | null;
|
|
107
|
+
attempt: number;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
promptVersionId: string;
|
|
110
|
+
modelId: string;
|
|
111
|
+
source: "experiment";
|
|
112
|
+
renderedPrompt: unknown;
|
|
113
|
+
inputVariables: unknown;
|
|
114
|
+
rawResponse: string | null;
|
|
115
|
+
parsedOutput: unknown;
|
|
116
|
+
dbosWorkflowId: string | null;
|
|
117
|
+
bullmqJobId: string | null;
|
|
118
|
+
}>;
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=run-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-result.d.ts","sourceRoot":"","sources":["../src/run-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAG5B,qBAAqB,EAEtB,MAAM,oBAAoB,CAAC;AAgC5B,eAAO,MAAM,eAAe;mCACK,MAAM,gBAAgB,MAAM,SAAS,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAI7D,MAAM,SAAS,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAItD,MAAM,gBAAgB,MAAM,eAAe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runResultClient = void 0;
|
|
4
|
+
const http_1 = require("./http");
|
|
5
|
+
function buildParams(query) {
|
|
6
|
+
const out = {
|
|
7
|
+
page: query.page,
|
|
8
|
+
pageSize: query.pageSize,
|
|
9
|
+
sort: query.sort,
|
|
10
|
+
};
|
|
11
|
+
if (query.status && query.status.length > 0)
|
|
12
|
+
out['status'] = query.status.join(',');
|
|
13
|
+
if (query.judgmentStatus && query.judgmentStatus.length > 0)
|
|
14
|
+
out['judgmentStatus'] = query.judgmentStatus.join(',');
|
|
15
|
+
if (typeof query.isCorrect === 'boolean')
|
|
16
|
+
out['isCorrect'] = String(query.isCorrect);
|
|
17
|
+
if (query.search && query.search.length > 0)
|
|
18
|
+
out['search'] = query.search;
|
|
19
|
+
return out;
|
|
20
|
+
}
|
|
21
|
+
function buildReleaseParams(query) {
|
|
22
|
+
const out = buildParams(query);
|
|
23
|
+
if (query.sourceIds && query.sourceIds.length > 0)
|
|
24
|
+
out['sourceIds'] = query.sourceIds.join(',');
|
|
25
|
+
if (query.releaseVariantIds && query.releaseVariantIds.length > 0) {
|
|
26
|
+
out['releaseVariantIds'] = query.releaseVariantIds.join(',');
|
|
27
|
+
}
|
|
28
|
+
if (query.promptVersionIds && query.promptVersionIds.length > 0) {
|
|
29
|
+
out['promptVersionIds'] = query.promptVersionIds.join(',');
|
|
30
|
+
}
|
|
31
|
+
if (query.lane && query.lane.length > 0)
|
|
32
|
+
out['lane'] = query.lane.join(',');
|
|
33
|
+
if (query.externalId && query.externalId.length > 0)
|
|
34
|
+
out['externalId'] = query.externalId;
|
|
35
|
+
if (query.from)
|
|
36
|
+
out['from'] = query.from;
|
|
37
|
+
if (query.to)
|
|
38
|
+
out['to'] = query.to;
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
exports.runResultClient = {
|
|
42
|
+
listForExperiment: (projectId, experimentId, query) => http_1.httpClient
|
|
43
|
+
.get(`/experiments/${experimentId}/run-results`, { params: buildParams(query) })
|
|
44
|
+
.then((r) => r.data),
|
|
45
|
+
listForRelease: (projectId, query) => http_1.httpClient
|
|
46
|
+
.get(`/run-results/releases`, { params: buildReleaseParams(query) })
|
|
47
|
+
.then((r) => r.data),
|
|
48
|
+
get: (projectId, experimentId, runResultId) => http_1.httpClient.get(`/experiments/${experimentId}/run-results/${runResultId}`).then((r) => r.data),
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=run-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-result.js","sourceRoot":"","sources":["../src/run-result.ts"],"names":[],"mappings":";;;AAOA,iCAAoC;AAEpC,SAAS,WAAW,CAAC,KAA4B;IAC/C,MAAM,GAAG,GAA4B;QACnC,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;IACF,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,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AE,CAAC,CAAC,CAAC,IAAI,CAAC;CACpH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proofhound/api-client",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "前端 C1 层:HTTP 客户端,按资源拆分",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js",
|
|
9
|
+
"./public-env": "./dist/public-env.js"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^1.16.1",
|
|
13
|
+
"zod": "^4.4.3",
|
|
14
|
+
"@proofhound/shared": "0.1.6"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^24.12.4",
|
|
18
|
+
"typescript": "^6.0.3",
|
|
19
|
+
"vitest": "^4.1.6"
|
|
20
|
+
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/proofhound/proofhound",
|
|
25
|
+
"directory": "packages/api-client"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/proofhound/proofhound/tree/master/packages/api-client#readme",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public",
|
|
35
|
+
"registry": "https://registry.npmjs.org/"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
41
|
+
"test": "vitest run --passWithNoTests",
|
|
42
|
+
"test:unit": "vitest run --passWithNoTests",
|
|
43
|
+
"clean": "rm -rf dist .turbo"
|
|
44
|
+
}
|
|
45
|
+
}
|