agent-relay 6.0.15 → 6.0.16
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.cjs +54 -33
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -10815,8 +10815,10 @@ ${cb}` : comment;
|
|
|
10815
10815
|
}
|
|
10816
10816
|
}
|
|
10817
10817
|
if (afterDoc) {
|
|
10818
|
-
|
|
10819
|
-
|
|
10818
|
+
for (let i = 0; i < this.errors.length; ++i)
|
|
10819
|
+
doc.errors.push(this.errors[i]);
|
|
10820
|
+
for (let i = 0; i < this.warnings.length; ++i)
|
|
10821
|
+
doc.warnings.push(this.warnings[i]);
|
|
10820
10822
|
} else {
|
|
10821
10823
|
doc.errors = this.errors;
|
|
10822
10824
|
doc.warnings = this.warnings;
|
|
@@ -11549,7 +11551,7 @@ var require_lexer = __commonJS({
|
|
|
11549
11551
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
11550
11552
|
this.indentNext = this.indentValue + 1;
|
|
11551
11553
|
this.indentValue += n;
|
|
11552
|
-
return
|
|
11554
|
+
return "block-start";
|
|
11553
11555
|
}
|
|
11554
11556
|
return "doc";
|
|
11555
11557
|
}
|
|
@@ -11848,28 +11850,38 @@ var require_lexer = __commonJS({
|
|
|
11848
11850
|
return 0;
|
|
11849
11851
|
}
|
|
11850
11852
|
*pushIndicators() {
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11853
|
+
let n = 0;
|
|
11854
|
+
loop: while (true) {
|
|
11855
|
+
switch (this.charAt(0)) {
|
|
11856
|
+
case "!":
|
|
11857
|
+
n += yield* this.pushTag();
|
|
11858
|
+
n += yield* this.pushSpaces(true);
|
|
11859
|
+
continue loop;
|
|
11860
|
+
case "&":
|
|
11861
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
11862
|
+
n += yield* this.pushSpaces(true);
|
|
11863
|
+
continue loop;
|
|
11864
|
+
case "-":
|
|
11865
|
+
// this is an error
|
|
11866
|
+
case "?":
|
|
11867
|
+
// this is an error outside flow collections
|
|
11868
|
+
case ":": {
|
|
11869
|
+
const inFlow = this.flowLevel > 0;
|
|
11870
|
+
const ch1 = this.charAt(1);
|
|
11871
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
11872
|
+
if (!inFlow)
|
|
11873
|
+
this.indentNext = this.indentValue + 1;
|
|
11874
|
+
else if (this.flowKey)
|
|
11875
|
+
this.flowKey = false;
|
|
11876
|
+
n += yield* this.pushCount(1);
|
|
11877
|
+
n += yield* this.pushSpaces(true);
|
|
11878
|
+
continue loop;
|
|
11879
|
+
}
|
|
11869
11880
|
}
|
|
11870
11881
|
}
|
|
11882
|
+
break loop;
|
|
11871
11883
|
}
|
|
11872
|
-
return
|
|
11884
|
+
return n;
|
|
11873
11885
|
}
|
|
11874
11886
|
*pushTag() {
|
|
11875
11887
|
if (this.charAt(1) === "<") {
|
|
@@ -12028,6 +12040,13 @@ var require_parser = __commonJS({
|
|
|
12028
12040
|
}
|
|
12029
12041
|
return prev.splice(i, prev.length);
|
|
12030
12042
|
}
|
|
12043
|
+
function arrayPushArray(target, source) {
|
|
12044
|
+
if (source.length < 1e5)
|
|
12045
|
+
Array.prototype.push.apply(target, source);
|
|
12046
|
+
else
|
|
12047
|
+
for (let i = 0; i < source.length; ++i)
|
|
12048
|
+
target.push(source[i]);
|
|
12049
|
+
}
|
|
12031
12050
|
function fixFlowSeqItems(fc) {
|
|
12032
12051
|
if (fc.start.type === "flow-seq-start") {
|
|
12033
12052
|
for (const it2 of fc.items) {
|
|
@@ -12037,11 +12056,11 @@ var require_parser = __commonJS({
|
|
|
12037
12056
|
delete it2.key;
|
|
12038
12057
|
if (isFlowToken(it2.value)) {
|
|
12039
12058
|
if (it2.value.end)
|
|
12040
|
-
|
|
12059
|
+
arrayPushArray(it2.value.end, it2.sep);
|
|
12041
12060
|
else
|
|
12042
12061
|
it2.value.end = it2.sep;
|
|
12043
12062
|
} else
|
|
12044
|
-
|
|
12063
|
+
arrayPushArray(it2.start, it2.sep);
|
|
12045
12064
|
delete it2.sep;
|
|
12046
12065
|
}
|
|
12047
12066
|
}
|
|
@@ -12396,7 +12415,7 @@ var require_parser = __commonJS({
|
|
|
12396
12415
|
const prev = map2.items[map2.items.length - 2];
|
|
12397
12416
|
const end = prev?.value?.end;
|
|
12398
12417
|
if (Array.isArray(end)) {
|
|
12399
|
-
|
|
12418
|
+
arrayPushArray(end, it2.start);
|
|
12400
12419
|
end.push(this.sourceToken);
|
|
12401
12420
|
map2.items.pop();
|
|
12402
12421
|
return;
|
|
@@ -12584,7 +12603,7 @@ var require_parser = __commonJS({
|
|
|
12584
12603
|
const prev = seq.items[seq.items.length - 2];
|
|
12585
12604
|
const end = prev?.value?.end;
|
|
12586
12605
|
if (Array.isArray(end)) {
|
|
12587
|
-
|
|
12606
|
+
arrayPushArray(end, it2.start);
|
|
12588
12607
|
end.push(this.sourceToken);
|
|
12589
12608
|
seq.items.pop();
|
|
12590
12609
|
return;
|
|
@@ -43634,7 +43653,7 @@ var AgentRelayClient = class _AgentRelayClient {
|
|
|
43634
43653
|
stdoutLines,
|
|
43635
43654
|
stderrLines
|
|
43636
43655
|
});
|
|
43637
|
-
|
|
43656
|
+
drainBrokerStdioAfterStartup(child);
|
|
43638
43657
|
const client = new _AgentRelayClient({
|
|
43639
43658
|
baseUrl,
|
|
43640
43659
|
apiKey,
|
|
@@ -43933,12 +43952,14 @@ async function waitForApiUrl(child, timeoutMs, debug) {
|
|
|
43933
43952
|
});
|
|
43934
43953
|
});
|
|
43935
43954
|
}
|
|
43936
|
-
function
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43940
|
-
|
|
43941
|
-
|
|
43955
|
+
function drainBrokerStdioAfterStartup(child) {
|
|
43956
|
+
for (const stream of [child.stdout, child.stderr]) {
|
|
43957
|
+
if (!stream)
|
|
43958
|
+
continue;
|
|
43959
|
+
stream.on("data", () => {
|
|
43960
|
+
});
|
|
43961
|
+
stream.resume();
|
|
43962
|
+
}
|
|
43942
43963
|
}
|
|
43943
43964
|
function pushBufferedLine(lines, line) {
|
|
43944
43965
|
lines.push(line);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.16",
|
|
4
4
|
"description": "Real-time agent-to-agent communication system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -130,14 +130,14 @@
|
|
|
130
130
|
},
|
|
131
131
|
"homepage": "https://github.com/AgentWorkforce/relay#readme",
|
|
132
132
|
"dependencies": {
|
|
133
|
-
"@agent-relay/cloud": "6.0.
|
|
134
|
-
"@agent-relay/config": "6.0.
|
|
135
|
-
"@agent-relay/hooks": "6.0.
|
|
136
|
-
"@agent-relay/sdk": "6.0.
|
|
137
|
-
"@agent-relay/telemetry": "6.0.
|
|
138
|
-
"@agent-relay/trajectory": "6.0.
|
|
139
|
-
"@agent-relay/user-directory": "6.0.
|
|
140
|
-
"@agent-relay/utils": "6.0.
|
|
133
|
+
"@agent-relay/cloud": "6.0.16",
|
|
134
|
+
"@agent-relay/config": "6.0.16",
|
|
135
|
+
"@agent-relay/hooks": "6.0.16",
|
|
136
|
+
"@agent-relay/sdk": "6.0.16",
|
|
137
|
+
"@agent-relay/telemetry": "6.0.16",
|
|
138
|
+
"@agent-relay/trajectory": "6.0.16",
|
|
139
|
+
"@agent-relay/user-directory": "6.0.16",
|
|
140
|
+
"@agent-relay/utils": "6.0.16",
|
|
141
141
|
"@aws-sdk/client-s3": "3.1020.0",
|
|
142
142
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
143
143
|
"@relayauth/core": "^0.1.2",
|