@sjawhar/pi-legion-envoy 5.5.10 → 5.5.11
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/envoy.js +1 -4
- package/dist/legion.js +2 -6
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -30517,11 +30517,8 @@ var phaseHandoffSchema = exports_external.discriminatedUnion("phase", [
|
|
|
30517
30517
|
var AGENT_TOPIC_PREFIX = "notifications.agent.";
|
|
30518
30518
|
var ROLE_TOPIC_PREFIX = "notifications.role.";
|
|
30519
30519
|
var LEGION_NOTICE_TOPIC_PREFIX = "notifications.legion.";
|
|
30520
|
-
function legionNoticeSubject(project, issue2) {
|
|
30521
|
-
return `${LEGION_NOTICE_TOPIC_PREFIX}${project}.${issue2}`;
|
|
30522
|
-
}
|
|
30523
30520
|
function legionControllerNoticeSubject(project) {
|
|
30524
|
-
return
|
|
30521
|
+
return `${LEGION_NOTICE_TOPIC_PREFIX}${project}.controller`;
|
|
30525
30522
|
}
|
|
30526
30523
|
var DISPATCH_TOPIC_PREFIX = "notifications.dispatch.";
|
|
30527
30524
|
var DISPATCH_ISSUE_TOPIC_PREFIX = `${DISPATCH_TOPIC_PREFIX}issue.`;
|
package/dist/legion.js
CHANGED
|
@@ -16142,7 +16142,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
16142
16142
|
// package.json
|
|
16143
16143
|
var package_default = {
|
|
16144
16144
|
name: "@sjawhar/pi-legion-envoy",
|
|
16145
|
-
version: "5.5.
|
|
16145
|
+
version: "5.5.11",
|
|
16146
16146
|
type: "module",
|
|
16147
16147
|
omp: {
|
|
16148
16148
|
extensions: [
|
|
@@ -30590,11 +30590,8 @@ var phaseHandoffSchema = exports_external.discriminatedUnion("phase", [
|
|
|
30590
30590
|
var AGENT_TOPIC_PREFIX = "notifications.agent.";
|
|
30591
30591
|
var ROLE_TOPIC_PREFIX = "notifications.role.";
|
|
30592
30592
|
var LEGION_NOTICE_TOPIC_PREFIX = "notifications.legion.";
|
|
30593
|
-
function legionNoticeSubject(project, issue2) {
|
|
30594
|
-
return `${LEGION_NOTICE_TOPIC_PREFIX}${project}.${issue2}`;
|
|
30595
|
-
}
|
|
30596
30593
|
function legionControllerNoticeSubject(project) {
|
|
30597
|
-
return
|
|
30594
|
+
return `${LEGION_NOTICE_TOPIC_PREFIX}${project}.controller`;
|
|
30598
30595
|
}
|
|
30599
30596
|
var DISPATCH_TOPIC_PREFIX = "notifications.dispatch.";
|
|
30600
30597
|
var DISPATCH_ISSUE_TOPIC_PREFIX = `${DISPATCH_TOPIC_PREFIX}issue.`;
|
|
@@ -31852,7 +31849,6 @@ async function bootstrapGoClaim(context, state) {
|
|
|
31852
31849
|
secret: claim.secret
|
|
31853
31850
|
});
|
|
31854
31851
|
await claimEnvoyRole(sessionID, claim.claimToken, context);
|
|
31855
|
-
await subscribeLegionNotice(sessionID, legionNoticeSubject(requiredEnvironment(process.env, "LEGION_PROJECT"), claim.role === "architect" ? claim.tree : claim.issue), context);
|
|
31856
31852
|
await callGoReadyWithRetry("claims/ready", () => daemon.ready(ready));
|
|
31857
31853
|
onEnvoyRoleRegained(async (role, reason) => {
|
|
31858
31854
|
if (role !== claim.claimToken)
|