agent-transport-system 0.7.38 → 0.7.39
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/ats-dev.js +2 -2
- package/dist/ats.js +172 -71
- package/dist/ats.js.map +1 -1
- package/dist/{base-url-B07A0PWU.js → base-url-Gd_RGCHM.js} +2 -2
- package/dist/{base-url-B07A0PWU.js.map → base-url-Gd_RGCHM.js.map} +1 -1
- package/dist/{daemon-runtime-lease-CNhK4_b8.js → daemon-runtime-lease-BzvcJMMC.js} +1 -1
- package/dist/{lock-DApq8Ch1.js → lock-DV2_jevB.js} +24 -3
- package/dist/lock-DV2_jevB.js.map +1 -0
- package/package.json +1 -1
- package/dist/lock-DApq8Ch1.js.map +0 -1
package/dist/ats-dev.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import "./lock-
|
|
4
|
-
import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-
|
|
3
|
+
import "./lock-DV2_jevB.js";
|
|
4
|
+
import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-Gd_RGCHM.js";
|
|
5
5
|
|
|
6
6
|
//#region src/ats-dev.ts
|
|
7
7
|
const LOCAL_GATEWAY_URL = DEV_LOCAL_GATEWAY_BASE_URL;
|
package/dist/ats.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $ as gatewayErrorCodeSchema, $n as
|
|
3
|
+
import { $ as gatewayErrorCodeSchema, $n as collectCanonicalMentionTextFragments, $t as signalEnvelopeSchema, A as createSpaceBodySchema, An as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, Ar as resolveSpaceMentionLabels, At as patchProfileSpaceHistoryStatusResponseSchema, B as daemonRouteObservationResponseSchema, Bn as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, Bt as prepareSessionResponseSchema, C as agentProfileBindingRouteParamsSchema, Cn as writeSetupTokenLocalRuntimeObservedMetadataResponseSchema, Cr as normalizeSpacePasswordText, Ct as localRuntimesQuerySchema, D as atsdControlPlaneResponseSchema, Dn as AGENT_REPLY_PREVIEW_PURPOSE, Dr as resolveBuiltinAgentControllerConversationKind, Dt as notifyAgentProfileRouteCatalogChangedBodySchema, E as atsdControlPlaneRequestSchema, En as AGENT_REPLY_PREVIEW_END_PURPOSE, Er as profileWorkspaceModeSchema, Et as normalizeSpaceCursorPatch, F as createSpaceThreadResponseSchema, Fn as LEGACY_RUNTIME_DISPATCH_POLICY, Ft as postNormalMessageResponseSchema, G as ensureAgentProfilePrimaryBindingResponseSchema, Gn as atsSpaceEgressActionSchema, Gt as querySpaceDeletionTombstonesResponseSchema, H as deleteSpaceResponseSchema, Hn as SPACE_PASSWORD_MIN_LENGTH, Ht as projectObservabilityWakeCorrelation, I as createStartSessionBodySchema, In as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, It as postSpaceMembersBodySchema, J as forgetCurrentComputerResponseSchema, Jn as atsdTaskResultPayloadSchema, Jt as resolveStartHandoffBodySchema, K as entryBriefSchema, Kn as atsdTaskResultEnvelopeWriteSchema, Kt as removeSpaceMembersResponseSchema, L as currentDeviceTargetResponseSchema, Ln as MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH, Lt as postSpaceMembersResponseSchema, M as createSpaceDiagnosticReportResponseSchema, Mn as DISPATCH_ACTIVITY_DISPATCHING_PURPOSE, Mt as patchSpaceContractResponseSchema, N as createSpaceResponseSchema, Nn as DISPATCH_ACTIVITY_FAILED_PURPOSE, Nr as runtimeCoordinatorExecutionTokenEnvelopeSchema, Nt as patchStartSessionBodySchema, O as catchupResponseSchema, On as ATSD_TASK_RESULT_SCHEMA_VERSION, Or as resolveMessageEnvelopeTargetField, Ot as notifyAgentProfileRouteCatalogChangedResponseSchema, P as createSpaceThreadBodySchema, Pn as DISPATCH_ACTIVITY_RETRYING_PURPOSE, Pr as sanitizeSignalTextPreview, Pt as postNormalMessageBodySchema, Q as formatLocalSetupActionLabel, Qn as canonicalizeBuiltinAgentControllerRef, Qt as setLocalRuntimeDisplayNameBodySchema, R as currentLocalRuntimeReplyReadinessResponseSchema, Rn as MESSAGE_MENTION_TYPE_VALUES, Rt as postSpaceThreadSignalBodySchema, S as agentExecutionReadinessRouteParamsSchema, Sn as writeSetupTokenLocalRuntimeObservedMetadataBodySchema, Sr as normalizeOptionalWorkingDirectory, St as listSpaceThreadsResponseSchema, T as atsRequestContextSchema, Tn as AGENT_REPLYING_PURPOSE, Tr as parseOptionalClientMessageId, Tt as normalizeListSignalsReadQuerySemantics, U as dispatchBriefSchema, Un as SPACE_UPDATES_MAX_LIMIT, Ut as projectSpaceDispatchTraceFinalVisibleOutcome, V as daemonRuntimeLeaseSchema, Vn as SPACE_MENTION_REJECT_NOTICE_PURPOSE, Vt as prepareSessionStreamServerFrameSchema, W as ensureAgentProfilePrimaryBindingBodySchema, Wn as atsRuntimeProfileIdSchema, Wt as providerDispatchRuntimeContextSchema, X as formatLocalComponentsSummaryLabel, Xn as buildAgentControllerRoutingKey, Xt as serverErrorFrameSchema, Y as formatLocalComponentsSummaryDescription, Yn as buildAgentControllerConversationRef, Yt as resolveStartHandoffResponseSchema, Z as formatLocalSetupActionDescription, Zn as canonicalizeAgentControllerRef, Zt as setCurrentDeviceTargetBodySchema, _ as ATSD_CONTROL_PLANE_SCHEMA_VERSION, _n as submitRuntimeRegistrationResponseSchema, _r as formatCanonicalMentionLiteral, _t as installedLocalComponentsSnapshotSchema, a as runWithHeldLock, an as spaceViewerMembershipResponseSchema, ar as daemonHubDispatchPreviewEndRequestSchema, at as getPrepareReadinessQuerySchema, b as LOCAL_COMPONENTS_SCHEMA_VERSION, bn as writeCurrentDeviceObservedMetadataBodySchema, br as normalizeKnownBuiltinAgentControllerId, bt as listSpaceThreadEventsResponseSchema, c as LEGACY_ATS_CLI_CONTEXT_ENV_KEY, cn as startSessionProgressSchema, cr as daemonHubHeartbeatRequestSchema, ct as getSpaceDispatchLookupResponseSchema, d as resolveCliContext, dn as startSessionSpaceChoiceResponseSchema, dr as daemonHubRegisterSessionResponseSchema, dt as getSpaceStatusResponseSchema, en as spaceCreatorSchema, er as conversationExecutionStateSchema, et as gatewayErrorEnvelopeSchema, f as resolveCliContextId, fn as startSessionWithTokenResponseSchema, fr as daemonHubRouteCatalogChangedFramePayloadSchema, ft as getSpaceThreadResponseSchema, g as resolveMappedPublicAgentFailureReason, gn as submitRuntimeRegistrationBodySchema, gr as daemonStreamFrameSchema, gt as incomingServerMessageSchema, h as resolveBuiltinAgentControllerBrand, hn as submitRuntimeAgentControllerReportsResponseSchema, hr as daemonServiceLaneSchema, ht as getSpaceWakeTraceWaterfallResponseSchema, i as releaseLock, in as spaceMetaSchema, ir as daemonHubDispatchLifecycleRequestSchema, it as getAgentProfilePrimaryBindingResponseSchema, j as createSpaceDiagnosticReportBodySchema, jn as DAEMON_HUB_SCHEMA_VERSION, jt as patchSpaceContractBodySchema, k as continuitySchema, kn as CONVERSATION_CONTINUITY_WARNING_PURPOSE, kr as resolveSingleSpaceMentionLabels, kt as observabilityWakeTraceSelectorSchema, l as listCliContextStates, ln as startSessionResponseSchema, lr as daemonHubHeartbeatResponseSchema, lt as getSpaceDispatchResultResponseSchema, m as CODEX_UPGRADE_REQUIRED_REASON, mn as submitRuntimeAgentControllerReportsBodySchema, mr as daemonServiceContractSchema, mt as getSpaceWakeProgressResponseSchema, n as isAtsLockError, nn as spaceIdentityDirectorySchema, nr as daemonHubDeliverDispatchRequestSchema, nt as getAgentExecutionReadinessBatchResponseSchema, o as tryCleanupStaleLock, on as startDeviceProjectionSchema, or as daemonHubDispatchPreviewRequestSchema, ot as getPrepareReadinessResponseSchema, p as writeCliContextState, pn as structuredGuidePayloadFromInputSchema, pr as daemonHubSubmitTaskResultRequestSchema, pt as getSpaceUpdatesResponseSchema, q as forgetComputerResponseSchema, qn as atsdTaskResultOpenClawGatewayVisibilityStatusSchema, qt as resolveSpaceDispatchTraceRootCause, r as readLockMeta, rn as spaceMembersSnapshotSchema, rr as daemonHubDeliveryExecutionIdentitySchema, rt as getAgentExecutionReadinessResponseSchema, s as ATS_CLI_CONTEXT_ENV_KEY, sn as startProfileReadinessSummarySchema, sr as daemonHubDispatchRuntimeEvidenceRequestSchema, st as getSpaceContractResponseSchema, t as acquireLock, tn as spaceDispatchTraceResponseSchema, tr as createDaemonRouteObservationSummary, tt as getAgentExecutionReadinessBatchBodySchema, u as readCliContextState, un as startSessionSpaceChoiceBodySchema, ur as daemonHubRegisterSessionRequestSchema, ut as getSpaceMessageDetailsResponseSchema, v as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, vn as upsertProfileSpaceHistoryResponseSchema, vr as getSpaceMessageAddressingRelationSupportForTargetKind, vt as leaveSpaceResponseSchema, w as atsProfileIdSchema, wn as AGENT_REPLYING_END_PURPOSE, wr as parseAgentControllerRef$1, wt as localRuntimesResponseSchema, x as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, xn as writeCurrentDeviceObservedMetadataResponseSchema, xr as normalizeMessageEnvelope, xt as listSpaceThreadSignalsResponseSchema, y as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_VERSION, yn as upsertSpaceDeletionTombstoneResponseSchema, yr as normalizeBuiltinAgentControllerId, yt as listProfileSpaceHistoryResponseSchema, z as daemonRouteCatalogCacheSchema, zn as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, zt as postSpaceThreadSignalResponseSchema } from "./lock-DV2_jevB.js";
|
|
4
4
|
import { A as runtimeDir, C as normalizeAtsProfileId, D as resolveAtsEnvPreset, E as resolveAtsCliEntryNameFromArgv, F as systemDir, N as skillsDir, O as resolveAtsRootDir, P as spacesDir, S as normalizeAccountKey, T as profileViewPath, a as accountProfileWorkspacePath, c as atsRootDir, d as deviceOpenClawProfileBootstrapPath, f as deviceOpenClawProfileDir, i as accountProfileViewPath, j as runtimeLogsDir, k as resolveDefaultAtsHomeDirname, n as accountProfileLocalMetaPath, o as accountsDir, p as deviceOpenClawProfileWorkspaceDir, r as accountProfileSpaceCacheDir, s as atsBackupsDir, t as ATS_HOME_ENV_KEY, w as profileDir, y as legacyAccountProfileSpacesDir } from "./paths-DFiopT5Y.js";
|
|
5
|
-
import { A as toSpaceDeleteUrl, B as toSpaceUpdatesUrl, C as updateConfiguredSkillsConfig, D as toSpaceContractUrl, E as toDaemonRouteObservationUrl, F as toSpaceMetaUrl, I as toSpacePasswordUrl, L as toSpaceRemoveMembersUrl, M as toSpaceDispatchTraceUrl, N as toSpaceLeaveUrl, O as toSpaceCreateUrl, P as toSpaceMembersUrl, R as toSpaceResultUrl, S as updateConfiguredOnboardingConfig, T as normalizeBaseUrl, V as toSpaceWsUrl, _ as getRuntimeConfigReadHealth, a as resolveBaseUrlOrNull, b as setConfiguredSkillsConfig, c as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, d as getConfiguredDaemonDispatchLimits, f as getConfiguredDeviceRuntimeState, g as getConfiguredViewCustomization, h as getConfiguredStartV1OnboardingState, i as resolveBaseUrl, j as toSpaceDispatchLookupUrl, k as toSpaceCursorUrl, l as alignRuntimeConfigStorage, m as getConfiguredSkillsConfig, n as normalizeGatewayBaseUrl, o as resolveDefaultGatewayBaseUrl, p as getConfiguredOnboardingDisclaimerAcceptedAt, r as normalizeGatewayBaseUrlOrNull, s as resolveExplicitGatewayUrlOrThrow, u as createDefaultRuntimeAgentControllerSettings, v as resolveRuntimeSkillsCustomTargetId, w as updateConfiguredStartV1OnboardingState, x as updateConfiguredDeviceRuntimeState, y as setConfiguredBaseUrl, z as toSpaceSignalsUrl } from "./base-url-
|
|
5
|
+
import { A as toSpaceDeleteUrl, B as toSpaceUpdatesUrl, C as updateConfiguredSkillsConfig, D as toSpaceContractUrl, E as toDaemonRouteObservationUrl, F as toSpaceMetaUrl, I as toSpacePasswordUrl, L as toSpaceRemoveMembersUrl, M as toSpaceDispatchTraceUrl, N as toSpaceLeaveUrl, O as toSpaceCreateUrl, P as toSpaceMembersUrl, R as toSpaceResultUrl, S as updateConfiguredOnboardingConfig, T as normalizeBaseUrl, V as toSpaceWsUrl, _ as getRuntimeConfigReadHealth, a as resolveBaseUrlOrNull, b as setConfiguredSkillsConfig, c as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, d as getConfiguredDaemonDispatchLimits, f as getConfiguredDeviceRuntimeState, g as getConfiguredViewCustomization, h as getConfiguredStartV1OnboardingState, i as resolveBaseUrl, j as toSpaceDispatchLookupUrl, k as toSpaceCursorUrl, l as alignRuntimeConfigStorage, m as getConfiguredSkillsConfig, n as normalizeGatewayBaseUrl, o as resolveDefaultGatewayBaseUrl, p as getConfiguredOnboardingDisclaimerAcceptedAt, r as normalizeGatewayBaseUrlOrNull, s as resolveExplicitGatewayUrlOrThrow, u as createDefaultRuntimeAgentControllerSettings, v as resolveRuntimeSkillsCustomTargetId, w as updateConfiguredStartV1OnboardingState, x as updateConfiguredDeviceRuntimeState, y as setConfiguredBaseUrl, z as toSpaceSignalsUrl } from "./base-url-Gd_RGCHM.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { Command, Option } from "commander";
|
|
8
8
|
import { accessSync, appendFileSync, chmodSync, constants, existsSync, mkdirSync, readFileSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -27,7 +27,7 @@ import wrapAnsi from "wrap-ansi";
|
|
|
27
27
|
import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybindings, matchesKey } from "@mariozechner/pi-tui";
|
|
28
28
|
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "0.7.
|
|
30
|
+
var version = "0.7.39";
|
|
31
31
|
var package_default = {
|
|
32
32
|
$schema: "https://www.schemastore.org/package.json",
|
|
33
33
|
name: "agent-transport-system",
|
|
@@ -12007,7 +12007,7 @@ async function setDaemonServiceRuntimeState(state, pathInput = {}) {
|
|
|
12007
12007
|
await writeDaemonServiceRuntimeState(state, pathInput);
|
|
12008
12008
|
}
|
|
12009
12009
|
async function clearDaemonServiceRuntimeState(pathInput = {}) {
|
|
12010
|
-
const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-
|
|
12010
|
+
const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-BzvcJMMC.js");
|
|
12011
12011
|
await Promise.all([rm(daemonServiceRuntimeStatePath(pathInput), { force: true }), clearDaemonRuntimeLease(pathInput)]);
|
|
12012
12012
|
}
|
|
12013
12013
|
async function withDaemonServiceRunLock(callback, meta = {
|
|
@@ -20623,6 +20623,9 @@ function buildSpaceStatusPath(spaceId) {
|
|
|
20623
20623
|
function buildSpaceMembersPath(spaceId) {
|
|
20624
20624
|
return buildSpaceRoutePath(spaceId, "members");
|
|
20625
20625
|
}
|
|
20626
|
+
function buildSpaceIdentityDirectoryPath(spaceId) {
|
|
20627
|
+
return buildSpaceRoutePath(spaceId, "identity-directory");
|
|
20628
|
+
}
|
|
20626
20629
|
function buildSpaceViewerMembershipPath(spaceId) {
|
|
20627
20630
|
return buildSpaceRoutePath(spaceId, "viewer-membership");
|
|
20628
20631
|
}
|
|
@@ -20750,6 +20753,16 @@ async function getSpaceMembersSnapshot(client, input) {
|
|
|
20750
20753
|
invalidMessage: "invalid space members response"
|
|
20751
20754
|
});
|
|
20752
20755
|
}
|
|
20756
|
+
async function getSpaceIdentityDirectory(client, input) {
|
|
20757
|
+
return await client.requestJson({
|
|
20758
|
+
url: buildSpaceIdentityDirectoryPath(input.spaceId),
|
|
20759
|
+
operation: "space.identity_directory.read",
|
|
20760
|
+
requestContext: input.requestContext,
|
|
20761
|
+
...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
|
|
20762
|
+
schema: spaceIdentityDirectorySchema,
|
|
20763
|
+
invalidMessage: "invalid space identity directory response"
|
|
20764
|
+
});
|
|
20765
|
+
}
|
|
20753
20766
|
async function getSpaceViewerMembership(client, input) {
|
|
20754
20767
|
return await client.requestJson({
|
|
20755
20768
|
url: buildSpaceViewerMembershipPath(input.spaceId),
|
|
@@ -21041,6 +21054,7 @@ const createSpaceApi = (client) => {
|
|
|
21041
21054
|
leaveSpace: async (input) => await leaveSpace$1(client, input),
|
|
21042
21055
|
getStatus: async (input) => await getSpaceStatus(client, input),
|
|
21043
21056
|
getMembersSnapshot: async (input) => await getSpaceMembersSnapshot(client, input),
|
|
21057
|
+
getIdentityDirectory: async (input) => await getSpaceIdentityDirectory(client, input),
|
|
21044
21058
|
getViewerMembership: async (input) => await getSpaceViewerMembership(client, input),
|
|
21045
21059
|
listSignals: async (input) => await listSpaceSignals(client, input),
|
|
21046
21060
|
listSignalEnvelopes: async (input) => await listSpaceSignalEnvelopes(client, input),
|
|
@@ -32556,17 +32570,25 @@ function buildPublicPresencePresentation(input) {
|
|
|
32556
32570
|
function createSpaceMemberIdentityIndex(input) {
|
|
32557
32571
|
const byProfileId = /* @__PURE__ */ new Map();
|
|
32558
32572
|
for (const signal of input.signals ?? []) registerSignalIdentity(byProfileId, signal);
|
|
32559
|
-
for (const
|
|
32560
|
-
|
|
32561
|
-
|
|
32562
|
-
|
|
32563
|
-
|
|
32564
|
-
|
|
32565
|
-
|
|
32566
|
-
|
|
32567
|
-
|
|
32573
|
+
for (const entry of input.identityDirectory?.entries ?? []) registerAuthoritativeIdentityEntry(byProfileId, {
|
|
32574
|
+
profileId: entry.profileId,
|
|
32575
|
+
profileKind: normalizeProfileKind$1(entry.profileKind),
|
|
32576
|
+
profileName: entry.profileName,
|
|
32577
|
+
source: "identity_directory"
|
|
32578
|
+
});
|
|
32579
|
+
for (const member of [...input.snapshot?.humans ?? [], ...input.snapshot?.agents ?? []]) registerAuthoritativeIdentityEntry(byProfileId, {
|
|
32580
|
+
profileId: member.profileId,
|
|
32581
|
+
profileKind: normalizeProfileKind$1(member.profileKind),
|
|
32582
|
+
profileName: member.profileName,
|
|
32583
|
+
source: "member_snapshot"
|
|
32584
|
+
});
|
|
32568
32585
|
return { byProfileId };
|
|
32569
32586
|
}
|
|
32587
|
+
function registerAuthoritativeIdentityEntry(byProfileId, input) {
|
|
32588
|
+
const existingEntry = byProfileId.get(input.profileId);
|
|
32589
|
+
if (existingEntry?.source === "identity_directory" || existingEntry?.source === "member_snapshot") throw new Error(`Invariant violation: duplicate profile id "${input.profileId}" in space member identity index.`);
|
|
32590
|
+
byProfileId.set(input.profileId, input);
|
|
32591
|
+
}
|
|
32570
32592
|
function registerSignalIdentity(byProfileId, signal) {
|
|
32571
32593
|
registerIdentityEntry(byProfileId, {
|
|
32572
32594
|
profileId: normalizeOptionalText$4$1(signal.profile?.profileId),
|
|
@@ -32585,7 +32607,8 @@ function registerSignalIdentity(byProfileId, signal) {
|
|
|
32585
32607
|
}
|
|
32586
32608
|
function registerIdentityEntry(byProfileId, input) {
|
|
32587
32609
|
if (!(input.profileId && input.profileName)) return;
|
|
32588
|
-
|
|
32610
|
+
const existingEntry = byProfileId.get(input.profileId);
|
|
32611
|
+
if (existingEntry?.source === "identity_directory" || existingEntry?.source === "member_snapshot") return;
|
|
32589
32612
|
byProfileId.set(input.profileId, {
|
|
32590
32613
|
profileId: input.profileId,
|
|
32591
32614
|
profileKind: input.profileKind,
|
|
@@ -32604,7 +32627,7 @@ function buildSignalIndex(events) {
|
|
|
32604
32627
|
return new Map(events.map((event) => [event.id, event]));
|
|
32605
32628
|
}
|
|
32606
32629
|
function buildSignalMessageReadProjection(input) {
|
|
32607
|
-
const memberIdentityIndex = buildMemberIdentityIndex(input.membersSnapshot ?? null, input.signalIndex ?? null);
|
|
32630
|
+
const memberIdentityIndex = buildMemberIdentityIndex(input.identityDirectory ?? null, input.membersSnapshot ?? null, input.signalIndex ?? null);
|
|
32608
32631
|
const envelope = readSignalMessageEnvelope(input.signal);
|
|
32609
32632
|
const replyTo = readSignalReplyTo(input.signal);
|
|
32610
32633
|
const replyToSignalId = normalizeOptionalText$3$1(envelope?.replyToSignalId ?? replyTo?.signalId);
|
|
@@ -32624,7 +32647,7 @@ function buildSignalMessageReadProjection(input) {
|
|
|
32624
32647
|
};
|
|
32625
32648
|
}
|
|
32626
32649
|
function buildDispatchResultMessageReadProjection(input) {
|
|
32627
|
-
const memberIdentityIndex = buildMemberIdentityIndex(input.membersSnapshot ?? null, input.signalIndex ?? null);
|
|
32650
|
+
const memberIdentityIndex = buildMemberIdentityIndex(input.identityDirectory ?? null, input.membersSnapshot ?? null, input.signalIndex ?? null);
|
|
32628
32651
|
const envelope = input.result.messageEnvelope ?? null;
|
|
32629
32652
|
const replyToSignalId = normalizeOptionalText$3$1(envelope?.replyToSignalId ?? input.result.replyToSignalId);
|
|
32630
32653
|
return {
|
|
@@ -32769,10 +32792,11 @@ function resolveTargetByProfileId(profileId, memberIdentityIndex) {
|
|
|
32769
32792
|
if (!memberIdentityIndex) return null;
|
|
32770
32793
|
return memberIdentityIndex.byProfileId.get(profileId) ?? null;
|
|
32771
32794
|
}
|
|
32772
|
-
function buildMemberIdentityIndex(membersSnapshot, signalIndex) {
|
|
32773
|
-
if (!(membersSnapshot || signalIndex)) return null;
|
|
32795
|
+
function buildMemberIdentityIndex(identityDirectory, membersSnapshot, signalIndex) {
|
|
32796
|
+
if (!(identityDirectory || membersSnapshot || signalIndex)) return null;
|
|
32774
32797
|
return createSpaceMemberIdentityIndex({
|
|
32775
|
-
|
|
32798
|
+
identityDirectory,
|
|
32799
|
+
snapshot: identityDirectory ? null : membersSnapshot,
|
|
32776
32800
|
signals: signalIndex ? signalIndex.values() : null
|
|
32777
32801
|
});
|
|
32778
32802
|
}
|
|
@@ -32787,6 +32811,7 @@ function buildSpaceRoundReadProjection(input) {
|
|
|
32787
32811
|
const sourceSignal = input.sourceSignal ?? input.signalIndex?.get(normalizeRequiredText$1(input.sourceSignalId)) ?? null;
|
|
32788
32812
|
const sourceMessageReadProjection = sourceSignal ? buildSignalMessageReadProjection({
|
|
32789
32813
|
signal: sourceSignal,
|
|
32814
|
+
identityDirectory: input.identityDirectory ?? null,
|
|
32790
32815
|
membersSnapshot: input.membersSnapshot ?? null,
|
|
32791
32816
|
signalIndex: input.signalIndex ?? null
|
|
32792
32817
|
}) : null;
|
|
@@ -60002,7 +60027,7 @@ const SUMMARY_BY_COMMAND = {
|
|
|
60002
60027
|
publication_set: "Use `ats space publication set --view agent` with an explicit Space ID, mode, owner profile, and Space password to change how agent output becomes visible.",
|
|
60003
60028
|
status: "Use `ats space status --view agent` with an explicit space ID to read the current space status deterministically.",
|
|
60004
60029
|
updates: "Use `ats space updates --view agent` with an explicit anchor signal to read formal post-anchor updates deterministically as signal envelopes plus `messageReadProjection`.",
|
|
60005
|
-
result: "Use `ats space result --view agent` with exactly one selector to read
|
|
60030
|
+
result: "Use `ats space result --view agent` with exactly one selector to read an archived dispatch result plus `messageReadProjection`. Use `ats service trace --view agent` to diagnose Wake execution and the final visible Space outcome.",
|
|
60006
60031
|
password: "Use `ats space password --view agent` with an explicit space ID and one explicit password action.",
|
|
60007
60032
|
guide: "Use `ats space guide --view agent` to read, `ats space guide set --view agent` to update, and `ats space guide clear --view agent` to clear the current space guide deterministically.",
|
|
60008
60033
|
add_members: "Use `ats space add-members --profile <profile-id> <space-id> --member <profile-id...> --view agent` with explicit acting profile, Space ID, and member selection.",
|
|
@@ -67289,6 +67314,7 @@ function buildFormalSignalReadPayload(input) {
|
|
|
67289
67314
|
if (!isMessageSemanticSignal$1(input.signal)) return input.signal;
|
|
67290
67315
|
const messageReadProjection = buildSignalMessageReadProjection({
|
|
67291
67316
|
signal: input.signal,
|
|
67317
|
+
identityDirectory: input.identityDirectory ?? null,
|
|
67292
67318
|
membersSnapshot: input.membersSnapshot ?? null,
|
|
67293
67319
|
signalIndex: input.signalIndex ?? null
|
|
67294
67320
|
});
|
|
@@ -67307,6 +67333,7 @@ function buildFormalDispatchResultReadPayload(input) {
|
|
|
67307
67333
|
...input.result,
|
|
67308
67334
|
messageReadProjection: buildDispatchResultMessageReadProjection({
|
|
67309
67335
|
result: input.result,
|
|
67336
|
+
identityDirectory: input.identityDirectory ?? null,
|
|
67310
67337
|
membersSnapshot: input.membersSnapshot ?? null,
|
|
67311
67338
|
signalIndex: input.signalIndex ?? null
|
|
67312
67339
|
})
|
|
@@ -73449,10 +73476,79 @@ function listSpaceMemberProfileIds(snapshot) {
|
|
|
73449
73476
|
function withResolvedSpacePassword(spacePassword) {
|
|
73450
73477
|
return spacePassword === void 0 ? {} : { spacePassword };
|
|
73451
73478
|
}
|
|
73452
|
-
|
|
73479
|
+
function buildIdentityOnlyMembersSnapshotForReadProjection(identityDirectory) {
|
|
73480
|
+
if (!identityDirectory) return null;
|
|
73481
|
+
const humans = identityDirectory.entries.filter((entry) => entry.profileKind === "human").map((entry) => ({
|
|
73482
|
+
profileId: entry.profileId,
|
|
73483
|
+
profileName: entry.profileName,
|
|
73484
|
+
profileKind: "human",
|
|
73485
|
+
status: "active",
|
|
73486
|
+
memberSource: "backfilled",
|
|
73487
|
+
memberSourceLabel: "Member",
|
|
73488
|
+
addedAt: identityDirectory.generatedAt,
|
|
73489
|
+
removedAt: null,
|
|
73490
|
+
createdAt: identityDirectory.generatedAt,
|
|
73491
|
+
updatedAt: identityDirectory.generatedAt,
|
|
73492
|
+
addedByProfileId: null,
|
|
73493
|
+
addedByOwnerUserId: null,
|
|
73494
|
+
addedByDisplayName: null,
|
|
73495
|
+
removedByProfileId: null,
|
|
73496
|
+
removedByOwnerUserId: null,
|
|
73497
|
+
removalReason: null,
|
|
73498
|
+
firstEnteredAt: null,
|
|
73499
|
+
lastEnteredAt: null,
|
|
73500
|
+
lastSeenAt: null,
|
|
73501
|
+
lastSeenLabel: null,
|
|
73502
|
+
liveNow: false,
|
|
73503
|
+
mentionAlias: entry.mentionAlias,
|
|
73504
|
+
ownerUserId: entry.ownerUserId,
|
|
73505
|
+
ownerName: entry.ownerName
|
|
73506
|
+
}));
|
|
73507
|
+
const agents = identityDirectory.entries.filter((entry) => entry.profileKind === "agent").map((entry) => ({
|
|
73508
|
+
profileId: entry.profileId,
|
|
73509
|
+
profileName: entry.profileName,
|
|
73510
|
+
profileKind: "agent",
|
|
73511
|
+
status: "active",
|
|
73512
|
+
memberSource: "backfilled",
|
|
73513
|
+
memberSourceLabel: "Member",
|
|
73514
|
+
addedAt: identityDirectory.generatedAt,
|
|
73515
|
+
removedAt: null,
|
|
73516
|
+
createdAt: identityDirectory.generatedAt,
|
|
73517
|
+
updatedAt: identityDirectory.generatedAt,
|
|
73518
|
+
addedByProfileId: null,
|
|
73519
|
+
addedByOwnerUserId: null,
|
|
73520
|
+
addedByDisplayName: null,
|
|
73521
|
+
removedByProfileId: null,
|
|
73522
|
+
removedByOwnerUserId: null,
|
|
73523
|
+
removalReason: null,
|
|
73524
|
+
firstEnteredAt: null,
|
|
73525
|
+
lastEnteredAt: null,
|
|
73526
|
+
lastSeenAt: null,
|
|
73527
|
+
lastSeenLabel: null,
|
|
73528
|
+
liveNow: false,
|
|
73529
|
+
mentionAlias: entry.mentionAlias,
|
|
73530
|
+
ownerUserId: entry.ownerUserId,
|
|
73531
|
+
ownerName: entry.ownerName,
|
|
73532
|
+
agentControllerRef: entry.agentControllerRef,
|
|
73533
|
+
agentControllerConversationId: null
|
|
73534
|
+
}));
|
|
73535
|
+
return {
|
|
73536
|
+
spaceId: identityDirectory.spaceId,
|
|
73537
|
+
generatedAt: identityDirectory.generatedAt,
|
|
73538
|
+
summary: {
|
|
73539
|
+
totalCount: humans.length + agents.length,
|
|
73540
|
+
humanCount: humans.length,
|
|
73541
|
+
agentCount: agents.length,
|
|
73542
|
+
liveNowCount: 0
|
|
73543
|
+
},
|
|
73544
|
+
humans,
|
|
73545
|
+
agents
|
|
73546
|
+
};
|
|
73547
|
+
}
|
|
73548
|
+
async function loadSpaceIdentityDirectoryOrNull(input) {
|
|
73453
73549
|
if (input.skip === true) return null;
|
|
73454
73550
|
try {
|
|
73455
|
-
return await input.spaceApi.
|
|
73551
|
+
return await input.spaceApi.getIdentityDirectory({
|
|
73456
73552
|
spaceId: input.spaceId,
|
|
73457
73553
|
requestContext: input.requestContext,
|
|
73458
73554
|
...withResolvedSpacePassword(input.resolvedPassword)
|
|
@@ -73611,13 +73707,15 @@ async function runTail(input) {
|
|
|
73611
73707
|
password: input.password,
|
|
73612
73708
|
space
|
|
73613
73709
|
}).catch(() => null);
|
|
73614
|
-
const
|
|
73710
|
+
const identityDirectory = await loadSpaceIdentityDirectoryOrNull({
|
|
73711
|
+
spaceApi,
|
|
73615
73712
|
spaceId: space,
|
|
73616
73713
|
requestContext,
|
|
73617
|
-
|
|
73618
|
-
})
|
|
73714
|
+
resolvedPassword: input.password
|
|
73715
|
+
});
|
|
73716
|
+
const identityOnlyMembersSnapshot = buildIdentityOnlyMembersSnapshotForReadProjection(identityDirectory);
|
|
73619
73717
|
if (shouldPromoteHistorySignalIndex({
|
|
73620
|
-
|
|
73718
|
+
identityDirectory,
|
|
73621
73719
|
signals: parsedEnvelopes,
|
|
73622
73720
|
signalIndex
|
|
73623
73721
|
})) signalIndex = await loadSpaceSignalIndexOrNull({
|
|
@@ -73631,7 +73729,7 @@ async function runTail(input) {
|
|
|
73631
73729
|
outJsonLine(buildSpaceHistoryBriefPayload({
|
|
73632
73730
|
atsProfile,
|
|
73633
73731
|
events: parsedEnvelopes,
|
|
73634
|
-
|
|
73732
|
+
identityDirectory,
|
|
73635
73733
|
signalIndex,
|
|
73636
73734
|
spaceId: space
|
|
73637
73735
|
}));
|
|
@@ -73642,19 +73740,19 @@ async function runTail(input) {
|
|
|
73642
73740
|
const transcriptItems = buildHumanReadSignalsTranscriptItems({
|
|
73643
73741
|
atsProfile,
|
|
73644
73742
|
events: parsedEnvelopes,
|
|
73645
|
-
membersSnapshot:
|
|
73743
|
+
membersSnapshot: identityOnlyMembersSnapshot,
|
|
73646
73744
|
signalIndex
|
|
73647
73745
|
});
|
|
73648
73746
|
const transcriptProjection = buildHumanTranscriptProjection({
|
|
73649
73747
|
items: transcriptItems,
|
|
73650
|
-
membersSnapshot:
|
|
73748
|
+
membersSnapshot: identityOnlyMembersSnapshot,
|
|
73651
73749
|
sessionProfile: buildSpaceSessionProfileContext(atsProfile)
|
|
73652
73750
|
});
|
|
73653
73751
|
if (canUseHumanHistoryPiTui) {
|
|
73654
73752
|
await runHumanHistoryPiTuiViewer({
|
|
73655
73753
|
atsProfile,
|
|
73656
73754
|
baseUrl,
|
|
73657
|
-
membersSnapshot:
|
|
73755
|
+
membersSnapshot: identityOnlyMembersSnapshot,
|
|
73658
73756
|
password: input.password,
|
|
73659
73757
|
space,
|
|
73660
73758
|
spaceMeta,
|
|
@@ -73666,43 +73764,37 @@ async function runTail(input) {
|
|
|
73666
73764
|
atsProfile,
|
|
73667
73765
|
presenter,
|
|
73668
73766
|
transcriptItems,
|
|
73669
|
-
membersSnapshot:
|
|
73767
|
+
membersSnapshot: identityOnlyMembersSnapshot,
|
|
73670
73768
|
focusedSummary: buildFocusedHistorySummary({ systemNoticeCount: transcriptProjection.hiddenSummary.hiddenSystemNoticeCount })
|
|
73671
73769
|
});
|
|
73672
73770
|
return;
|
|
73673
73771
|
}
|
|
73674
73772
|
const shouldEmitFullEnvelope = input.json || agentRawContract;
|
|
73675
|
-
const spaceMembersSnapshot = shouldEmitFullEnvelope ? null :
|
|
73676
|
-
if (agentRawContract) {
|
|
73677
|
-
|
|
73678
|
-
|
|
73679
|
-
|
|
73680
|
-
|
|
73681
|
-
|
|
73682
|
-
|
|
73683
|
-
|
|
73684
|
-
|
|
73685
|
-
|
|
73686
|
-
|
|
73687
|
-
|
|
73688
|
-
|
|
73689
|
-
|
|
73690
|
-
|
|
73691
|
-
|
|
73692
|
-
|
|
73693
|
-
}));
|
|
73694
|
-
if (fetchedMembersSnapshot) outJsonLine({
|
|
73695
|
-
type: "system.space.members",
|
|
73696
|
-
payload: normalizeAgentOutputMembersSnapshot(fetchedMembersSnapshot)
|
|
73697
|
-
});
|
|
73698
|
-
}
|
|
73773
|
+
const spaceMembersSnapshot = shouldEmitFullEnvelope ? null : identityOnlyMembersSnapshot;
|
|
73774
|
+
if (agentRawContract && spaceMeta) outJsonLine(buildAgentSessionMetaPayload({
|
|
73775
|
+
gatewayUrl: baseUrl,
|
|
73776
|
+
mode: "history viewer",
|
|
73777
|
+
passwordProtected: spaceMeta.passwordProtected,
|
|
73778
|
+
agentControllerConversationId: void 0,
|
|
73779
|
+
agentControllerRef: void 0,
|
|
73780
|
+
profileId: atsProfile.atsProfileId,
|
|
73781
|
+
profileKind: atsProfile.profileKind,
|
|
73782
|
+
profileName: atsProfile.profileName,
|
|
73783
|
+
ownerName: atsProfile.ownerName,
|
|
73784
|
+
ownerUserId: atsProfile.ownerUserId,
|
|
73785
|
+
spaceCreatedAt: spaceMeta.createdAt,
|
|
73786
|
+
spaceCreatorId: spaceMeta.creator?.profileId,
|
|
73787
|
+
spaceCreatorName: spaceMeta.creator?.profileName,
|
|
73788
|
+
spaceId: space,
|
|
73789
|
+
spaceName: spaceMeta.name
|
|
73790
|
+
}));
|
|
73699
73791
|
let emitted = 0;
|
|
73700
73792
|
for (const env of parsedEnvelopes) {
|
|
73701
73793
|
emitted += 1;
|
|
73702
73794
|
if (agentRawContract) {
|
|
73703
73795
|
outJsonLine(buildFormalSignalReadPayload({
|
|
73704
73796
|
signal: normalizeAgentOutputEvent(env),
|
|
73705
|
-
|
|
73797
|
+
identityDirectory,
|
|
73706
73798
|
signalIndex
|
|
73707
73799
|
}));
|
|
73708
73800
|
continue;
|
|
@@ -73712,7 +73804,7 @@ async function runTail(input) {
|
|
|
73712
73804
|
code: "tail.signal",
|
|
73713
73805
|
payload: buildFormalSignalReadPayload({
|
|
73714
73806
|
signal: env,
|
|
73715
|
-
|
|
73807
|
+
identityDirectory,
|
|
73716
73808
|
signalIndex
|
|
73717
73809
|
})
|
|
73718
73810
|
});
|
|
@@ -73778,7 +73870,7 @@ function shouldPromoteHistorySignalIndex(input) {
|
|
|
73778
73870
|
if (!isMessageSemanticSignal(signal)) continue;
|
|
73779
73871
|
const projection = buildSignalMessageReadProjection({
|
|
73780
73872
|
signal,
|
|
73781
|
-
|
|
73873
|
+
identityDirectory: input.identityDirectory,
|
|
73782
73874
|
signalIndex: input.signalIndex
|
|
73783
73875
|
});
|
|
73784
73876
|
if (projection.replyToSignalId && projection.replyToContext?.resolved !== true) return true;
|
|
@@ -73803,7 +73895,7 @@ function buildSpaceHistoryBriefPayload(input) {
|
|
|
73803
73895
|
},
|
|
73804
73896
|
messages: input.events.map((event) => buildSpaceHistoryBriefMessage({
|
|
73805
73897
|
event,
|
|
73806
|
-
|
|
73898
|
+
identityDirectory: input.identityDirectory,
|
|
73807
73899
|
signalIndex: input.signalIndex
|
|
73808
73900
|
}))
|
|
73809
73901
|
};
|
|
@@ -73811,7 +73903,7 @@ function buildSpaceHistoryBriefPayload(input) {
|
|
|
73811
73903
|
function buildSpaceHistoryBriefMessage(input) {
|
|
73812
73904
|
const messageReadProjection = isMessageSemanticSignal(input.event) ? buildSignalMessageReadProjection({
|
|
73813
73905
|
signal: input.event,
|
|
73814
|
-
|
|
73906
|
+
identityDirectory: input.identityDirectory,
|
|
73815
73907
|
signalIndex: input.signalIndex
|
|
73816
73908
|
}) : null;
|
|
73817
73909
|
return {
|
|
@@ -96170,7 +96262,7 @@ function buildHumanReplyWorkflowSummary(projection) {
|
|
|
96170
96262
|
}
|
|
96171
96263
|
}
|
|
96172
96264
|
function buildHumanReplyWorkflowSurfaceNote(input) {
|
|
96173
|
-
return input.surface === "result" ? "`space result`
|
|
96265
|
+
return input.surface === "result" ? "`space result` reads archived dispatch results only. Use `ats service trace` to inspect Wake execution and the final visible Space outcome." : "`space updates` shows formal execution evidence for this message round. Use `ats service trace` to inspect Wake execution and the final visible Space outcome.";
|
|
96174
96266
|
}
|
|
96175
96267
|
function buildHumanReplyWorkflowSignalSummary(projection) {
|
|
96176
96268
|
if (!(projection?.hasPublicSignal && projection.publishedSignalId)) return null;
|
|
@@ -96403,19 +96495,22 @@ async function loadSpaceResultProjectionContext(input) {
|
|
|
96403
96495
|
resolvedPassword: input.resolvedPassword,
|
|
96404
96496
|
required: true
|
|
96405
96497
|
});
|
|
96498
|
+
const identityDirectory = await loadSpaceIdentityDirectoryOrNull({
|
|
96499
|
+
spaceApi: input.spaceApi,
|
|
96500
|
+
spaceId: input.spaceId,
|
|
96501
|
+
requestContext: input.requestContext,
|
|
96502
|
+
resolvedPassword: input.resolvedPassword
|
|
96503
|
+
});
|
|
96406
96504
|
return {
|
|
96407
|
-
|
|
96408
|
-
|
|
96409
|
-
spaceId: input.spaceId,
|
|
96410
|
-
requestContext: input.requestContext,
|
|
96411
|
-
resolvedPassword: input.resolvedPassword
|
|
96412
|
-
}),
|
|
96505
|
+
identityDirectory,
|
|
96506
|
+
membersSnapshot: buildIdentityOnlyMembersSnapshotForReadProjection(identityDirectory),
|
|
96413
96507
|
signalIndex
|
|
96414
96508
|
};
|
|
96415
96509
|
}
|
|
96416
96510
|
function emitSpaceResultJsonOutput(input) {
|
|
96417
96511
|
outJsonLine(buildFormalDispatchResultReadPayload({
|
|
96418
96512
|
result: input.result,
|
|
96513
|
+
identityDirectory: input.identityDirectory,
|
|
96419
96514
|
membersSnapshot: input.membersSnapshot,
|
|
96420
96515
|
signalIndex: input.signalIndex
|
|
96421
96516
|
}));
|
|
@@ -96467,7 +96562,7 @@ async function runSpaceResult(input) {
|
|
|
96467
96562
|
if (resultRead.status === "cancelled") return;
|
|
96468
96563
|
const result = resultRead.result;
|
|
96469
96564
|
const resolvedPassword = resultRead.password;
|
|
96470
|
-
const { membersSnapshot, signalIndex } = await loadSpaceResultProjectionContext({
|
|
96565
|
+
const { identityDirectory, membersSnapshot, signalIndex } = await loadSpaceResultProjectionContext({
|
|
96471
96566
|
result,
|
|
96472
96567
|
requestContext,
|
|
96473
96568
|
resolvedPassword,
|
|
@@ -96476,6 +96571,7 @@ async function runSpaceResult(input) {
|
|
|
96476
96571
|
});
|
|
96477
96572
|
if (input.json) {
|
|
96478
96573
|
emitSpaceResultJsonOutput({
|
|
96574
|
+
identityDirectory,
|
|
96479
96575
|
membersSnapshot,
|
|
96480
96576
|
result,
|
|
96481
96577
|
signalIndex
|
|
@@ -96495,7 +96591,7 @@ function decorateSpaceResultReadError(input) {
|
|
|
96495
96591
|
code: failure.code,
|
|
96496
96592
|
message: failure.message
|
|
96497
96593
|
}))) return input.error;
|
|
96498
|
-
const error = /* @__PURE__ */ new Error("No archived dispatch result was found. `space result`
|
|
96594
|
+
const error = /* @__PURE__ */ new Error("No archived dispatch result was found. `space result` reads archived dispatch results only. Use `ats service trace` to inspect Wake execution and the final visible Space outcome.");
|
|
96499
96595
|
error.code = failure.code ?? void 0;
|
|
96500
96596
|
error.requestId = failure.requestId;
|
|
96501
96597
|
error.status = failure.status;
|
|
@@ -97073,6 +97169,7 @@ function emitSpaceUpdatesJsonOutput(input) {
|
|
|
97073
97169
|
sourceSignalId: input.sourceSignalId,
|
|
97074
97170
|
sourceSignal: input.signalIndex?.get(input.sourceSignalId) ?? null,
|
|
97075
97171
|
dispatchExecution: input.dispatchExecution,
|
|
97172
|
+
identityDirectory: input.identityDirectory,
|
|
97076
97173
|
membersSnapshot: input.membersSnapshot,
|
|
97077
97174
|
signalIndex: input.signalIndex,
|
|
97078
97175
|
signals: input.signals
|
|
@@ -97080,6 +97177,7 @@ function emitSpaceUpdatesJsonOutput(input) {
|
|
|
97080
97177
|
});
|
|
97081
97178
|
for (const signal of input.signals) outJsonLine(buildFormalSignalReadPayload({
|
|
97082
97179
|
signal,
|
|
97180
|
+
identityDirectory: input.identityDirectory,
|
|
97083
97181
|
membersSnapshot: input.membersSnapshot,
|
|
97084
97182
|
signalIndex: input.signalIndex
|
|
97085
97183
|
}));
|
|
@@ -97111,7 +97209,7 @@ async function loadAnchorDispatchExecutionEvidence(input) {
|
|
|
97111
97209
|
}
|
|
97112
97210
|
}
|
|
97113
97211
|
async function loadSpaceUpdatesProjectionContext(input) {
|
|
97114
|
-
const [
|
|
97212
|
+
const [identityDirectory, signalIndex] = await Promise.all([loadSpaceIdentityDirectoryOrNull({
|
|
97115
97213
|
spaceApi: input.spaceApi,
|
|
97116
97214
|
spaceId: input.space,
|
|
97117
97215
|
requestContext: input.requestContext,
|
|
@@ -97122,6 +97220,7 @@ async function loadSpaceUpdatesProjectionContext(input) {
|
|
|
97122
97220
|
requestContext: input.requestContext,
|
|
97123
97221
|
resolvedPassword: input.resolvedPassword
|
|
97124
97222
|
})]);
|
|
97223
|
+
const membersSnapshot = buildIdentityOnlyMembersSnapshotForReadProjection(identityDirectory);
|
|
97125
97224
|
const dispatchExecutionState = await loadAnchorDispatchExecutionEvidence({
|
|
97126
97225
|
afterSignalId: input.afterSignalId,
|
|
97127
97226
|
baseUrl: input.baseUrl,
|
|
@@ -97134,6 +97233,7 @@ async function loadSpaceUpdatesProjectionContext(input) {
|
|
|
97134
97233
|
return {
|
|
97135
97234
|
dispatchExecution: dispatchExecutionState.status === "available" ? dispatchExecutionState.dispatchExecution : null,
|
|
97136
97235
|
dispatchExecutionUnavailable: dispatchExecutionState.status === "unavailable" ? dispatchExecutionState.failure : null,
|
|
97236
|
+
identityDirectory,
|
|
97137
97237
|
membersSnapshot,
|
|
97138
97238
|
signalIndex
|
|
97139
97239
|
};
|
|
@@ -97179,7 +97279,7 @@ async function runSpaceUpdates(input) {
|
|
|
97179
97279
|
if (updatesRead.status === "cancelled") return;
|
|
97180
97280
|
const updates = updatesRead.result;
|
|
97181
97281
|
const resolvedPassword = updatesRead.password;
|
|
97182
|
-
const { dispatchExecution, dispatchExecutionUnavailable, membersSnapshot, signalIndex } = await loadSpaceUpdatesProjectionContext({
|
|
97282
|
+
const { dispatchExecution, dispatchExecutionUnavailable, identityDirectory, membersSnapshot, signalIndex } = await loadSpaceUpdatesProjectionContext({
|
|
97183
97283
|
afterSignalId,
|
|
97184
97284
|
baseUrl,
|
|
97185
97285
|
requestContext,
|
|
@@ -97191,6 +97291,7 @@ async function runSpaceUpdates(input) {
|
|
|
97191
97291
|
emitSpaceUpdatesJsonOutput({
|
|
97192
97292
|
dispatchExecution,
|
|
97193
97293
|
dispatchExecutionUnavailable,
|
|
97294
|
+
identityDirectory,
|
|
97194
97295
|
membersSnapshot,
|
|
97195
97296
|
signalIndex,
|
|
97196
97297
|
sourceSignalId: afterSignalId,
|