@empiricalrun/playwright-utils 0.66.2 → 0.66.4
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/CHANGELOG.md +17 -0
- package/dist/api-worker-client.d.ts +2 -0
- package/dist/api-worker-client.d.ts.map +1 -1
- package/dist/api-worker-client.js +6 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +18 -3
- package/dist/generated/api-worker-openapi.d.ts +107 -108
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/local-run-id.d.ts +2 -0
- package/dist/local-run-id.d.ts.map +1 -0
- package/dist/local-run-id.js +13 -0
- package/dist/reporter/empirical-reporter.d.ts +5 -2
- package/dist/reporter/empirical-reporter.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.js +58 -28
- package/dist/reporter/harness.d.ts +3 -1
- package/dist/reporter/harness.d.ts.map +1 -1
- package/dist/reporter/harness.js +7 -0
- package/dist/reporter/local-run-report.d.ts +10 -0
- package/dist/reporter/local-run-report.d.ts.map +1 -0
- package/dist/reporter/local-run-report.js +47 -0
- package/dist/reporter/report-paths.d.ts +8 -0
- package/dist/reporter/report-paths.d.ts.map +1 -0
- package/dist/reporter/report-paths.js +54 -0
- package/dist/reporter/uploader.d.ts.map +1 -1
- package/dist/reporter/uploader.js +5 -3
- package/dist/reporter/util.d.ts +6 -1
- package/dist/reporter/util.d.ts.map +1 -1
- package/dist/reporter/util.js +8 -4
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.66.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ab8f54f: feat: the reporter posts each local run to its session as a local-test-run message the agent reads and the dashboard shows
|
|
8
|
+
- ef79f41: fix: runs with EMPIRICAL_LOCAL_RUN_PREFIX get their own test-results, report folders and upload id, and the reporter uploads the configured html/json report paths
|
|
9
|
+
- @empiricalrun/cua@0.6.0
|
|
10
|
+
- @empiricalrun/reporter@0.30.3
|
|
11
|
+
|
|
12
|
+
## 0.66.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- cdb1b37: fix: empirical reporter uploads body attachments (testInfo.attach with body) instead of skipping them
|
|
17
|
+
- @empiricalrun/cua@0.6.0
|
|
18
|
+
- @empiricalrun/reporter@0.30.3
|
|
19
|
+
|
|
3
20
|
## 0.66.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -25,6 +25,7 @@ export type KvConditionalResult<T> = {
|
|
|
25
25
|
export type TelemetryTrackRequest = components["schemas"]["TelemetryTrackRequest"];
|
|
26
26
|
export type TestCaseRunEndEventRequest = NonNullable<paths["/api/test-runs/events"]["put"]["requestBody"]>["content"]["application/json"];
|
|
27
27
|
export type TestReportUploadUrlsRequest = components["schemas"]["CreateTestReportUploadUrlsRequest"];
|
|
28
|
+
export type ReportLocalTestRunRequest = components["schemas"]["ReportLocalTestRunRequest"];
|
|
28
29
|
export type TestReportUploadUrlsResponse = components["schemas"]["CreateTestReportUploadUrlsResponse"];
|
|
29
30
|
export type TestCaseRunBeginEventRequest = NonNullable<paths["/api/test-runs/events/begin"]["put"]["requestBody"]>["content"]["application/json"];
|
|
30
31
|
export declare function llmProxyOpenAIConfig(): {
|
|
@@ -59,6 +60,7 @@ export declare class ApiWorkerClient {
|
|
|
59
60
|
postProviderProxy(path: ProviderProxyPath, body: ProviderProxyRequest): Promise<ProviderProxyResponse>;
|
|
60
61
|
putTestCaseRunEndEvent(body: TestCaseRunEndEventRequest): Promise<void>;
|
|
61
62
|
putTestCaseRunBeginEvent(body: TestCaseRunBeginEventRequest): Promise<void>;
|
|
63
|
+
reportLocalTestRun(body: ReportLocalTestRunRequest): Promise<void>;
|
|
62
64
|
createTestReportUploadUrls(body: TestReportUploadUrlsRequest): Promise<TestReportUploadUrlsResponse>;
|
|
63
65
|
unwrap<T>(result: {
|
|
64
66
|
data?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-worker-client.d.ts","sourceRoot":"","sources":["../src/api-worker-client.ts"],"names":[],"mappings":"AACA,OAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAExE,KAAK,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAEzC,KAAK,iBAAiB,GAClB,kBAAkB,GAClB,sBAAsB,GACtB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,oBAAoB,GAC9B,UAAU,CAAC,SAAS,CAAC,CAAC,6BAA6B,CAAC,CAAC;AACvD,MAAM,MAAM,qBAAqB,GAC/B,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAChC,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAClD,MAAM,MAAM,uBAAuB,GACjC,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,WAAW,CACnC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAC/C,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,EAAE,IAAI,CAAA;CAAE,G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,CACrB,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAKhC;IAEK,sBAAsB,CAC1B,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,IAAI,CAAC,CAGf;IAEK,wBAAwB,CAC5B,IAAI,EAAE,4BAA4B,GACjC,OAAO,CAAC,IAAI,CAAC,CAKf;IAEK,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKvE;IAEK,0BAA0B,CAC9B,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,4BAA4B,CAAC,CAKvC;IAED,MAAM,CAAC,CAAC,EACN,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,QAAQ,CAAC;KACpB,EACD,KAAK,EAAE,MAAM,GACZ,CAAC,CAUH;CACF"}
|
|
@@ -203,6 +203,12 @@ class ApiWorkerClient {
|
|
|
203
203
|
});
|
|
204
204
|
this.unwrap(result, "PUT /api/test-runs/events/begin");
|
|
205
205
|
}
|
|
206
|
+
async reportLocalTestRun(body) {
|
|
207
|
+
const result = await this.client.POST("/api/test-reports/local-runs", {
|
|
208
|
+
body,
|
|
209
|
+
});
|
|
210
|
+
this.unwrap(result, "POST /api/test-reports/local-runs");
|
|
211
|
+
}
|
|
206
212
|
async createTestReportUploadUrls(body) {
|
|
207
213
|
const result = await this.client.POST("/api/test-reports/upload-urls", {
|
|
208
214
|
body,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBzD,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAwCD,eAAO,MAAM,UAAU,EAAE,oBA2BxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAarB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.devices = exports.baseConfig = void 0;
|
|
7
7
|
exports.chromeStablePath = chromeStablePath;
|
|
8
|
+
const local_run_id_1 = require("../local-run-id");
|
|
8
9
|
const deviceDescriptorsSource_json_1 = __importDefault(require("./devices/v1.53.2/deviceDescriptorsSource.json"));
|
|
9
10
|
function getPlatformOS() {
|
|
10
11
|
const platform = process.platform;
|
|
@@ -35,6 +36,8 @@ function chromeStablePath() {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
39
|
+
const runId = (0, local_run_id_1.localRunId)();
|
|
40
|
+
const localReportDir = `playwright-report/${runId}`;
|
|
38
41
|
function getReporters() {
|
|
39
42
|
if (process.env.HAS_SHARDING && !process.env.SHARD_INDEX) {
|
|
40
43
|
throw new Error("Invalid env variables: HAS_SHARDING needs SHARD_INDEX");
|
|
@@ -46,8 +49,20 @@ function getReporters() {
|
|
|
46
49
|
],
|
|
47
50
|
]
|
|
48
51
|
: [
|
|
49
|
-
[
|
|
50
|
-
|
|
52
|
+
[
|
|
53
|
+
"html",
|
|
54
|
+
runId
|
|
55
|
+
? { open: "never", outputFolder: localReportDir }
|
|
56
|
+
: { open: "never" },
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"json",
|
|
60
|
+
{
|
|
61
|
+
outputFile: runId
|
|
62
|
+
? `${localReportDir}/summary.json`
|
|
63
|
+
: "playwright-report/summary.json",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
51
66
|
];
|
|
52
67
|
return [
|
|
53
68
|
["list"],
|
|
@@ -59,7 +74,7 @@ function getReporters() {
|
|
|
59
74
|
}
|
|
60
75
|
exports.baseConfig = {
|
|
61
76
|
testDir: "./tests",
|
|
62
|
-
outputDir: "./test-results",
|
|
77
|
+
outputDir: runId ? `./test-results/${runId}` : "./test-results",
|
|
63
78
|
reporter: getReporters(),
|
|
64
79
|
fullyParallel: true,
|
|
65
80
|
forbidOnly: false,
|
|
@@ -3983,7 +3983,7 @@ export interface paths {
|
|
|
3983
3983
|
};
|
|
3984
3984
|
/**
|
|
3985
3985
|
* List Hive agents
|
|
3986
|
-
* @description Returns the Hive agents a chat session can be created with, each at its `@latest` version. Prompts and tool lists stay in Hive.
|
|
3986
|
+
* @description Returns the Hive agents a chat session can be created with, each at its `@latest` version. Prompts and tool lists stay in Hive. With `x-project-id`, lists only the agents that project can start.
|
|
3987
3987
|
*/
|
|
3988
3988
|
get: operations["listHiveAgents"];
|
|
3989
3989
|
put?: never;
|
|
@@ -4950,26 +4950,6 @@ export interface paths {
|
|
|
4950
4950
|
patch?: never;
|
|
4951
4951
|
trace?: never;
|
|
4952
4952
|
};
|
|
4953
|
-
"/api/memories/classifications": {
|
|
4954
|
-
parameters: {
|
|
4955
|
-
query?: never;
|
|
4956
|
-
header?: never;
|
|
4957
|
-
path?: never;
|
|
4958
|
-
cookie?: never;
|
|
4959
|
-
};
|
|
4960
|
-
/**
|
|
4961
|
-
* 🛡️ Memory classifications across projects
|
|
4962
|
-
* @description Returns every stored JEV classification under one vocabulary version, for all versions of all memories (soft-deleted included). A memory's current labels are the row for its latest version; rows for older versions mean it was edited since.
|
|
4963
|
-
*/
|
|
4964
|
-
get: operations["listMemoryClassifications"];
|
|
4965
|
-
put?: never;
|
|
4966
|
-
post?: never;
|
|
4967
|
-
delete?: never;
|
|
4968
|
-
options?: never;
|
|
4969
|
-
head?: never;
|
|
4970
|
-
patch?: never;
|
|
4971
|
-
trace?: never;
|
|
4972
|
-
};
|
|
4973
4953
|
"/api/memories/usage": {
|
|
4974
4954
|
parameters: {
|
|
4975
4955
|
query?: never;
|
|
@@ -4978,8 +4958,8 @@ export interface paths {
|
|
|
4978
4958
|
cookie?: never;
|
|
4979
4959
|
};
|
|
4980
4960
|
/**
|
|
4981
|
-
* ⚙️ Most
|
|
4982
|
-
* @description Returns the scoped project's most
|
|
4961
|
+
* ⚙️ Most edited memories
|
|
4962
|
+
* @description Returns the scoped project's most edited memories over a recent window.
|
|
4983
4963
|
*/
|
|
4984
4964
|
get: operations["getMemoryUsage"];
|
|
4985
4965
|
put?: never;
|
|
@@ -6396,6 +6376,26 @@ export interface paths {
|
|
|
6396
6376
|
patch?: never;
|
|
6397
6377
|
trace?: never;
|
|
6398
6378
|
};
|
|
6379
|
+
"/api/test-reports/local-runs": {
|
|
6380
|
+
parameters: {
|
|
6381
|
+
query?: never;
|
|
6382
|
+
header?: never;
|
|
6383
|
+
path?: never;
|
|
6384
|
+
cookie?: never;
|
|
6385
|
+
};
|
|
6386
|
+
get?: never;
|
|
6387
|
+
put?: never;
|
|
6388
|
+
/**
|
|
6389
|
+
* ⚙️ Report a local test run to its session
|
|
6390
|
+
* @description Called by the Playwright reporter when a local run inside a session's sandbox ends. Posts the run's result and file locations to the session, where the agent reads them and the dashboard shows the report.
|
|
6391
|
+
*/
|
|
6392
|
+
post: operations["reportLocalTestRun"];
|
|
6393
|
+
delete?: never;
|
|
6394
|
+
options?: never;
|
|
6395
|
+
head?: never;
|
|
6396
|
+
patch?: never;
|
|
6397
|
+
trace?: never;
|
|
6398
|
+
};
|
|
6399
6399
|
"/api/test-reports/upload-urls": {
|
|
6400
6400
|
parameters: {
|
|
6401
6401
|
query?: never;
|
|
@@ -10131,6 +10131,8 @@ export interface components {
|
|
|
10131
10131
|
runtime: "sandbox" | "worker";
|
|
10132
10132
|
/** @description Model the `@latest` version pins, before any override. */
|
|
10133
10133
|
model: string;
|
|
10134
|
+
/** @description Whether a session created without `agent` runs this agent, for the project in `x-project-id` (or the default project). */
|
|
10135
|
+
is_default: boolean;
|
|
10134
10136
|
};
|
|
10135
10137
|
HiveAgentsResponse: {
|
|
10136
10138
|
/** @description Response payload. */
|
|
@@ -11030,36 +11032,6 @@ export interface components {
|
|
|
11030
11032
|
summary: components["schemas"]["MemoryChangeSummary"];
|
|
11031
11033
|
};
|
|
11032
11034
|
};
|
|
11033
|
-
MemoryClassification: {
|
|
11034
|
-
memory_id: number;
|
|
11035
|
-
/** @description Memory version number the labels apply to (v1 = create). */
|
|
11036
|
-
version: number;
|
|
11037
|
-
vocabulary_version: number;
|
|
11038
|
-
project_id: number;
|
|
11039
|
-
/** @description JEV model that answered, e.g. "jev-1.13.0". */
|
|
11040
|
-
model: string;
|
|
11041
|
-
retention: string;
|
|
11042
|
-
retention_confidence: number;
|
|
11043
|
-
subject: string;
|
|
11044
|
-
subject_confidence: number;
|
|
11045
|
-
role: string;
|
|
11046
|
-
role_confidence: number;
|
|
11047
|
-
/** @description Per-option probabilities for each axis. */
|
|
11048
|
-
probabilities: {
|
|
11049
|
-
[key: string]: {
|
|
11050
|
-
[key: string]: number;
|
|
11051
|
-
};
|
|
11052
|
-
};
|
|
11053
|
-
/** @description ISO 8601 timestamp. */
|
|
11054
|
-
classified_at: string;
|
|
11055
|
-
};
|
|
11056
|
-
MemoryClassificationsResponse: {
|
|
11057
|
-
/** @description Response payload. */
|
|
11058
|
-
data: {
|
|
11059
|
-
vocabulary_version: number;
|
|
11060
|
-
classifications: components["schemas"]["MemoryClassification"][];
|
|
11061
|
-
};
|
|
11062
|
-
};
|
|
11063
11035
|
MemoryDeleteResponse: {
|
|
11064
11036
|
/** @description Response payload. */
|
|
11065
11037
|
data: {
|
|
@@ -11082,17 +11054,6 @@ export interface components {
|
|
|
11082
11054
|
};
|
|
11083
11055
|
pagination: components["schemas"]["Pagination"];
|
|
11084
11056
|
};
|
|
11085
|
-
MemoryReadUsage: {
|
|
11086
|
-
/** @description Live memory the name resolves to now, or null if it was renamed or deleted since. */
|
|
11087
|
-
memory_id: number | null;
|
|
11088
|
-
name: string;
|
|
11089
|
-
/** @description read_memory calls. */
|
|
11090
|
-
reads: number;
|
|
11091
|
-
/** @description Distinct sessions that read it. */
|
|
11092
|
-
sessions: number;
|
|
11093
|
-
/** @description UTC day, YYYY-MM-DD. */
|
|
11094
|
-
last_read: string;
|
|
11095
|
-
};
|
|
11096
11057
|
MemoryResponse: {
|
|
11097
11058
|
/** @description Response payload. */
|
|
11098
11059
|
data: {
|
|
@@ -11103,8 +11064,6 @@ export interface components {
|
|
|
11103
11064
|
/** @description Response payload. */
|
|
11104
11065
|
data: {
|
|
11105
11066
|
days: number;
|
|
11106
|
-
/** @description Most read memories (read_memory calls counted by Hive from agent sessions), or null when Hive is unavailable. */
|
|
11107
|
-
most_read: components["schemas"]["MemoryReadUsage"][] | null;
|
|
11108
11067
|
most_edited: components["schemas"]["MemoryEditUsage"][];
|
|
11109
11068
|
};
|
|
11110
11069
|
};
|
|
@@ -11193,13 +11152,10 @@ export interface components {
|
|
|
11193
11152
|
blocked: boolean;
|
|
11194
11153
|
reason: string;
|
|
11195
11154
|
model: string | null;
|
|
11196
|
-
vocabulary_version: number | null;
|
|
11197
11155
|
retention: string | null;
|
|
11198
11156
|
retention_confidence: number | null;
|
|
11199
11157
|
/** @description Probability of the failure/incident retention class; the write is rejected at or above the gate's threshold. */
|
|
11200
11158
|
failure_incident_probability: number | null;
|
|
11201
|
-
subject: string | null;
|
|
11202
|
-
role: string | null;
|
|
11203
11159
|
} | null;
|
|
11204
11160
|
};
|
|
11205
11161
|
};
|
|
@@ -11218,13 +11174,10 @@ export interface components {
|
|
|
11218
11174
|
blocked: boolean;
|
|
11219
11175
|
reason: string;
|
|
11220
11176
|
model: string | null;
|
|
11221
|
-
vocabulary_version: number | null;
|
|
11222
11177
|
retention: string | null;
|
|
11223
11178
|
retention_confidence: number | null;
|
|
11224
11179
|
/** @description Probability of the failure/incident retention class; the write is rejected at or above the gate's threshold. */
|
|
11225
11180
|
failure_incident_probability: number | null;
|
|
11226
|
-
subject: string | null;
|
|
11227
|
-
role: string | null;
|
|
11228
11181
|
};
|
|
11229
11182
|
MergeBranchesResponse: {
|
|
11230
11183
|
/** @description Response payload. */
|
|
@@ -13012,6 +12965,35 @@ export interface components {
|
|
|
13012
12965
|
updated_at: string | null;
|
|
13013
12966
|
};
|
|
13014
12967
|
};
|
|
12968
|
+
ReportLocalTestRunRequest: {
|
|
12969
|
+
/** @description Tool call that ran the tests (`EMPIRICAL_TOOL_CALL_ID`). */
|
|
12970
|
+
tool_call_id: string;
|
|
12971
|
+
/** @description Local run ID (`EMPIRICAL_LOCAL_RUN_ID`). */
|
|
12972
|
+
run_id: string;
|
|
12973
|
+
/** @enum {string} */
|
|
12974
|
+
status: "passed" | "failed" | "timedout" | "interrupted";
|
|
12975
|
+
counts: {
|
|
12976
|
+
passed: number;
|
|
12977
|
+
failed: number;
|
|
12978
|
+
flaky: number;
|
|
12979
|
+
skipped: number;
|
|
12980
|
+
};
|
|
12981
|
+
/** Format: uri */
|
|
12982
|
+
report_url: string | null;
|
|
12983
|
+
/** Format: uri */
|
|
12984
|
+
summary_url: string | null;
|
|
12985
|
+
/** @description Absolute paths of the run's Playwright output folders (one per project outputDir). */
|
|
12986
|
+
output_dirs: string[];
|
|
12987
|
+
/** @description Absolute path of the run's HTML report folder. */
|
|
12988
|
+
report_dir: string;
|
|
12989
|
+
};
|
|
12990
|
+
ReportLocalTestRunResponse: {
|
|
12991
|
+
/** @description Response payload. */
|
|
12992
|
+
data: {
|
|
12993
|
+
/** @enum {boolean} */
|
|
12994
|
+
delivered: true;
|
|
12995
|
+
};
|
|
12996
|
+
};
|
|
13015
12997
|
ReportPlatformIssueRequest: {
|
|
13016
12998
|
/**
|
|
13017
12999
|
* @description `bug`: the platform misbehaves and the memory holds a workaround; fixed in code. `missing_from_skill`: platform how-to that no skill covers; fixed by updating a skill.
|
|
@@ -24881,7 +24863,7 @@ export interface operations {
|
|
|
24881
24863
|
content: {
|
|
24882
24864
|
"application/json": {
|
|
24883
24865
|
message?: string | null;
|
|
24884
|
-
/** @description Hive agent to run, as `<name>` (its `@latest` version) or `<name>@<version>`, e.g. `main@
|
|
24866
|
+
/** @description Hive agent to run, as `<name>` (its `@latest` version) or `<name>@<version>`, e.g. `main-worker@2`. Defaults to `main-worker`. Rejected with a 400 when Hive does not serve that agent or version, or when it runs on the retired sandbox runtime. The agent version decides the runtime, model, tools and prompt; `model` still overrides its model. List agents with `GET /api/hive/agents`. */
|
|
24885
24867
|
agent?: string | null;
|
|
24886
24868
|
/**
|
|
24887
24869
|
* @deprecated
|
|
@@ -28083,6 +28065,24 @@ export interface operations {
|
|
|
28083
28065
|
"application/json": components["schemas"]["HiveAgentsResponse"];
|
|
28084
28066
|
};
|
|
28085
28067
|
};
|
|
28068
|
+
/** @description The `x-project-id` header is invalid. */
|
|
28069
|
+
400: {
|
|
28070
|
+
headers: {
|
|
28071
|
+
[name: string]: unknown;
|
|
28072
|
+
};
|
|
28073
|
+
content: {
|
|
28074
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
28075
|
+
};
|
|
28076
|
+
};
|
|
28077
|
+
/** @description The project in `x-project-id` was not found. */
|
|
28078
|
+
404: {
|
|
28079
|
+
headers: {
|
|
28080
|
+
[name: string]: unknown;
|
|
28081
|
+
};
|
|
28082
|
+
content: {
|
|
28083
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
28084
|
+
};
|
|
28085
|
+
};
|
|
28086
28086
|
/** @description Hive is not configured or the request failed. */
|
|
28087
28087
|
500: {
|
|
28088
28088
|
headers: {
|
|
@@ -30630,46 +30630,12 @@ export interface operations {
|
|
|
30630
30630
|
};
|
|
30631
30631
|
};
|
|
30632
30632
|
};
|
|
30633
|
-
listMemoryClassifications: {
|
|
30634
|
-
parameters: {
|
|
30635
|
-
query?: {
|
|
30636
|
-
/** @description Limit to memories in this project. Defaults to all projects. */
|
|
30637
|
-
project_id?: number;
|
|
30638
|
-
/** @description Vocabulary version to read labels for. Defaults to the current vocabulary. */
|
|
30639
|
-
vocabulary_version?: number;
|
|
30640
|
-
};
|
|
30641
|
-
header?: never;
|
|
30642
|
-
path?: never;
|
|
30643
|
-
cookie?: never;
|
|
30644
|
-
};
|
|
30645
|
-
requestBody?: never;
|
|
30646
|
-
responses: {
|
|
30647
|
-
/** @description Memory classifications. */
|
|
30648
|
-
200: {
|
|
30649
|
-
headers: {
|
|
30650
|
-
[name: string]: unknown;
|
|
30651
|
-
};
|
|
30652
|
-
content: {
|
|
30653
|
-
"application/json": components["schemas"]["MemoryClassificationsResponse"];
|
|
30654
|
-
};
|
|
30655
|
-
};
|
|
30656
|
-
/** @description Invalid request. */
|
|
30657
|
-
400: {
|
|
30658
|
-
headers: {
|
|
30659
|
-
[name: string]: unknown;
|
|
30660
|
-
};
|
|
30661
|
-
content: {
|
|
30662
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
30663
|
-
};
|
|
30664
|
-
};
|
|
30665
|
-
};
|
|
30666
|
-
};
|
|
30667
30633
|
getMemoryUsage: {
|
|
30668
30634
|
parameters: {
|
|
30669
30635
|
query?: {
|
|
30670
30636
|
/** @description Window in days back from now. Defaults to 7. */
|
|
30671
30637
|
days?: number;
|
|
30672
|
-
/** @description Rows per list. Defaults to 10. */
|
|
30638
|
+
/** @description Rows per list, up to 500. Defaults to 10. */
|
|
30673
30639
|
limit?: number;
|
|
30674
30640
|
};
|
|
30675
30641
|
header?: never;
|
|
@@ -34354,6 +34320,39 @@ export interface operations {
|
|
|
34354
34320
|
};
|
|
34355
34321
|
};
|
|
34356
34322
|
};
|
|
34323
|
+
reportLocalTestRun: {
|
|
34324
|
+
parameters: {
|
|
34325
|
+
query?: never;
|
|
34326
|
+
header?: never;
|
|
34327
|
+
path?: never;
|
|
34328
|
+
cookie?: never;
|
|
34329
|
+
};
|
|
34330
|
+
requestBody?: {
|
|
34331
|
+
content: {
|
|
34332
|
+
"application/json": components["schemas"]["ReportLocalTestRunRequest"];
|
|
34333
|
+
};
|
|
34334
|
+
};
|
|
34335
|
+
responses: {
|
|
34336
|
+
/** @description Delivered to the session. */
|
|
34337
|
+
200: {
|
|
34338
|
+
headers: {
|
|
34339
|
+
[name: string]: unknown;
|
|
34340
|
+
};
|
|
34341
|
+
content: {
|
|
34342
|
+
"application/json": components["schemas"]["ReportLocalTestRunResponse"];
|
|
34343
|
+
};
|
|
34344
|
+
};
|
|
34345
|
+
/** @description Invalid request, or the caller is not a session. */
|
|
34346
|
+
400: {
|
|
34347
|
+
headers: {
|
|
34348
|
+
[name: string]: unknown;
|
|
34349
|
+
};
|
|
34350
|
+
content: {
|
|
34351
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
34352
|
+
};
|
|
34353
|
+
};
|
|
34354
|
+
};
|
|
34355
|
+
};
|
|
34357
34356
|
createTestReportUploadUrls: {
|
|
34358
34357
|
parameters: {
|
|
34359
34358
|
query?: never;
|