@agimon-ai/po-file-edit 0.0.0-alpha.4 → 0.0.0-alpha.6
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.
|
@@ -50,7 +50,7 @@ let _agimon_ai_po_config = require("@agimon-ai/po-config");
|
|
|
50
50
|
let hono = require("hono");
|
|
51
51
|
//#region src/constants/editPresence.ts
|
|
52
52
|
const PRESENCE_NOTE_TITLE = "[Po: other active agents edited files in this result]";
|
|
53
|
-
const PRESENCE_NOTE_GUIDANCE = "
|
|
53
|
+
const PRESENCE_NOTE_GUIDANCE = "Preserve unrelated edits. If coordination would help, you can use intercom to send to the session id, or ask the subagent by name if it is on your team. Contact is optional; this notice does not block editing.";
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/services/editPresence/index.ts
|
|
56
56
|
const PATH_TOOLS = /* @__PURE__ */ new Set([
|
|
@@ -2064,10 +2064,12 @@ const createFileEditServerRoot = (context) => {
|
|
|
2064
2064
|
...presence === void 0 ? {} : { presence }
|
|
2065
2065
|
},
|
|
2066
2066
|
activities: runtime.activities,
|
|
2067
|
-
...presence === void 0 ? {} : { services: [(cordis) =>
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2067
|
+
...presence === void 0 ? {} : { services: [(cordis) => {
|
|
2068
|
+
cordis.inject([_agimon_ai_po_core_childSession.PO_CHILD_SESSION_HOOK_REGISTRY_SERVICE], (registryContext) => {
|
|
2069
|
+
const registration = registryContext.get(_agimon_ai_po_core_childSession.PO_CHILD_SESSION_HOOK_REGISTRY_SERVICE).register(presence.childHooks);
|
|
2070
|
+
return () => registration.dispose();
|
|
2071
|
+
});
|
|
2072
|
+
}] },
|
|
2071
2073
|
onDispose: async (pluginContext) => {
|
|
2072
2074
|
presence?.dispose();
|
|
2073
2075
|
await runtime.onDispose?.(pluginContext);
|