@sjawhar/opencode-legion-envoy 0.26.0 → 0.28.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/src/server.js +8 -2
- package/package.json +1 -1
package/dist/src/server.js
CHANGED
|
@@ -14322,6 +14322,9 @@ class DispatchClient {
|
|
|
14322
14322
|
async issue(input) {
|
|
14323
14323
|
return this.#json("POST", ["api", "v1", "issues"], input);
|
|
14324
14324
|
}
|
|
14325
|
+
async listIssues(options = {}) {
|
|
14326
|
+
return this.#json("GET", ["api", "v1", "issues"], undefined, options);
|
|
14327
|
+
}
|
|
14325
14328
|
async getIssue(issue) {
|
|
14326
14329
|
return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue)]);
|
|
14327
14330
|
}
|
|
@@ -14465,8 +14468,11 @@ class DispatchClient {
|
|
|
14465
14468
|
#url(path, query) {
|
|
14466
14469
|
const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
|
|
14467
14470
|
if (query) {
|
|
14468
|
-
for (const [name, value] of Object.entries(query))
|
|
14469
|
-
|
|
14471
|
+
for (const [name, value] of Object.entries(query)) {
|
|
14472
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
14473
|
+
url.searchParams.set(name, String(value));
|
|
14474
|
+
}
|
|
14475
|
+
}
|
|
14470
14476
|
}
|
|
14471
14477
|
return url.toString();
|
|
14472
14478
|
}
|