Files

26 lines
2.1 KiB
Markdown

# Change: Add social auto publishing workspace
## Why
TrueGrowth can generate and collect media across local uploads, AI image/video, digital human, clipping, canvas, and publishing workflows, but the previous split between "素材库" and "成品库" made assets hard to reuse. Operators need a unified "资产中心" plus a publish workspace that can authorize accounts and submit real social publishing jobs through the bundled `social-auto-upload` runtime.
## What Changes
- Upgrade the left-navigation "素材库" into "资产中心" with first-level sections for "素材", "作品", and "已发布".
- Use published state as an asset marker and filter, not a separate copied library.
- Keep "发布中心" focused on two tabs: "发布任务" and "账号授权".
- Move publishable asset selection into the publish-task form and remove the separate publish-center "成品库" tab.
- Add social account authorization management for multiple accounts per channel, including login, status check, expiration/error state, and account grouping.
- Add publish draft and schedule flows for video and image-note content, with channel-specific fields mapped from `dreammis/social-auto-upload` command capabilities.
- Integrate the bundled `vendor/social-auto-upload` source through a local runtime bridge; users must not be asked to install `sau` separately.
- Add publish job tracking, retry, cancellation, logs, and per-channel result history that connect back to the source TrueGrowth asset.
## Impact
- Affected specs: social-auto-publishing, asset-center
- Affected code:
- `apps/web/src/workbench/WorkbenchShell.tsx`
- `apps/web/src/workbench/app-definitions.tsx`
- `apps/web/src/workbench/truegrowth.types.ts`
- `apps/web/src/workbench/social-publishing.logic.ts`
- Local runtime API in `scripts/truegrowth-local-api.mjs` or a sibling runtime bridge for `sau`
- Bundled runtime source under `vendor/social-auto-upload`
- Task/history/media aggregation around `packages/drawnix/src/services/task-storage-reader.ts`, `packages/drawnix/src/services/prompt-history-service.ts`, and existing asset/media-library services