@proofline/sdk 5.5.0 → 5.6.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/dist/index.js +6 -2
- package/dist/schema.d.ts +2 -2
- package/dist/transport.js +1 -1
- package/openapi.public.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ export class ProoflineClient extends Operations {
|
|
|
45
45
|
throw protocol("the review page has no typed collection metadata");
|
|
46
46
|
for (const item of page.items) {
|
|
47
47
|
if (count >= maxItems)
|
|
48
|
-
throw
|
|
48
|
+
throw paginationLimit("the review collection exceeds maxItems");
|
|
49
49
|
count += 1;
|
|
50
50
|
yield item;
|
|
51
51
|
}
|
|
@@ -61,7 +61,7 @@ export class ProoflineClient extends Operations {
|
|
|
61
61
|
seen.add(page.next_cursor);
|
|
62
62
|
cursor = page.next_cursor;
|
|
63
63
|
}
|
|
64
|
-
throw
|
|
64
|
+
throw paginationLimit("the review collection exceeds maxPages");
|
|
65
65
|
}
|
|
66
66
|
async waitForReview(orgId, reviewId, options = {}) {
|
|
67
67
|
const timeout = options.timeoutMs ?? 20 * 60_000;
|
|
@@ -106,6 +106,10 @@ import { ProoflineError } from "./transport.js";
|
|
|
106
106
|
function protocol(detail) {
|
|
107
107
|
return new ProoflineError(0, "urn:proofline:sdk:invalid-response", detail);
|
|
108
108
|
}
|
|
109
|
+
// A caller's bound, not a server fault: the collection continues past it.
|
|
110
|
+
function paginationLimit(detail) {
|
|
111
|
+
return new ProoflineError(0, "urn:proofline:sdk:pagination-limit", detail);
|
|
112
|
+
}
|
|
109
113
|
function integerLimit(value, name) {
|
|
110
114
|
if (!Number.isSafeInteger(value) || value <= 0)
|
|
111
115
|
throw new TypeError(`${name} must be a positive integer`);
|
package/dist/schema.d.ts
CHANGED
|
@@ -2350,7 +2350,7 @@ export interface components {
|
|
|
2350
2350
|
* by an earlier identical request keeps the source it recorded.
|
|
2351
2351
|
* @default null
|
|
2352
2352
|
*/
|
|
2353
|
-
trigger_source
|
|
2353
|
+
trigger_source?: components["schemas"]["PatchTriggerSource"] | null;
|
|
2354
2354
|
/**
|
|
2355
2355
|
* @description Open findings of one pull request in this repository to re-verify
|
|
2356
2356
|
* against the patch, at most 20. The review re-investigates each one
|
|
@@ -2361,7 +2361,7 @@ export interface components {
|
|
|
2361
2361
|
* counted with those a coding agent makes through MCP.
|
|
2362
2362
|
* @default []
|
|
2363
2363
|
*/
|
|
2364
|
-
verify_finding_ids
|
|
2364
|
+
verify_finding_ids?: string[];
|
|
2365
2365
|
};
|
|
2366
2366
|
/** @description What a patch review request produced. */
|
|
2367
2367
|
PatchReviewResponse: {
|
package/dist/transport.js
CHANGED
package/openapi.public.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proofline/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "Typed clients for the token-scoped Proofline review API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"openapi.public.json"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
|
-
"generate": "openapi-typescript openapi.public.json -o src/schema.d.ts && node generate.mjs",
|
|
31
|
+
"generate": "openapi-typescript openapi.public.json --default-non-nullable=false -o src/schema.d.ts && node generate.mjs",
|
|
32
32
|
"build": "node -e \"require('node:fs').rmSync('dist', {recursive: true, force: true})\" && tsc && node -e \"const fs=require('node:fs'); fs.copyFileSync('src/schema.d.ts', 'dist/schema.d.ts')\"",
|
|
33
33
|
"typecheck": "tsc --noEmit",
|
|
34
34
|
"test": "node --test tests/*.test.mjs",
|