pi-fabric 0.129.0 → 0.129.1
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/chunks/{chunk-O7YKXJOG.js → chunk-4A5CBMB6.js} +17 -2
- package/dist/chunks/{chunk-O7YKXJOG.js.map → chunk-4A5CBMB6.js.map} +2 -2
- package/dist/chunks/{chunk-L5SULLDY.js → chunk-6ZFEC5I4.js} +1 -1
- package/dist/chunks/{chunk-NVTQDYZ4.js → chunk-K6D76ZIX.js} +3 -3
- package/dist/chunks/{chunk-BTHPGT27.js → chunk-MVFC6GQF.js} +2 -2
- package/dist/chunks/{chunk-4ZUMD27O.js → chunk-TWQQMBG7.js} +8 -3
- package/dist/chunks/{chunk-4ZUMD27O.js.map → chunk-TWQQMBG7.js.map} +2 -2
- package/dist/cli/decisions.js +1 -1
- package/dist/cli/mesh.js +2 -2
- package/dist/durable-extension.d.ts +1 -1
- package/dist/durable-extension.js +1 -1
- package/dist/durable-extension.js.map +1 -1
- package/dist/extension-bootstrap.js +1 -1
- package/dist/fabric-runtime-state.js +3 -3
- package/dist/index.js +1 -1
- package/dist/mesh/store.d.ts.map +1 -1
- package/dist/residency/host.js +3 -3
- package/dist/residency/pi-entry.js +3 -3
- package/dist/runtime/cpython-runtime.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.js +21 -13
- package/dist/runtime/cpython-runtime.js.map +2 -2
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-L5SULLDY.js.map → chunk-6ZFEC5I4.js.map} +0 -0
- /package/dist/chunks/{chunk-NVTQDYZ4.js.map → chunk-K6D76ZIX.js.map} +0 -0
- /package/dist/chunks/{chunk-BTHPGT27.js.map → chunk-MVFC6GQF.js.map} +0 -0
|
@@ -7743,10 +7743,25 @@ var ParticipantDirectory = class {
|
|
|
7743
7743
|
}
|
|
7744
7744
|
get(id, now = Date.now()) {
|
|
7745
7745
|
const target = id === "main" ? this.options.rootId : id;
|
|
7746
|
+
if (this.options.enabled) {
|
|
7747
|
+
const participant = this.#participant(target);
|
|
7748
|
+
if (participant) {
|
|
7749
|
+
const entry = this.mesh.get(keyFor(HOST_PREFIX, participant.ownerHostId));
|
|
7750
|
+
const owner = entry && hostFromEntry(entry);
|
|
7751
|
+
if (owner && liveOwner(participant, /* @__PURE__ */ new Map([[owner.id, owner]]), now)) {
|
|
7752
|
+
return { ...participant, local: participant.ownerHostId === this.options.hostId, stale: false };
|
|
7753
|
+
}
|
|
7754
|
+
}
|
|
7755
|
+
}
|
|
7746
7756
|
return this.list({ scope: "project" }, now).find((participant) => participant.id === target);
|
|
7747
7757
|
}
|
|
7758
|
+
#participant(id) {
|
|
7759
|
+
const entry = this.mesh.get(keyFor(PARTICIPANT_PREFIX, id));
|
|
7760
|
+
const participant = entry && participantFromEntry(entry);
|
|
7761
|
+
return participant?.id === id ? participant : void 0;
|
|
7762
|
+
}
|
|
7748
7763
|
self(now = Date.now()) {
|
|
7749
|
-
const existing = this.#localRecords.get(this.options.identity.id) ?? this
|
|
7764
|
+
const existing = this.#localRecords.get(this.options.identity.id) ?? this.#participant(this.options.identity.id);
|
|
7750
7765
|
if (existing) {
|
|
7751
7766
|
return {
|
|
7752
7767
|
...existing,
|
|
@@ -8139,4 +8154,4 @@ export {
|
|
|
8139
8154
|
agentParticipantRecords,
|
|
8140
8155
|
actorParticipantRecord
|
|
8141
8156
|
};
|
|
8142
|
-
//# sourceMappingURL=chunk-
|
|
8157
|
+
//# sourceMappingURL=chunk-4A5CBMB6.js.map
|