evolcore 0.0.43-test.5 → 0.0.43-test.7
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/CHANGELOG.md +95 -0
- package/bin/ecmsg.js +281 -81
- package/dist/agents/baseagent-availability.js +20 -5
- package/dist/agents/baseagent.js +2 -2
- package/dist/agents/claude-runner.js +19 -4
- package/dist/agents/codex/app-server-client.js +36 -3
- package/dist/agents/codex-runner.js +75 -8
- package/dist/aun/group/invite-service.js +3 -2
- package/dist/aun/msg/p2p.js +6 -1
- package/dist/aun/service-proxy.js +18 -6
- package/dist/channels/aun.js +306 -30
- package/dist/cli/agent-create.js +18 -8
- package/dist/cli/aun-commands.js +9 -1
- package/dist/cli/daemon-commands.js +34 -65
- package/dist/cli/daemon-lifecycle-client.js +61 -0
- package/dist/cli/ecmsg-gateway.js +38 -3
- package/dist/cli/events-command.js +73 -0
- package/dist/cli/index.js +31 -14
- package/dist/cli/init.js +75 -0
- package/dist/cli/invoke-command.js +182 -0
- package/dist/cli/managed-command-guard.js +6 -1
- package/dist/cli/provider-command.js +1 -1
- package/dist/cli/restart-monitor.js +67 -50
- package/dist/cli/services-command.js +111 -0
- package/dist/cli/task-context.js +38 -1
- package/dist/cli/team-workspace-command.js +134 -0
- package/dist/cli/thread-command.js +6 -2
- package/dist/cli/watch-logs.js +6 -4
- package/dist/cli/watch-msg.js +1 -1
- package/dist/config/boot-log.js +6 -4
- package/dist/config/builtin-roles.js +2 -2
- package/dist/config/config-field-policy.js +2 -2
- package/dist/config/config-manager.js +1 -8
- package/dist/config/invoke-ipc-service.js +118 -0
- package/dist/config/peer-role-resolver.js +1 -1
- package/dist/config/provider-identity-migration.js +92 -17
- package/dist/config/provider-local-sync.js +2 -0
- package/dist/config/providers-config.js +13 -0
- package/dist/config/providers-management.js +100 -10
- package/dist/config/role-service.js +8 -8
- package/dist/config/role-store.js +22 -22
- package/dist/config/schema-migration.js +86 -88
- package/dist/config/snapshot.js +70 -41
- package/dist/config-store.js +2 -1
- package/dist/core/agent-reload-coordinator.js +6 -4
- package/dist/core/agent-runtime.js +146 -15
- package/dist/core/auth/delegation-authorization.js +66 -0
- package/dist/core/auth/operation-catalog.js +20 -0
- package/dist/core/baseagent-loader.js +75 -42
- package/dist/core/channel-loader.js +45 -13
- package/dist/core/channel-runtime.js +116 -45
- package/dist/core/command/agent-control.js +1 -1
- package/dist/core/command/agent-storage-menu.js +1 -1
- package/dist/core/command/chatmode-config.js +2 -36
- package/dist/core/command/command-handler.js +58 -16
- package/dist/core/command/data-root-resolver.js +32 -23
- package/dist/core/command/eventcenter-menu.js +338 -0
- package/dist/core/command/menu-catalog.js +8 -0
- package/dist/core/command/menu-handler.js +206 -87
- package/dist/core/command/menu-protocol.js +142 -22
- package/dist/core/command/menu-query-batch.js +194 -0
- package/dist/core/command/role-menu.js +27 -15
- package/dist/core/command/slash-gate.js +1 -1
- package/dist/core/command/slash-handler.js +34 -42
- package/dist/core/command/team-workspace-bootstrap.js +350 -0
- package/dist/core/command/{pa-workspace-calendar.js → team-workspace-calendar.js} +7 -7
- package/dist/core/command/team-workspace-initializer.js +2 -0
- package/dist/core/command/{pa-workspace-items.js → team-workspace-items.js} +83 -68
- package/dist/core/command/team-workspace-job-store.js +88 -0
- package/dist/core/command/team-workspace-management-service.js +2 -0
- package/dist/core/command/team-workspace-management-store.js +96 -0
- package/dist/core/command/team-workspace-management.js +265 -0
- package/dist/core/command/team-workspace-members-menu.js +88 -0
- package/dist/core/command/team-workspace-store.js +612 -0
- package/dist/core/command/team-workspace-team.js +193 -0
- package/dist/core/daemon-control.js +45 -15
- package/dist/core/daemon-lifecycle.js +478 -75
- package/dist/core/handoff/dispatcher.js +9 -3
- package/dist/core/handoff/runtime.js +130 -42
- package/dist/core/handoff/store.js +190 -2
- package/dist/core/handoff/types.js +5 -0
- package/dist/core/initialization/service.js +4 -4
- package/dist/core/invoke/executors/index.js +13 -0
- package/dist/core/invoke/executors/media.js +283 -0
- package/dist/core/invoke/executors/text.js +198 -0
- package/dist/core/invoke/invoke-service.js +157 -0
- package/dist/core/invoke/style-router.js +48 -0
- package/dist/core/invoke/types.js +19 -0
- package/dist/core/ipc-registration.js +51 -11
- package/dist/core/lifecycle-notice.js +10 -4
- package/dist/core/memory/consolidation.js +7 -5
- package/dist/core/message/aun-ipc-sender.js +149 -19
- package/dist/core/message/im-renderer.js +28 -84
- package/dist/core/message/message-bridge.js +57 -4
- package/dist/core/message/message-queue.js +46 -4
- package/dist/core/message/message-utils.js +10 -2
- package/dist/core/message/peer-mode.js +7 -34
- package/dist/core/message/pending-hints.js +4 -10
- package/dist/core/message/response-engine.js +163 -52
- package/dist/core/message/send-options.js +7 -4
- package/dist/core/message/send-routing.js +55 -7
- package/dist/core/ownership/owner-resolver.js +8 -0
- package/dist/core/permission/ec-command-parser.js +14 -3
- package/dist/core/permission/protected-paths.js +12 -2
- package/dist/core/permission/shell-environment.js +9 -0
- package/dist/core/session/adapters/claude-session-file-adapter.js +24 -0
- package/dist/core/session/adapters/codex-session-file-adapter.js +80 -0
- package/dist/core/session/adapters/ecagent-session-file-adapter.js +22 -0
- package/dist/core/session/adapters/gemini-session-file-adapter.js +39 -0
- package/dist/core/session/session-file-health.js +243 -0
- package/dist/core/session/session-fs-store.js +163 -3
- package/dist/core/session/session-idle-monitor.js +9 -1
- package/dist/core/session/session-manager.js +36 -2
- package/dist/core/task/task-recovery-service.js +13 -2
- package/dist/core/thread/command-parser.js +9 -2
- package/dist/core/thread/thread-operation.js +21 -2
- package/dist/core/thread/thread-route.js +13 -2
- package/dist/directory/owner-directory-admission.js +42 -30
- package/dist/directory/owner-directory-cache.js +143 -126
- package/dist/directory/owner-directory-query-operation.js +9 -8
- package/dist/eck/kit-renderer.js +7 -5
- package/dist/ecweb/basic-settings-service.js +1 -1
- package/dist/ecweb/message-context-service.js +0 -4
- package/dist/ecweb/runtime/lifecycle.js +14 -8
- package/dist/ecweb/runtime/supervisor.js +62 -30
- package/dist/event-center/admission-materializer.js +114 -0
- package/dist/event-center/bus-gate.js +136 -0
- package/dist/event-center/bus-host.js +290 -0
- package/dist/event-center/bus-resolver.js +120 -0
- package/dist/event-center/center-config.js +100 -0
- package/dist/event-center/client-factory.js +50 -0
- package/dist/event-center/daemon.js +45 -0
- package/dist/event-center/directory-source.js +53 -0
- package/dist/event-center/dispatcher.js +157 -0
- package/dist/event-center/event-log.js +110 -0
- package/dist/event-center/index-generator.js +63 -0
- package/dist/event-center/ipc-operation.js +308 -0
- package/dist/event-center/ledger.js +52 -0
- package/dist/event-center/pack-loader.js +202 -0
- package/dist/event-center/pack-manager.js +85 -0
- package/dist/event-center/registry.js +238 -0
- package/dist/event-center/runtime.js +641 -0
- package/dist/event-center/script-runner.js +356 -0
- package/dist/event-center/types.js +35 -0
- package/dist/event-center/validation.js +413 -0
- package/dist/index.js +751 -268
- package/dist/ipc.js +66 -12
- package/dist/paths.js +20 -0
- package/dist/product.js +14 -0
- package/dist/proxy/manager.js +43 -18
- package/dist/proxy/service-supervisor.js +78 -35
- package/dist/response-system/engines/v1/index.js +0 -1
- package/dist/response-system/modes/single-session/index.js +1 -1
- package/dist/services/dispatcher.js +100 -0
- package/dist/services/idempotency.js +90 -0
- package/dist/services/identity.js +52 -0
- package/dist/services/index-generator.js +70 -0
- package/dist/services/index.js +449 -0
- package/dist/services/ipc-operation.js +458 -0
- package/dist/services/ledger.js +52 -0
- package/dist/services/message-log.js +112 -0
- package/dist/services/pack-manager.js +204 -0
- package/dist/services/reply.js +55 -0
- package/dist/services/router.js +95 -0
- package/dist/services/script-runner.js +422 -0
- package/dist/services/service-payload.js +70 -0
- package/dist/services/types.js +18 -0
- package/dist/services/validation.js +297 -0
- package/dist/trigger/application-service.js +21 -1
- package/dist/trigger/audit.js +19 -4
- package/dist/trigger/authorization.js +14 -5
- package/dist/trigger/event-source.js +1 -1
- package/dist/trigger/history.js +176 -7
- package/dist/trigger/ipc-service.js +3 -1
- package/dist/trigger/manager.js +1 -3
- package/dist/trigger/scheduler.js +78 -5
- package/dist/trigger/script-sandbox.js +118 -22
- package/dist/utils/cross-platform.js +175 -13
- package/dist/utils/evolcore-version.js +69 -27
- package/dist/utils/host-info.js +11 -8
- package/dist/utils/instance-registry.js +19 -13
- package/dist/utils/npm-ops.js +48 -0
- package/dist/utils/process-introspect.js +109 -10
- package/dist/utils/startup-trace.js +222 -44
- package/dist/utils/windows-shell-trust.js +80 -6
- package/kits/docs/INDEX.md +2 -2
- package/kits/docs/aun/ABILITY_CALLING.md +10 -17
- package/kits/docs/context-assembly.md +1 -1
- package/kits/docs/evolcore/INDEX.md +5 -2
- package/kits/docs/evolcore/ability.md +4 -0
- package/kits/docs/evolcore/aid.md +1 -1
- package/kits/docs/evolcore/ctl.md +2 -1
- package/kits/docs/evolcore/event-center.md +207 -0
- package/kits/docs/evolcore/file-navigation.md +10 -264
- package/kits/docs/evolcore/fs.md +3 -2
- package/kits/docs/evolcore/group.md +2 -2
- package/kits/docs/evolcore/memory-architecture.md +2 -0
- package/kits/docs/evolcore/menu-exec-schema-commands.md +1 -1
- package/kits/docs/evolcore/menu-protocol.md +21 -0
- package/kits/docs/evolcore/msg.md +27 -8
- package/kits/docs/evolcore/provider.md +23 -3
- package/kits/docs/evolcore/response.md +5 -5
- package/kits/docs/evolcore/services.md +277 -0
- package/kits/docs/evolcore/task.md +2 -0
- package/kits/docs/evolcore/team-workspace.md +41 -0
- package/kits/eck_manifest.json +45 -7
- package/kits/eck_message_manifest.json +3 -3
- package/kits/rules/02-navigation.md +10 -1
- package/kits/rules/06-channel.md +5 -6
- package/kits/schemas/_meta.json +17 -6
- package/kits/schemas/agent-config.schema.19.json +5 -7
- package/kits/schemas/agent-config.schema.20.json +936 -0
- package/kits/schemas/daemon.schema.1.json +5 -0
- package/kits/schemas/daemon.schema.2.json +5 -0
- package/kits/schemas/daemon.schema.3.json +2 -1
- package/kits/schemas/daemon.schema.4.json +2 -1
- package/kits/schemas/daemon.schema.5.json +2 -1
- package/kits/schemas/daemon.schema.6.json +1 -1
- package/kits/schemas/daemon.schema.7.json +1 -1
- package/kits/schemas/daemon.schema.8.json +2 -1
- package/kits/schemas/daemon.schema.9.json +2 -1
- package/kits/schemas/relation-config.schema.12.json +2 -3
- package/kits/schemas/role-config.schema.2.json +4 -4
- package/kits/schemas/role-registry.schema.1.json +2 -2
- package/kits/schemas/single-session.schema.1.json +1 -1
- package/kits/schemas/single-session.schema.2.json +1 -1
- package/kits/schemas/single-session.schema.3.json +1 -1
- package/kits/skills/.switches.json +1 -5
- package/kits/skills/ability/SKILL.md +56 -0
- package/kits/skills/ability/references/calling.md +56 -0
- package/kits/skills/{ec-ability → ability}/references/contract-checklist.md +1 -1
- package/kits/skills/{ec-ability → ability}/references/development.md +9 -33
- package/kits/skills/{ec-ability → ability}/references/management.md +2 -2
- package/kits/skills/{ec-ability → ability}/references/recovery.md +1 -1
- package/kits/skills/{ec-ability → ability}/references/runtime-protocol.md +2 -0
- package/kits/skills/ec-agent-create/SKILL.md +0 -1
- package/kits/skills/ec-group/SKILL.md +8 -5
- package/kits/skills/ec-group-collaboration/SKILL.md +7 -7
- package/kits/skills/ec-service-proxy/SKILL.md +34 -5
- package/kits/skills/ec-trigger/SKILL.md +4 -4
- package/kits/skills/personal-assistant/SKILL.md +6 -6
- package/kits/skills/personal-assistant/references/02-bootstrap.md +4 -4
- package/kits/skills/personal-assistant/scripts/clean.mjs +4 -4
- package/kits/skills/personal-assistant/scripts/init.mjs +2 -2
- package/kits/skills/personal-assistant/scripts/pa.mjs +4 -4
- package/kits/skills/thread-ops/SKILL.md +10 -10
- package/kits/templates/system-fragments/channel.md +3 -3
- package/kits/templates/system-fragments/commands.md +9 -7
- package/kits/templates/system-fragments/reply.md +2 -6
- package/kits/templates/system-fragments/session.md +1 -1
- package/kits/templates/system-fragments/thread.md +11 -9
- package/package.json +5 -6
- package/dist/cli/pa-workspace-command.js +0 -225
- package/dist/core/command/pa-workspace-store.js +0 -468
- package/dist/core/relation/pa-team.js +0 -132
- package/kits/docs/evolcore/pa-workspace.md +0 -51
- package/kits/skills/aid-ability/SKILL.md +0 -244
- package/kits/skills/ec-ability/SKILL.md +0 -67
- package/kits/skills/ec-ability/references/workflows.md +0 -15
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 统一模型调用层(`ec invoke`)的类型契约。
|
|
3
|
+
*
|
|
4
|
+
* 设计见 `docs/model-intent/invoke-design.md`。
|
|
5
|
+
*
|
|
6
|
+
* 核心约束:本层只做「按 style 路由 + 打端点 + 归一化产物」,
|
|
7
|
+
* 不修改 `providers.json`,不决定产物落点,不做意图选择。
|
|
8
|
+
*/
|
|
9
|
+
/** 调用失败的结构化错误。 */
|
|
10
|
+
export class InvokeError extends Error {
|
|
11
|
+
code;
|
|
12
|
+
data;
|
|
13
|
+
constructor(code, message, data) {
|
|
14
|
+
super(message);
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.data = data;
|
|
17
|
+
this.name = 'InvokeError';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { createEventsOperationExecutor } from '../event-center/ipc-operation.js';
|
|
2
|
+
import { createServicesOperationExecutor } from '../services/ipc-operation.js';
|
|
1
3
|
import { ecwebInitializationService } from './initialization/service.js';
|
|
2
4
|
import { TriggerDefinitionManager } from '../trigger/manager.js';
|
|
3
|
-
import {
|
|
5
|
+
import { ensureSessionRuntimeDirAsync } from '../cli/task-context.js';
|
|
4
6
|
import { logger } from '../utils/logger.js';
|
|
5
7
|
import crypto from 'crypto';
|
|
6
8
|
import fs from 'fs';
|
|
@@ -26,8 +28,8 @@ import { createThreadOperationExecutor } from './thread/ipc-operation.js';
|
|
|
26
28
|
import { isLinkedInstall } from '../utils/npm-ops.js';
|
|
27
29
|
import { buildSystemSessionContext, getSystemSessionModule } from './system-session/registry.js';
|
|
28
30
|
import { parseManagedDaemonLogArgv, queryDiagnosticLogs } from './command/daemon-diagnostics.js';
|
|
29
|
-
import { createDelegationAuthorizer, createDelegatedProviderOperationExecutor, createDelegatedUpgradeOperationExecutor } from './auth/delegation-authorization.js';
|
|
30
|
-
export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDelegationRegistry, sessionManager, statsCollector, aidStatsCollector, responseEngine, messageQueue, agentMap, commandHandler, channelInstances, eventBus, handoffRuntime, reloadCoordinator, agentApplicationService, agentInitializationService, enqueueConsolidation, getRelationRoute, isConsolidationPending, completeAgentBootstrap, contactBinds, bindService, diagService, getProcessOwners, getControlAidState, daemonAid, triggerControlToken, triggerSchedulers, daemonTriggerOwner, primaryAgent, triggerAuthorization, }) {
|
|
31
|
+
import { createDelegationAuthorizer, createDelegatedProviderOperationExecutor, createDelegatedUpgradeOperationExecutor, createDelegatedInvokeOperationExecutor } from './auth/delegation-authorization.js';
|
|
32
|
+
export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDelegationRegistry, sessionManager, statsCollector, aidStatsCollector, responseEngine, messageQueue, agentMap, getConfiguredBaseagents, commandHandler, channelInstances, eventBus, handoffRuntime, reloadCoordinator, agentApplicationService, agentInitializationService, enqueueConsolidation, getRelationRoute, isConsolidationPending, completeAgentBootstrap, contactBinds, bindService, diagService, getProcessOwners, getControlAidState, daemonAid, triggerControlToken, triggerSchedulers, eventCenter, daemonTriggerOwner, primaryAgent, triggerAuthorization, }) {
|
|
31
33
|
ecwebInitializationService.setAgentInitializer(agentInitializationService);
|
|
32
34
|
const authorizeManagedAgentOperation = createDelegationAuthorizer({
|
|
33
35
|
agentDelegationRegistry,
|
|
@@ -39,6 +41,11 @@ export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDe
|
|
|
39
41
|
sessionManager,
|
|
40
42
|
getProcessOwners,
|
|
41
43
|
}));
|
|
44
|
+
ipcServer.setInvokeExecutor(createDelegatedInvokeOperationExecutor({
|
|
45
|
+
agentDelegationRegistry,
|
|
46
|
+
sessionManager,
|
|
47
|
+
getProcessOwners,
|
|
48
|
+
}));
|
|
42
49
|
ipcServer.setUpgradeExecutor(createDelegatedUpgradeOperationExecutor({
|
|
43
50
|
agentDelegationRegistry,
|
|
44
51
|
sessionManager,
|
|
@@ -102,7 +109,7 @@ export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDe
|
|
|
102
109
|
runtimeContext = buildDebugTaskContext({
|
|
103
110
|
session,
|
|
104
111
|
getTrigger: (agentAid, triggerId) => new TriggerDefinitionManager(agentAid).get(triggerId),
|
|
105
|
-
sessionRuntimeDir:
|
|
112
|
+
sessionRuntimeDir: await ensureSessionRuntimeDirAsync(session.id),
|
|
106
113
|
});
|
|
107
114
|
}
|
|
108
115
|
if (!runtimeContext.selfAid)
|
|
@@ -269,6 +276,7 @@ export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDe
|
|
|
269
276
|
getAgentName: agentAid => agentRegistry.get(agentAid)?.name,
|
|
270
277
|
getDaemonAgentName: () => primaryAgent?.name,
|
|
271
278
|
agentMap,
|
|
279
|
+
getConfiguredBaseagents,
|
|
272
280
|
}),
|
|
273
281
|
getSessionById: sessionId => sessionManager.getSessionById(sessionId),
|
|
274
282
|
...triggerAuthorization,
|
|
@@ -280,8 +288,37 @@ export function registerDaemonIpc({ lifecycle, ipcServer, agentRegistry, agentDe
|
|
|
280
288
|
responseEngine,
|
|
281
289
|
handoffRuntime,
|
|
282
290
|
sessionManager,
|
|
291
|
+
messageQueue,
|
|
283
292
|
createCrossThreadReviewTrigger: input => createManagedCrossThreadReviewTrigger(input, triggerIpcDependencies),
|
|
284
293
|
});
|
|
294
|
+
if (eventCenter) {
|
|
295
|
+
ipcServer.setEventsOperationExecutor(createEventsOperationExecutor({ registry: eventCenter }));
|
|
296
|
+
}
|
|
297
|
+
// 服务路由:已连接通道的实例会暴露其 router;启动即预热一次,让 `ec services status`
|
|
298
|
+
// 看到的是 daemon 真在用的那份状态,而不是磁盘重扫出来的临时实例。
|
|
299
|
+
for (const instance of channelInstances) {
|
|
300
|
+
const channel = instance.channel;
|
|
301
|
+
try {
|
|
302
|
+
channel?.getServiceRouter?.();
|
|
303
|
+
}
|
|
304
|
+
catch (error) {
|
|
305
|
+
logger.warn(`[Services] router prewarm failed for ${instance.adapter.channelName}: ${error instanceof Error ? error.message : String(error)}`);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
ipcServer.setServicesOperationExecutor(createServicesOperationExecutor({
|
|
309
|
+
defaultAid: () => daemonAid,
|
|
310
|
+
getChannel: aid => channelInstances.find(candidate => {
|
|
311
|
+
if (candidate.channelType !== 'aun')
|
|
312
|
+
return false;
|
|
313
|
+
const channel = candidate.channel;
|
|
314
|
+
try {
|
|
315
|
+
return !!channel && (channel.getAidState?.()?.aid === aid || channel.getAid?.() === aid);
|
|
316
|
+
}
|
|
317
|
+
catch {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
})?.channel,
|
|
321
|
+
}));
|
|
285
322
|
ipcServer.setAgentReloadExecutor((aid, options) => reloadCoordinator.reload(aid, options));
|
|
286
323
|
registerConsolidationCheckExecutor({ ipcServer, agentRegistry, enqueueConsolidation, getRelationRoute, isConsolidationPending });
|
|
287
324
|
ipcServer.setInitializationExecutor(async (command) => executeLocalInitializationCommand(agentInitializationService, command));
|
|
@@ -341,19 +378,22 @@ export function createIpcStatusProvider(dependencies) {
|
|
|
341
378
|
const snapshot = dependencies.statsCollector.getSnapshot();
|
|
342
379
|
const agents = dependencies.agentRegistry.list();
|
|
343
380
|
const runtimeError = dependencies.getAgentRuntimeError();
|
|
381
|
+
const build = dependencies.getBuildDiagnostics();
|
|
344
382
|
return {
|
|
345
383
|
pid: process.pid,
|
|
346
384
|
uptime: snapshot.uptimeMs,
|
|
347
385
|
...(dependencies.runMode ? { runMode: dependencies.runMode } : {}),
|
|
348
386
|
...(dependencies.getHost ? { host: dependencies.getHost() } : {}),
|
|
349
387
|
build: {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
388
|
+
state: build.state,
|
|
389
|
+
runtimeMode: build.runtimeIsDist ? 'dist' : 'source',
|
|
390
|
+
runtimeId: build.runtimeBuildIdentity.id,
|
|
391
|
+
diskDistId: build.diskDistId,
|
|
392
|
+
entry: build.runtimeBuildIdentity.entry,
|
|
393
|
+
version: build.runtimeBuildIdentity.version,
|
|
355
394
|
},
|
|
356
395
|
controlPlane: { ready: true, owned: dependencies.getProcessOwners().length > 0 },
|
|
396
|
+
...(dependencies.getStartupProgress ? { startup: dependencies.getStartupProgress() } : {}),
|
|
357
397
|
agentRuntime: {
|
|
358
398
|
state: dependencies.getAgentRuntimeState(),
|
|
359
399
|
runnableAgents: agents.filter(agent => agent.status !== 'error' && agent.status !== 'disabled').length,
|
|
@@ -456,11 +496,11 @@ export function registerRuntimeIpcProviders({ ipcServer, channelInstances, messa
|
|
|
456
496
|
if (!session)
|
|
457
497
|
return null;
|
|
458
498
|
const { buildDebugTaskContext } = await import('./auth/debug-context.js');
|
|
459
|
-
const {
|
|
499
|
+
const { ensureSessionRuntimeDirAsync } = await import('../cli/task-context.js');
|
|
460
500
|
return buildDebugTaskContext({
|
|
461
501
|
session,
|
|
462
502
|
getTrigger: (agentAid, triggerId) => new TriggerDefinitionManager(agentAid).get(triggerId),
|
|
463
|
-
sessionRuntimeDir:
|
|
503
|
+
sessionRuntimeDir: await ensureSessionRuntimeDirAsync(session.id),
|
|
464
504
|
});
|
|
465
505
|
});
|
|
466
506
|
logger.info('[Memory] 开发仓安装:已启用 ec memory --debug <sessionId>');
|
|
@@ -52,6 +52,7 @@ async function settleWithin(promise, ms) {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
export function createLifecycleNoticeService(deps) {
|
|
55
|
+
const enabled = deps.enabled ?? true;
|
|
55
56
|
const log = deps.log ?? logger;
|
|
56
57
|
const retryDelaysMs = deps.timing?.retryDelaysMs ?? ONLINE_OWNER_RETRY_DELAYS_MS;
|
|
57
58
|
const onlineSendMs = deps.timing?.onlineSendMs ?? OFFLINE_SINGLE_SEND_MS;
|
|
@@ -66,8 +67,9 @@ export function createLifecycleNoticeService(deps) {
|
|
|
66
67
|
onChange: listener => ownerResolver.onChange(listener),
|
|
67
68
|
};
|
|
68
69
|
/**
|
|
69
|
-
*
|
|
70
|
-
* shutdown
|
|
70
|
+
* 下线时用的 Owner 取自这份进程内缓存,不依赖 shutdown 时 resolver 是否还在。
|
|
71
|
+
* 注意出站准入本身仍读 resolver 的共识,所以 daemon shutdown 必须在
|
|
72
|
+
* sendOffline 发起之后才调 ownerResolver.stop()(见 createDaemonShutdown)。
|
|
71
73
|
*/
|
|
72
74
|
const confirmedOwners = new Map();
|
|
73
75
|
const onlineInFlight = new Set();
|
|
@@ -94,6 +96,10 @@ export function createLifecycleNoticeService(deps) {
|
|
|
94
96
|
agentName: agentNameFor(selfAid),
|
|
95
97
|
online,
|
|
96
98
|
ttlSeconds: LIFECYCLE_NOTICE_TTL_SECONDS,
|
|
99
|
+
// ownerAid came from a live consensus (confirmedOwners / resolver), so the
|
|
100
|
+
// notice may skip admission's refresh. During shutdown that refresh would
|
|
101
|
+
// compete with the connection teardown for the same 1.5s budget.
|
|
102
|
+
ownershipVerified: true,
|
|
97
103
|
});
|
|
98
104
|
if (result?.ok !== true) {
|
|
99
105
|
log.warn(`[Lifecycle] ${online ? 'online' : 'offline'} notice ${selfAid} -> ${ownerAid} failed: `
|
|
@@ -128,7 +134,7 @@ export function createLifecycleNoticeService(deps) {
|
|
|
128
134
|
log.info(`[Lifecycle] ${selfAid} has no Ownership consensus; online notice skipped`);
|
|
129
135
|
}
|
|
130
136
|
function online(instance) {
|
|
131
|
-
if (onlineStopped || !isAun(instance))
|
|
137
|
+
if (!enabled || onlineStopped || !isAun(instance))
|
|
132
138
|
return;
|
|
133
139
|
const agent = deps.resolveAgent(instance.adapter.channelKey, instance.adapter.channelName);
|
|
134
140
|
if (!agent)
|
|
@@ -147,7 +153,7 @@ export function createLifecycleNoticeService(deps) {
|
|
|
147
153
|
unsubscribe();
|
|
148
154
|
}
|
|
149
155
|
async function sendOffline(signal) {
|
|
150
|
-
if (offlineSent)
|
|
156
|
+
if (!enabled || offlineSent)
|
|
151
157
|
return;
|
|
152
158
|
offlineSent = true;
|
|
153
159
|
const seen = new Set();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* `execution.memoryMode` 会经 session.metadata 透传到渲染层与 ipc 的权限校验。
|
|
10
10
|
*/
|
|
11
11
|
import fs from 'fs';
|
|
12
|
-
import {
|
|
12
|
+
import { getProtocolOwner, ownerResolver } from '../ownership/owner-resolver.js';
|
|
13
13
|
import path from 'path';
|
|
14
14
|
import { agentDir, resolveRoot } from '../../paths.js';
|
|
15
15
|
import { isSilentConsolidationTrigger, serializeConsolidationContext } from './consolidation-context.js';
|
|
@@ -665,7 +665,9 @@ export function recordConsolidationOutcome(contextFilePath, outcome) {
|
|
|
665
665
|
export async function triggerAgentPromote(params) {
|
|
666
666
|
const { selfAid } = params;
|
|
667
667
|
try {
|
|
668
|
-
const ownerAid =
|
|
668
|
+
const ownerAid = getProtocolOwner(selfAid);
|
|
669
|
+
if (params.ownerAid && params.ownerAid !== ownerAid)
|
|
670
|
+
return;
|
|
669
671
|
if (!ownerAid)
|
|
670
672
|
return;
|
|
671
673
|
const agentConsolidated = path.join(agentDir(selfAid), 'personal', 'memory', 'consolidated');
|
|
@@ -1005,7 +1007,7 @@ export function createConsolidationSessionFinalizer({ sessionManager, getAgent,
|
|
|
1005
1007
|
continue;
|
|
1006
1008
|
}
|
|
1007
1009
|
if (due > 0) {
|
|
1008
|
-
const ownerAid = memoryConfig ?
|
|
1010
|
+
const ownerAid = memoryConfig ? getProtocolOwner(selfAid) : undefined;
|
|
1009
1011
|
const taskCtx = { selfAid, peerKey: meta.peerKey, baseagent: agent?.baseagent };
|
|
1010
1012
|
void enqueueConsolidation({
|
|
1011
1013
|
taskCtx,
|
|
@@ -1469,7 +1471,7 @@ export function registerConsolidationCheckExecutor({ ipcServer, agentRegistry, e
|
|
|
1469
1471
|
if (candidates.length === 0 && !ownerCandidates)
|
|
1470
1472
|
return { launched: [] };
|
|
1471
1473
|
await ownerResolver.refresh(selfAid);
|
|
1472
|
-
const ownerAid =
|
|
1474
|
+
const ownerAid = getProtocolOwner(selfAid);
|
|
1473
1475
|
if (ownerCandidates)
|
|
1474
1476
|
candidates.push(...checkConsolidationCandidates({
|
|
1475
1477
|
selfAid, ownerAid, config: agentConfig?.memory, useMetaIndex, ownerOnly: true,
|
|
@@ -1528,7 +1530,7 @@ export function registerRelationConsolidationEvents({ eventBus, agentRegistry, r
|
|
|
1528
1530
|
}) !== 'run')
|
|
1529
1531
|
return;
|
|
1530
1532
|
await ownerResolver.refresh(taskCtx.selfAid);
|
|
1531
|
-
const ownerAid =
|
|
1533
|
+
const ownerAid = getProtocolOwner(taskCtx.selfAid);
|
|
1532
1534
|
await enqueueConsolidation({
|
|
1533
1535
|
taskCtx,
|
|
1534
1536
|
mode: 'notes',
|
|
@@ -20,8 +20,21 @@ import { buildEnvelope } from './message-utils.js';
|
|
|
20
20
|
import { sessionTopicThreadId } from '../thread/topic-id.js';
|
|
21
21
|
import { getAunRequestRegistry, requestDiagnostics, requestTtlSeconds } from './aun-request-registry.js';
|
|
22
22
|
import { parseJsonObjectArgument } from '../permission/ec-command-parser.js';
|
|
23
|
-
import { parsePeerKey } from '../relation/peer-identity.js';
|
|
23
|
+
import { formatPeerKey, parsePeerKey } from '../relation/peer-identity.js';
|
|
24
24
|
const TASK_ID_MESSAGE_PAYLOAD_TYPES = new Set(['text', 'link', 'image', 'video', 'voice', 'file']);
|
|
25
|
+
function normalizeAid(value) {
|
|
26
|
+
return String(value ?? '').trim().replace(/^@/, '').toLowerCase();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 是否为「发给自己的本端 AID」(self-address)。
|
|
30
|
+
*
|
|
31
|
+
* 不是跨主体通讯,因此不适用联系人准入,也不能拿它做话题对端的一致性校验。
|
|
32
|
+
*/
|
|
33
|
+
function isSelfAidTarget(selfAid, targetAid) {
|
|
34
|
+
const self = normalizeAid(selfAid);
|
|
35
|
+
const target = normalizeAid(targetAid);
|
|
36
|
+
return !!self && !!target && self === target;
|
|
37
|
+
}
|
|
25
38
|
/** payload.debug 只是诊断字段:取不到时照常发送,不带 debug。 */
|
|
26
39
|
async function resolveOutboundDebug(resolver, sessionId) {
|
|
27
40
|
if (!resolver || !sessionId)
|
|
@@ -248,6 +261,74 @@ async function applyManagedCrossThreadSendEffects(input) {
|
|
|
248
261
|
* targetThreadId 里。主话题 id 含两个完整 AID 与冒号,塞进名称又长又难读,
|
|
249
262
|
* 统一缩成 `main`。
|
|
250
263
|
*/
|
|
264
|
+
/**
|
|
265
|
+
* 自发投递(self-address):把刚刚发给自己那条消息,直接投进话题 T 所属的会话队列。
|
|
266
|
+
*
|
|
267
|
+
* 三条不变量:
|
|
268
|
+
* 1. **落点由话题索引决定,不由 `to` 决定**。`to` 是本端自己,用它算会话会落到
|
|
269
|
+
* 「我↔我」的目录;真实对端在话题条目里。
|
|
270
|
+
* 2. **`messageId` 复用 AUN 返回的 `message_id`**,跨设备与重启重放天然同键,
|
|
271
|
+
* 队列去重与 `claimInboundMessage` 都能生效。
|
|
272
|
+
* 3. **失败不抛**:AUN 那一跳已经把消息发出去了,本地投递失败只能作为
|
|
273
|
+
* `self_delivery_error` 回报,不能把「已发送」变成「发送失败」。
|
|
274
|
+
*/
|
|
275
|
+
async function deliverSelfAddressed(input) {
|
|
276
|
+
const { params, sent, threadRoute } = input;
|
|
277
|
+
if (!sent.ok)
|
|
278
|
+
return { deliveryError: 'transport send failed' };
|
|
279
|
+
if (!threadRoute)
|
|
280
|
+
return { deliveryError: 'topic index entry is unavailable' };
|
|
281
|
+
if (!input.sessionManager || !input.messageQueue) {
|
|
282
|
+
return { deliveryError: 'self-address delivery is not configured' };
|
|
283
|
+
}
|
|
284
|
+
let session;
|
|
285
|
+
try {
|
|
286
|
+
session = await input.sessionManager.getSessionById(threadRoute.sessionId);
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
return { deliveryError: `session lookup failed: ${error instanceof Error ? error.message : String(error)}` };
|
|
290
|
+
}
|
|
291
|
+
if (!session)
|
|
292
|
+
return { deliveryError: `target session not found: ${threadRoute.sessionId}` };
|
|
293
|
+
const message = {
|
|
294
|
+
channel: session.channel,
|
|
295
|
+
channelType: session.channelType,
|
|
296
|
+
channelId: session.channelId,
|
|
297
|
+
selfAID: params.aid,
|
|
298
|
+
baseagent: session.baseagent,
|
|
299
|
+
threadId: sessionTopicThreadId(session) ?? '',
|
|
300
|
+
chatType: session.chatType === 'group' ? 'group' : 'private',
|
|
301
|
+
// 发送者就是本端:模型据 peerId + source 应能判断「这是我自己写给自己的任务」,
|
|
302
|
+
// 而不是对端发来的消息。
|
|
303
|
+
peerId: params.aid,
|
|
304
|
+
peerName: params.aid,
|
|
305
|
+
peerType: 'agent',
|
|
306
|
+
content: input.content,
|
|
307
|
+
messageId: sent.message_id,
|
|
308
|
+
timestamp: sent.timestamp ?? Date.now(),
|
|
309
|
+
source: 'self-address',
|
|
310
|
+
encrypted: input.encrypted,
|
|
311
|
+
replyContext: {
|
|
312
|
+
threadId: sessionTopicThreadId(session) ?? undefined,
|
|
313
|
+
sessionId: session.id,
|
|
314
|
+
},
|
|
315
|
+
...(session.chatType === 'group' ? { groupId: session.channelId } : {}),
|
|
316
|
+
};
|
|
317
|
+
try {
|
|
318
|
+
await input.messageQueue.enqueue(session.id, message, session.projectPath, {
|
|
319
|
+
interruptible: false,
|
|
320
|
+
agentName: params.aid,
|
|
321
|
+
sessionKeyField: session.sessionKey,
|
|
322
|
+
selfAID: params.aid,
|
|
323
|
+
// 入队即返回:调用方(CLI)不需要等模型跑完,回执只表达「已投递」。
|
|
324
|
+
resolveOnPersist: true,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
catch (error) {
|
|
328
|
+
return { deliveryError: `enqueue failed: ${error instanceof Error ? error.message : String(error)}` };
|
|
329
|
+
}
|
|
330
|
+
return { sessionId: session.id };
|
|
331
|
+
}
|
|
251
332
|
function targetTopicLabel(topicId) {
|
|
252
333
|
if (!topicId)
|
|
253
334
|
return 'unknown';
|
|
@@ -256,7 +337,7 @@ function targetTopicLabel(topicId) {
|
|
|
256
337
|
return topicId;
|
|
257
338
|
return 'main';
|
|
258
339
|
}
|
|
259
|
-
export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegationRegistry, responseEngine, handoffRuntime, sessionManager, createCrossThreadReviewTrigger, }) {
|
|
340
|
+
export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegationRegistry, responseEngine, handoffRuntime, sessionManager, messageQueue, createCrossThreadReviewTrigger, }) {
|
|
260
341
|
ipcServer.setAunRequestGetExecutor(async (params) => {
|
|
261
342
|
if (!params.sessionId || !params.delegationToken) {
|
|
262
343
|
return { ok: false, code: 'DELEGATION_REQUIRED', error: 'Request queries require an active delegated session' };
|
|
@@ -348,11 +429,11 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
348
429
|
const session = await sessionManager.getSessionById(params.originSessionId);
|
|
349
430
|
if (session) {
|
|
350
431
|
const { buildDebugTaskContext } = await import('../auth/debug-context.js');
|
|
351
|
-
const {
|
|
432
|
+
const { ensureSessionRuntimeDirAsync } = await import('../../cli/task-context.js');
|
|
352
433
|
runtime = buildDebugTaskContext({
|
|
353
434
|
session,
|
|
354
435
|
getTrigger: (agentAid, triggerId) => new TriggerDefinitionManager(agentAid).get(triggerId),
|
|
355
|
-
sessionRuntimeDir:
|
|
436
|
+
sessionRuntimeDir: await ensureSessionRuntimeDirAsync(session.id),
|
|
356
437
|
});
|
|
357
438
|
}
|
|
358
439
|
}
|
|
@@ -361,11 +442,14 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
361
442
|
}
|
|
362
443
|
}
|
|
363
444
|
const runtimeCausation = runtime?.causation;
|
|
445
|
+
// 自发(self-address):收件人是本端自己,话题归属仍是 (自端, 对端)。
|
|
446
|
+
// 此时 `params.to` 不是「话题对端」,不能拿它做话题一致性校验。
|
|
447
|
+
const selfAddressed = isSelfAidTarget(params.aid, params.to);
|
|
364
448
|
// 话题引用解析:`threadRef` 是调用方写的原值(可能是主话题 id),
|
|
365
449
|
// `threadRoute` 非空即"这是跨话题发送"——与话题 id 是否为空无关。
|
|
366
450
|
const threadRef = params.thread;
|
|
367
451
|
const threadRoute = threadRef
|
|
368
|
-
? resolveThreadRouteTarget(params.aid, threadRef, params.scope, params.to)
|
|
452
|
+
? resolveThreadRouteTarget(params.aid, threadRef, params.scope, params.to, { allowSelfTarget: selfAddressed })
|
|
369
453
|
: undefined;
|
|
370
454
|
if (threadRef && !threadRoute) {
|
|
371
455
|
return { ok: false, code: 'TOPIC_NOT_FOUND', error: `话题不存在或不属于目标对端: ${threadRef}` };
|
|
@@ -379,18 +463,39 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
379
463
|
: undefined;
|
|
380
464
|
const isSystemEvent = params.trustedSystemEvent === true
|
|
381
465
|
&& params.payload?.type === 'event' && params.payload.event === 'topic.renamed';
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
466
|
+
// 非托管自发:调用方没有委托凭证,用本机 controlToken 证明「本机控制面调用」。
|
|
467
|
+
// 只有「自发 + 会话级 msg 发送」走这条,其余(含一切发给对端的发送)仍必须走委托链。
|
|
468
|
+
const localSelfSend = !isSystemEvent
|
|
469
|
+
&& params.localControl === true
|
|
470
|
+
&& selfAddressed
|
|
471
|
+
&& params.scope === 'msg'
|
|
472
|
+
&& !params.originSessionId;
|
|
473
|
+
const delegation = localSelfSend
|
|
474
|
+
? {
|
|
475
|
+
ok: true,
|
|
476
|
+
// 自发不需要「来源会话→目标关系」的授权:本机控制面就是本端自身。
|
|
477
|
+
grant: {
|
|
478
|
+
selfAid: params.aid,
|
|
479
|
+
actorId: params.aid,
|
|
480
|
+
channel: formatChannelKey({ type: 'aun', selfAID: params.aid, name: 'main' }),
|
|
481
|
+
channelType: 'aun',
|
|
482
|
+
chatType: 'private',
|
|
483
|
+
peerKey: formatPeerKey('aun', params.aid),
|
|
484
|
+
sessionId: '',
|
|
485
|
+
},
|
|
486
|
+
}
|
|
487
|
+
: await authorizeDelegatedAunMsgSend(agentDelegationRegistry, {
|
|
488
|
+
delegationToken: params.delegationToken,
|
|
489
|
+
delegationCommandHash: params.delegationCommandHash,
|
|
490
|
+
sessionId: params.originSessionId,
|
|
491
|
+
messageId: params.originMessageId,
|
|
492
|
+
aid: params.aid,
|
|
493
|
+
to: params.to,
|
|
494
|
+
scope: params.scope,
|
|
495
|
+
action: params.file ? 'file' : 'send',
|
|
496
|
+
threadRouted: !!threadRoute,
|
|
497
|
+
isSystemEvent,
|
|
498
|
+
});
|
|
394
499
|
if (!delegation.ok) {
|
|
395
500
|
return {
|
|
396
501
|
ok: false,
|
|
@@ -457,7 +562,10 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
457
562
|
if (!ch) {
|
|
458
563
|
return { ok: false, error: `AUN channel not found for ${params.aid}`, code: 'AUN_CHANNEL_NOT_FOUND' };
|
|
459
564
|
}
|
|
460
|
-
|
|
565
|
+
// 自发(`--to <本端AID>`):收件人就是自己,不属于跨主体通讯,跳过联系人准入。
|
|
566
|
+
// 不放进 evaluateAppContactAdmission 内部:那是通用准入判定,其它调用方
|
|
567
|
+
// (入站、handoff 等)也用它,在函数内开口子会扩散到所有路径。
|
|
568
|
+
if (params.scope === 'msg' && !isSelfAidTarget(params.aid, params.to)) {
|
|
461
569
|
const admission = await evaluateOutboundContactAdmission({ selfAid: params.aid, targetAid: params.to });
|
|
462
570
|
if (!admission.allow) {
|
|
463
571
|
const decision = evaluateAppContactAdmission(params.aid, params.to);
|
|
@@ -600,7 +708,10 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
600
708
|
getAunRequestRegistry().markSending(params.aid, preparedRequest.requestId);
|
|
601
709
|
}
|
|
602
710
|
let targetSessionId;
|
|
603
|
-
|
|
711
|
+
// 自发一律跳过 handoff:目标会话是按话题索引解析出的 (自端, 对端) 会话,
|
|
712
|
+
// 而 handoff 用 `to`(=本端)作为 channelId 去 getOrCreateSession,会建出
|
|
713
|
+
// 「我↔我」的错误会话目录。话题内与跨话题同此处理(D14)。
|
|
714
|
+
if (!selfAddressed && params.originSessionId && params.originMessageId && params.returnPolicy !== 'required') {
|
|
604
715
|
try {
|
|
605
716
|
const created = await handoffRuntime.createOutbound({
|
|
606
717
|
selfAid: params.aid,
|
|
@@ -766,6 +877,25 @@ export function registerAunIpcSender({ ipcServer, channelInstances, agentDelegat
|
|
|
766
877
|
...(completed ? { request_diagnostics: requestDiagnostics(completed) } : {}),
|
|
767
878
|
};
|
|
768
879
|
}
|
|
880
|
+
// 自发:AUN 那一跳只负责让同 AID 的其它设备看到这条消息,本机不会再收到
|
|
881
|
+
// 回环(SDK 按设备屏蔽 self-sync;即便收到也会被 AID 级身份过滤丢弃)。
|
|
882
|
+
// 「自己处理这条任务」必须由这里直接入队,落点是话题 T 所属的会话。
|
|
883
|
+
if (selfAddressed) {
|
|
884
|
+
const delivered = await deliverSelfAddressed({
|
|
885
|
+
params,
|
|
886
|
+
sent,
|
|
887
|
+
threadRoute,
|
|
888
|
+
sessionManager,
|
|
889
|
+
messageQueue,
|
|
890
|
+
content: params.log?.content ?? classifyAunPayloadForLog(payload).content,
|
|
891
|
+
encrypted: encrypt,
|
|
892
|
+
});
|
|
893
|
+
if (delivered.deliveryError)
|
|
894
|
+
sent.self_delivery_error = delivered.deliveryError;
|
|
895
|
+
if (delivered.sessionId)
|
|
896
|
+
sent.self_session_id = delivered.sessionId;
|
|
897
|
+
return sent;
|
|
898
|
+
}
|
|
769
899
|
if (params.thread && params.checkEveryMs !== undefined && sent.ok && sent.message_id && threadRoute) {
|
|
770
900
|
const effects = await applyManagedCrossThreadSendEffects({
|
|
771
901
|
runtime,
|