merge: integrate remote and local main histories

# Conflicts:
#	.project-docs/20-architecture/module-map.md
#	.project-docs/30-worklog/current-state.md
#	.project-docs/50-evidence/evidence-index.md
#	src/pages/MyPlugins/index.tsx
#	tests/unit/pi-agent-server-process-real.test.ts
#	tests/unit/pi-managed-worker-opener.test.ts
#	tests/unit/plugin-marketplace-pages.test.tsx
This commit is contained in:
inman
2026-09-03 10:44:04 +08:00
122 changed files with 10866 additions and 436 deletions

View File

@@ -422,6 +422,18 @@ export class PiWorkerPool {
return this.revisions.markResourcesStale();
}
async refreshResources(): Promise<void> {
this.revisions.markResourcesStale();
const idleWorkers = [...this.workers.values()].filter((record) => (
(record.state === 'ready' || record.state === 'idle')
&& !this.activeRuns.has(record.conversation.conversationId)
));
await Promise.all(idleWorkers.map(async (record) => {
if (this.workers.get(record.conversation.conversationId) !== record) return;
await this.ensureFresh(record);
}));
}
async fork(
sourceConversationId: string,
conversation: PrepareConversationInput,