@walkhi/code-relax 0.1.0-beta.50 → 0.1.0-beta.51
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/README.md +105 -105
- package/dist/bin/cleanup-accounts.mjs +63 -63
- package/dist/bin/codex-remote.mjs +403 -403
- package/dist/bin/publish-android-release.mjs +63 -63
- package/dist/bin/release-upload-server.mjs +190 -190
- package/dist/build-platform.json +1 -1
- package/dist/get-shared-service-url.ps1 +14 -14
- package/dist/shared/code-browser.cjs +159 -159
- package/dist/shared/file-changes.cjs +31 -31
- package/dist/shared/file-citations.cjs +117 -117
- package/dist/shared/file-mentions.cjs +92 -92
- package/dist/shared/message-delivery.cjs +115 -115
- package/dist/shared/p2p-file-channel.cjs +87 -87
- package/dist/shared/server-requests.cjs +311 -311
- package/dist/shared/timeline-sync.cjs +173 -173
- package/dist/skills/code-relax/SKILL.md +22 -22
- package/dist/src/bounded-process-log.mjs +63 -63
- package/dist/src/celsius-client.mjs +107 -107
- package/dist/src/dots-approval-timeline.mjs +99 -99
- package/dist/src/dots-avatar.mjs +42 -42
- package/dist/src/dots-chat-projection.mjs +50 -50
- package/dist/src/dots-chat-server.mjs +483 -483
- package/dist/src/dots-message-images.mjs +319 -319
- package/dist/src/dots-profile.mjs +77 -77
- package/dist/src/dots-room-activity.mjs +172 -172
- package/dist/src/dots-room-client.mjs +135 -135
- package/dist/src/dots-room-projection.mjs +94 -94
- package/dist/src/dots-schedules.mjs +66 -66
- package/dist/src/dots-summary-tasks.mjs +32 -32
- package/dist/src/dots-task-catalog.mjs +430 -430
- package/dist/src/file-transfer-range.mjs +22 -22
- package/dist/src/file-upload-session.mjs +130 -130
- package/dist/src/hosted-history-app-server.mjs +103 -103
- package/dist/src/hosted-history-cache.mjs +113 -113
- package/dist/src/lan-socket-server.mjs +266 -266
- package/dist/src/managed-app-server.mjs +373 -373
- package/dist/src/managed-endpoint.mjs +25 -25
- package/dist/src/message-upload-files.mjs +109 -109
- package/dist/src/onboarding.mjs +12 -12
- package/dist/src/platform/README.md +1 -1
- package/dist/src/platform/codex-protocol.mjs +46 -46
- package/dist/src/platform/desktop-project-store.mjs +208 -208
- package/dist/src/platform/linux/desktop-host.mjs +87 -87
- package/dist/src/platform/linux/process.mjs +53 -53
- package/dist/src/platform/linux/system.mjs +50 -50
- package/dist/src/platform/linux/user-environment.mjs +9 -9
- package/dist/src/platform/macos/codex-runtime.mjs +125 -125
- package/dist/src/platform/macos/desktop-host.mjs +86 -86
- package/dist/src/platform/macos/user-environment.mjs +9 -9
- package/dist/src/platform/native-package.mjs +58 -58
- package/dist/src/platform/windows/activate-desktop.ps1 +49 -49
- package/dist/src/platform/windows/codex-runtime.mjs +215 -215
- package/dist/src/platform/windows/credential-store.mjs +27 -27
- package/dist/src/platform/windows/credential-store.ps1 +49 -49
- package/dist/src/platform/windows/desktop-host.mjs +65 -65
- package/dist/src/platform/windows/desktop-info.ps1 +38 -38
- package/dist/src/platform/windows/desktop-project-registration.mjs +4 -4
- package/dist/src/platform/windows/desktop-shortcuts.ps1 +14 -14
- package/dist/src/platform/windows/dots-profile.mjs +49 -49
- package/dist/src/platform/windows/launch-worker.mjs +41 -41
- package/dist/src/platform/windows/project-locations.mjs +16 -16
- package/dist/src/platform/windows/service-host.mjs +35 -35
- package/dist/src/platform/windows/user-environment.mjs +52 -52
- package/dist/src/project-management.mjs +58 -58
- package/dist/src/runtime-discovery.mjs +47 -47
- package/dist/src/self-relay/account-cleanup.mjs +30 -30
- package/dist/src/self-relay/admin-page.mjs +80 -80
- package/dist/src/self-relay/admin-style.mjs +14 -14
- package/dist/src/self-relay/connector.mjs +439 -439
- package/dist/src/self-relay/demo.mjs +31 -31
- package/dist/src/self-relay/diagnostics.mjs +54 -54
- package/dist/src/self-relay/email-accounts.mjs +183 -183
- package/dist/src/self-relay/file-wire.mjs +13 -13
- package/dist/src/self-relay/p2p-probe.mjs +168 -168
- package/dist/src/self-relay/privacy-page.mjs +26 -26
- package/dist/src/self-relay/public-releases.mjs +67 -67
- package/dist/src/self-relay/rtc-file-bridge.mjs +41 -41
- package/dist/src/self-relay/usage-meter.mjs +141 -141
- package/dist/src/server.mjs +5 -4
- package/dist/src/service-doctor.mjs +148 -148
- package/dist/src/service-install.mjs +97 -97
- package/dist/src/service-lifecycle.mjs +139 -139
- package/dist/src/shared-app-server.mjs +666 -666
- package/dist/src/shared-catalog.mjs +132 -132
- package/dist/src/shared-thread-stream.mjs +165 -165
- package/dist/src/usage-reset.mjs +17 -17
- package/dist/src/workstation-downloads.mjs +120 -120
- package/package.json +4 -4
- package/tools/postinstall.mjs +186 -186
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import events from '../shared/app-server-events.cjs';
|
|
2
|
-
|
|
3
|
-
export async function readDotsSummaryTasks(dotsServer, threadId) {
|
|
4
|
-
await dotsServer.source(threadId, 'aeon');
|
|
5
|
-
const catalog = await dotsServer.taskCatalog(false);
|
|
6
|
-
// Use the existing account-scoped local profile map, without a remote profile
|
|
7
|
-
// request. A Dot keeps its identity when its active root thread changes.
|
|
8
|
-
await dotsServer.refreshProfiles();
|
|
9
|
-
const identity = dotsServer.profileIdentity;
|
|
10
|
-
const profileId = dotsServer.profileNames.get(threadId)?.profileId;
|
|
11
|
-
const tasks = await Promise.all(catalog.filter(thread => thread.threadSource === 'aeon_child').map(async thread => {
|
|
12
|
-
const page = await dotsServer.nativeRequest('thread/items/list', {
|
|
13
|
-
threadId: thread.id, limit: 1, sortDirection: 'asc',
|
|
14
|
-
});
|
|
15
|
-
if (!Array.isArray(page.data)) throw new Error('点点任务未返回委派来源。');
|
|
16
|
-
const item = page.data[0]?.item;
|
|
17
|
-
if (item?.type !== 'userMessage' || !Array.isArray(item.content)
|
|
18
|
-
|| !item.content.some(part => {
|
|
19
|
-
const sourceId = part.type === 'text' && events.parseCodexDelegation(part.text)?.sourceThreadId;
|
|
20
|
-
return sourceId && (sourceId === threadId || profileId
|
|
21
|
-
&& dotsServer.profileNames.get(sourceId)?.profileId === profileId);
|
|
22
|
-
})) return null;
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
id: thread.id, hostId: 'durable', threadSource: 'aeon_child',
|
|
26
|
-
title: thread.name?.trim() || '未命名任务', cwd: thread.cwd,
|
|
27
|
-
recencyAt: thread.recencyAt ?? thread.updatedAt,
|
|
28
|
-
};
|
|
29
|
-
}));
|
|
30
|
-
if (identity !== dotsServer.profileIdentity) throw new Error('点点账号已变化,请重新读取任务。');
|
|
31
|
-
return { threadId, tasks: tasks.filter(task => task !== null) };
|
|
32
|
-
}
|
|
1
|
+
import events from '../shared/app-server-events.cjs';
|
|
2
|
+
|
|
3
|
+
export async function readDotsSummaryTasks(dotsServer, threadId) {
|
|
4
|
+
await dotsServer.source(threadId, 'aeon');
|
|
5
|
+
const catalog = await dotsServer.taskCatalog(false);
|
|
6
|
+
// Use the existing account-scoped local profile map, without a remote profile
|
|
7
|
+
// request. A Dot keeps its identity when its active root thread changes.
|
|
8
|
+
await dotsServer.refreshProfiles();
|
|
9
|
+
const identity = dotsServer.profileIdentity;
|
|
10
|
+
const profileId = dotsServer.profileNames.get(threadId)?.profileId;
|
|
11
|
+
const tasks = await Promise.all(catalog.filter(thread => thread.threadSource === 'aeon_child').map(async thread => {
|
|
12
|
+
const page = await dotsServer.nativeRequest('thread/items/list', {
|
|
13
|
+
threadId: thread.id, limit: 1, sortDirection: 'asc',
|
|
14
|
+
});
|
|
15
|
+
if (!Array.isArray(page.data)) throw new Error('点点任务未返回委派来源。');
|
|
16
|
+
const item = page.data[0]?.item;
|
|
17
|
+
if (item?.type !== 'userMessage' || !Array.isArray(item.content)
|
|
18
|
+
|| !item.content.some(part => {
|
|
19
|
+
const sourceId = part.type === 'text' && events.parseCodexDelegation(part.text)?.sourceThreadId;
|
|
20
|
+
return sourceId && (sourceId === threadId || profileId
|
|
21
|
+
&& dotsServer.profileNames.get(sourceId)?.profileId === profileId);
|
|
22
|
+
})) return null;
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
id: thread.id, hostId: 'durable', threadSource: 'aeon_child',
|
|
26
|
+
title: thread.name?.trim() || '未命名任务', cwd: thread.cwd,
|
|
27
|
+
recencyAt: thread.recencyAt ?? thread.updatedAt,
|
|
28
|
+
};
|
|
29
|
+
}));
|
|
30
|
+
if (identity !== dotsServer.profileIdentity) throw new Error('点点账号已变化,请重新读取任务。');
|
|
31
|
+
return { threadId, tasks: tasks.filter(task => task !== null) };
|
|
32
|
+
}
|