@sjawhar/claude-envoy 1.29.0 → 1.30.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/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/dist/dispatch.js +15 -2
- package/dist/envoy-channel.js +16 -3
- package/dist/session-hook.js +15 -2
- package/package.json +1 -1
package/.omp-plugin/plugin.json
CHANGED
package/dist/dispatch.js
CHANGED
|
@@ -14632,6 +14632,17 @@ var IDEMPOTENCY_KEY_TTL_MS = 24 * 60 * 60 * 1000;
|
|
|
14632
14632
|
var IDEMPOTENCY_LEASE_MS = 60 * 1000;
|
|
14633
14633
|
var DELIVERY_DUPLICATE_WINDOW_MS = 72 * 60 * 60 * 1000;
|
|
14634
14634
|
var SEARCH_DEGRADED_EMBEDDER_UNAVAILABLE = "embedder_unavailable";
|
|
14635
|
+
var SEARCH_MEMBERS_EVERY_BUILD_READS = [
|
|
14636
|
+
"q",
|
|
14637
|
+
"project",
|
|
14638
|
+
"limit",
|
|
14639
|
+
"offset",
|
|
14640
|
+
"session"
|
|
14641
|
+
];
|
|
14642
|
+
function everyBuildReadsSearch(request) {
|
|
14643
|
+
const read = SEARCH_MEMBERS_EVERY_BUILD_READS;
|
|
14644
|
+
return Object.entries(request).every(([member, value]) => value === undefined || read.includes(member));
|
|
14645
|
+
}
|
|
14635
14646
|
var IssueDeployedEventPayloadSchema = strictObject({
|
|
14636
14647
|
repo: string2(),
|
|
14637
14648
|
number: number2().int().positive(),
|
|
@@ -18073,7 +18084,9 @@ class DispatchClient {
|
|
|
18073
18084
|
]);
|
|
18074
18085
|
}
|
|
18075
18086
|
async search(query, options = {}) {
|
|
18076
|
-
|
|
18087
|
+
const request = { q: query, ...options };
|
|
18088
|
+
const path = everyBuildReadsSearch(request) ? ["api", "v1", "search"] : ["api", "v1", "search", "results"];
|
|
18089
|
+
return this.#json("GET", path, undefined, request);
|
|
18077
18090
|
}
|
|
18078
18091
|
async related(project, input) {
|
|
18079
18092
|
return this.#json("POST", ["api", "v1", "projects", project, "related"], input);
|
|
@@ -18600,7 +18613,7 @@ class DispatchClient {
|
|
|
18600
18613
|
const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
|
|
18601
18614
|
if (query) {
|
|
18602
18615
|
for (const [name, value] of Object.entries(query)) {
|
|
18603
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
18616
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
18604
18617
|
url.searchParams.set(name, String(value));
|
|
18605
18618
|
} else if (Array.isArray(value)) {
|
|
18606
18619
|
for (const item of value)
|
package/dist/envoy-channel.js
CHANGED
|
@@ -36281,6 +36281,17 @@ var IDEMPOTENCY_KEY_TTL_MS = 24 * 60 * 60 * 1000;
|
|
|
36281
36281
|
var IDEMPOTENCY_LEASE_MS = 60 * 1000;
|
|
36282
36282
|
var DELIVERY_DUPLICATE_WINDOW_MS = 72 * 60 * 60 * 1000;
|
|
36283
36283
|
var SEARCH_DEGRADED_EMBEDDER_UNAVAILABLE = "embedder_unavailable";
|
|
36284
|
+
var SEARCH_MEMBERS_EVERY_BUILD_READS = [
|
|
36285
|
+
"q",
|
|
36286
|
+
"project",
|
|
36287
|
+
"limit",
|
|
36288
|
+
"offset",
|
|
36289
|
+
"session"
|
|
36290
|
+
];
|
|
36291
|
+
function everyBuildReadsSearch(request) {
|
|
36292
|
+
const read = SEARCH_MEMBERS_EVERY_BUILD_READS;
|
|
36293
|
+
return Object.entries(request).every(([member, value]) => value === undefined || read.includes(member));
|
|
36294
|
+
}
|
|
36284
36295
|
var IssueDeployedEventPayloadSchema = strictObject({
|
|
36285
36296
|
repo: string2(),
|
|
36286
36297
|
number: number2().int().positive(),
|
|
@@ -42558,7 +42569,9 @@ class DispatchClient {
|
|
|
42558
42569
|
]);
|
|
42559
42570
|
}
|
|
42560
42571
|
async search(query, options = {}) {
|
|
42561
|
-
|
|
42572
|
+
const request = { q: query, ...options };
|
|
42573
|
+
const path = everyBuildReadsSearch(request) ? ["api", "v1", "search"] : ["api", "v1", "search", "results"];
|
|
42574
|
+
return this.#json("GET", path, undefined, request);
|
|
42562
42575
|
}
|
|
42563
42576
|
async related(project, input) {
|
|
42564
42577
|
return this.#json("POST", ["api", "v1", "projects", project, "related"], input);
|
|
@@ -43085,7 +43098,7 @@ class DispatchClient {
|
|
|
43085
43098
|
const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
|
|
43086
43099
|
if (query) {
|
|
43087
43100
|
for (const [name, value] of Object.entries(query)) {
|
|
43088
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
43101
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
43089
43102
|
url.searchParams.set(name, String(value));
|
|
43090
43103
|
} else if (Array.isArray(value)) {
|
|
43091
43104
|
for (const item of value)
|
|
@@ -55391,7 +55404,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
55391
55404
|
|
|
55392
55405
|
// package.json
|
|
55393
55406
|
var name = "@sjawhar/claude-envoy";
|
|
55394
|
-
var version2 = "1.
|
|
55407
|
+
var version2 = "1.30.0";
|
|
55395
55408
|
var legion = {
|
|
55396
55409
|
daemonApiVersion: 59
|
|
55397
55410
|
};
|
package/dist/session-hook.js
CHANGED
|
@@ -13631,6 +13631,17 @@ var IDEMPOTENCY_KEY_TTL_MS = 24 * 60 * 60 * 1000;
|
|
|
13631
13631
|
var IDEMPOTENCY_LEASE_MS = 60 * 1000;
|
|
13632
13632
|
var DELIVERY_DUPLICATE_WINDOW_MS = 72 * 60 * 60 * 1000;
|
|
13633
13633
|
var SEARCH_DEGRADED_EMBEDDER_UNAVAILABLE = "embedder_unavailable";
|
|
13634
|
+
var SEARCH_MEMBERS_EVERY_BUILD_READS = [
|
|
13635
|
+
"q",
|
|
13636
|
+
"project",
|
|
13637
|
+
"limit",
|
|
13638
|
+
"offset",
|
|
13639
|
+
"session"
|
|
13640
|
+
];
|
|
13641
|
+
function everyBuildReadsSearch(request) {
|
|
13642
|
+
const read = SEARCH_MEMBERS_EVERY_BUILD_READS;
|
|
13643
|
+
return Object.entries(request).every(([member, value]) => value === undefined || read.includes(member));
|
|
13644
|
+
}
|
|
13634
13645
|
var IssueDeployedEventPayloadSchema = strictObject({
|
|
13635
13646
|
repo: string2(),
|
|
13636
13647
|
number: number2().int().positive(),
|
|
@@ -17077,7 +17088,9 @@ class DispatchClient {
|
|
|
17077
17088
|
]);
|
|
17078
17089
|
}
|
|
17079
17090
|
async search(query, options = {}) {
|
|
17080
|
-
|
|
17091
|
+
const request = { q: query, ...options };
|
|
17092
|
+
const path = everyBuildReadsSearch(request) ? ["api", "v1", "search"] : ["api", "v1", "search", "results"];
|
|
17093
|
+
return this.#json("GET", path, undefined, request);
|
|
17081
17094
|
}
|
|
17082
17095
|
async related(project, input) {
|
|
17083
17096
|
return this.#json("POST", ["api", "v1", "projects", project, "related"], input);
|
|
@@ -17604,7 +17617,7 @@ class DispatchClient {
|
|
|
17604
17617
|
const url = new URL(`${path.map((segment) => encodeURIComponent(segment)).join("/")}`, `${this.#baseUrl}/`);
|
|
17605
17618
|
if (query) {
|
|
17606
17619
|
for (const [name, value] of Object.entries(query)) {
|
|
17607
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
17620
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
17608
17621
|
url.searchParams.set(name, String(value));
|
|
17609
17622
|
} else if (Array.isArray(value)) {
|
|
17610
17623
|
for (const item of value)
|