ai_co_discuss 0.5.21 → 0.5.23
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/.agents/skills/codiscuss-draft-cleanup/SKILL.md +16 -0
- package/.agents/skills/codiscuss-draft-cleanup/cleanup.py +70 -0
- package/.agents/skills/codiscuss-draft-cleanup/scan.py +70 -0
- package/.agents/skills/discuss-host/references/control.md +2 -2
- package/.agents/skills/discuss-host/references/workflow.md +4 -2
- package/.agents/skills/discuss-participant/SKILL.md +2 -0
- package/.agents/skills/local-stt-setup/SKILL.md +9 -8
- package/.agents/skills/local-tts-setup/SKILL.md +10 -9
- package/.agents/skills/share-card/SKILL.md +7 -6
- package/.agents/skills/share-card/references/share-card.md +34 -8
- package/.agents/skills/workflow-creator/SKILL.md +22 -14
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/backend/free_room.py +64 -8
- package/backend/message_queue.py +9 -0
- package/backend/schema.sql +13 -1
- package/backend/server.py +289 -59
- package/docs/en/guide/admin.md +18 -0
- package/docs/en/guide/members.md +7 -1
- package/docs/en/guide/remote.md +1 -1
- package/docs/en/guide/rooms.md +14 -6
- package/docs/en/guide/voice.md +2 -0
- package/docs/en/guide/workflows.md +9 -5
- package/docs/en/guide/working.md +6 -4
- package/docs/guide/admin.md +18 -0
- package/docs/guide/members.md +7 -1
- package/docs/guide/remote.md +1 -1
- package/docs/guide/rooms.md +13 -6
- package/docs/guide/voice.md +2 -0
- package/docs/guide/workflows.md +9 -5
- package/docs/guide/working.md +6 -4
- package/frontend/locales/en/admin.json +58 -1
- package/frontend/locales/en/app.json +18 -1
- package/frontend/locales/en/backend.json +6 -0
- package/frontend/locales/en/core.json +4 -2
- package/frontend/locales/en/discussion.json +4 -1
- package/frontend/locales/en/room.json +85 -1
- package/gateway/gateway.mjs +49 -9
- package/package.json +3 -1
- package/runner/account_space.mjs +10 -0
- package/runner/adapters/antigravity_app.mjs +31 -4
- package/runner/adapters/antigravity_cli.mjs +9 -2
- package/runner/adapters/api.mjs +3 -2
- package/runner/adapters/api_pi.mjs +3 -2
- package/runner/adapters/api_pi_extension.mjs +5 -3
- package/runner/adapters/claude.mjs +32 -9
- package/runner/adapters/cli.mjs +2 -2
- package/runner/adapters/codex_app.mjs +192 -69
- package/runner/adapters/codex_cli.mjs +10 -5
- package/runner/adapters/common.mjs +414 -11
- package/runner/adapters/index.mjs +6 -0
- package/runner/admin_cli.mjs +22 -5
- package/runner/admin_panel.mjs +118 -5
- package/runner/admin_storage.mjs +105 -0
- package/runner/discussion_launch.mjs +328 -128
- package/runner/discussion_runner.mjs +12 -3
- package/runner/discussion_service.mjs +224 -37
- package/runner/discussion_skills.mjs +1 -1
- package/runner/expert_prompts.mjs +2 -2
- package/runner/experts.mjs +227 -0
- package/runner/file_diff.mjs +1 -1
- package/runner/free_runner.mjs +236 -51
- package/runner/i18n_en.mjs +39 -0
- package/runner/os_users.mjs +33 -1
- package/runner/project_files.mjs +7 -1
- package/runner/project_migration.mjs +245 -0
- package/runner/relay_channel.mjs +1 -1
- package/runner/remote_launch.mjs +4 -3
- package/runner/share_card.mjs +17 -1
- package/runner/share_shared.mjs +26 -9
- package/runner/site_deploy.mjs +2 -1
- package/runner/slash_names.mjs +12 -1
- package/runner/speech_directories.mjs +20 -0
- package/runner/storage_guard.mjs +383 -0
- package/runner/tts_providers.mjs +22 -21
- package/runner/workflows.mjs +211 -57
- package/web/admin.css +1 -1
- package/web/admin.js +8 -8
- package/web/app.js +589 -80
- package/web/i18n.js +4 -4
- package/web/markdown.css +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +68 -66
- package/workflows/decision-council/flow.json +216 -25
- package/workflows/trpg-classic/flow.json +151 -21
package/docs/en/guide/rooms.md
CHANGED
|
@@ -26,13 +26,18 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
26
26
|
|
|
27
27
|
### 2. Organize the sidebar, folders, and archives
|
|
28
28
|
|
|
29
|
+
Rooms created by a host inherit its folder. Select the arrow to the left of the parent title to show or hide its children. Opening a child, starting work in it, or adding a child expands the parent. Manually collapsing it keeps it folded for this page session. Moving a child to another folder, archiving its parent, or deleting its parent lists the child independently.
|
|
30
|
+
|
|
29
31
|
- **Sort rooms.** Open the directory options in the top-right corner. Choose “Manual order” (drag items or use the arrow keys) or “Recent activity”.
|
|
30
32
|
- **Folders.** Select “New folder” to group rooms by project. A folder can have a default project directory, which is used for new rooms created inside it. Its menu offers “Edit”, “Move up”, “Move down”, “Archive folder”, and “Remove folder”. You can remove just the folder or delete its rooms as well.
|
|
31
|
-
- **Room actions.** Open a room’s menu to “Rename”, “Edit topic”, “Move to folder”, “Copy reading link”, “Refresh messages”, “Archive room”, or “Destroy room”. “Edit topic” and “Refresh messages” apply to the currently open room.
|
|
33
|
+
- **Room actions.** Open a room’s menu to “Rename”, “Edit topic”, “Move to folder”, “Copy reading link”, “Refresh messages”, “Archive room”, or “Destroy room”. “Edit topic” and “Refresh messages” apply to the currently open room. On desktop, double-click a room name in the sidebar to open “Rename”. Use the panel icon at the right of the header to open or close the room panel.
|
|
34
|
+
- Video attachments use the current theme’s background while loading. The preview appears as soon as the first frame is ready.
|
|
35
|
+
- When you return to a recent room, the speaking order shows the last known model and reasoning effort immediately. These update when the roster or executions change.
|
|
36
|
+
- In an existing room’s collaboration settings, the smart scheduling row keeps its height when toggled. After enabling it, select “Settings” to configure the decision model.
|
|
32
37
|
- **Destroy a room.** Select “Destroy room” in the room’s menu. The dialog lists what is deleted and what is kept. You can first select “Export package” to download a copy with messages, private chats, attachments, a “讨论记录.html” page that opens with a double click, and the files members wrote in their draft folders (in “草稿”; beyond 50 MB only their names are listed). After “Destroy now” and then “Destroy” in “Confirm destroying again” (every way of destroying asks twice), the room’s records, attachments, the AI sessions its members started in this room, and its run files and drafts are deleted from this computer: the room dissolves into particles at once (its sidebar row, and the middle pane when it is open) while deletion and checks go on in the background; a notice shows what was removed when they finish. The draft folder made when the room was created (under “Drafts” in “Project”) is deleted with its files too; the package keeps them in “草稿空间”. A project folder you chose is not deleted. Sessions taken over from your own windows or shared with other rooms are kept. Content already sent to model providers stays under their policies and cannot be deleted from here. A published share page is taken down first. If an item cannot be removed yet, a notice says so and you can follow and retry it in “Destruction records”. Files in members’ draft folders are deleted with the room; export the package first if you need them.
|
|
33
38
|
- **Destruction records and destroying all rooms.** Open “…” at the top right of the room list and select “Destruction records” to see what each destruction deleted and kept (the room name is cleared once it finishes). Select “Retry” on an unfinished one. “Destroy all rooms” at the bottom asks you to type a confirmation word, then destroys every room, archived ones included, one by one; project files are kept. A hosted account running as its own Windows user then also deletes every conversation in its AI software and the preferences the AI remembered, keeping logins. “Export all rooms” leaves drafts out; export rooms one at a time to include them.
|
|
34
39
|
- **Auto-destroy.** Choose it under “How to work (optional)” when creating a room, or later in the “Room” tab at the top of the room, set “Auto-destroy” to destroy the room after 1, 7, or 30 days without activity; the time left is shown beside it. The count starts when you set it and restarts with each new message or private chat. Archived rooms, rooms with members at work or queued work, an open question for you, or a published share page are not destroyed automatically. The page warns once when less than a day is left, and again after a room is destroyed. The default is “Keep”.
|
|
35
|
-
- **Restore or clear archived rooms.** Open “Archived”. Filter by keyword or whether rooms contain messages. Select “Restore” to return a room to the active list. To
|
|
40
|
+
- **Restore or clear archived rooms.** Open “Archived”. Filter by keyword or whether rooms contain messages. Select “Restore” to return a room to the active list. To destroy one permanently, select “Destroy room” and confirm twice. “Destroy all” applies to the current filtered results and opens a standalone “Destroy archived rooms” dialog listing what is deleted and kept (with an “Export package” option), requiring “Destroy now” followed by “Confirm destroying again”.
|
|
36
41
|
|
|
37
42
|
### 3. Set project directories and browse project files
|
|
38
43
|
|
|
@@ -45,7 +50,7 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
45
50
|
|
|
46
51
|
### 4. Send and view attachments
|
|
47
52
|
|
|
48
|
-
- **Attach files.** Paste or drag files into the composer, or use the paperclip button at the bottom-left. Each message can contain up to 10 files, 20 MiB each. Thumbnails appear above the composer. A placeholder such as `[Image #1]` or `[File #2]` is inserted at the cursor. Removing the thumbnail or deleting its placeholder with Backspace removes both.
|
|
53
|
+
- **Attach files.** Paste or drag files into the composer, or use the paperclip button at the bottom-left. Each message can contain up to 10 files, 20 MiB each. Thumbnails appear above the composer. A placeholder such as `[Image #1]` or `[File #2]` is inserted at the cursor. Removing the thumbnail or deleting its placeholder with Backspace removes both. After sending, images first referenced in a paragraph or list item appear right below it in a two-column half-width grid (full width for a single image on phones, two columns for multiple, with `#n` badges when a message carries more than one image) and are not listed again below; other attachments stay listed under the message.
|
|
49
54
|
- **View attachments.** After sending a message, select its placeholder or attachment card. Images can be enlarged full-screen, zoomed, rotated, and saved. Audio and video play in the message. Documents and code open in the file preview.
|
|
50
55
|
- **Interactive visualizations.** A member can place a small web page you can operate (drag a slider, press a button, watch the result change) inside the answer text. It appears at that point in the answer, follows the room theme and light or dark mode, and also appears in place on a phone. It starts running when you scroll near it. The row below lets you “Collapse” it (your choice is remembered), view the “Source”, “Open larger preview” in the file preview, open it in a “New tab”, or “Download” it as an `.html` file. Read-only share pages, read-aloud, and collapsed message previews show a single “Interactive visualization” line instead, so rely on the member's written conclusion. `.html` attachments do not run inside messages; select the file card to open them in the preview or a new tab. Some visualizations are question panels: after you rank, allocate, or adjust and press the panel's submit button, the result is added above the message box as a quote rather than sent. You can edit or remove it, and it counts as your reply only when you send it. Submitting the same panel again replaces its earlier result.
|
|
51
56
|
- **Member access to attachments.** For supported automatic runs, the local service downloads the file and passes its information to the receiving member. Claude Code and Codex CLI can view images directly. For API members, enable “Images” on the member card to view images. UTF-8 text attachments can be read on request. Members will say when they cannot read a format such as PDF.
|
|
@@ -57,21 +62,24 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
57
62
|
- “Download web page” builds and downloads a single `.html` file in the background that opens in any browser. Once sent, it cannot expire or be taken back.
|
|
58
63
|
- “Publish link” closes the dialog after the size checks and publishes in the background. Use “View share card” or “Copy link” in the completion notice, including after returning to the page on a phone. Choose whether it expires in 1, 3 or 7 days; it is deleted when it expires. “Shared” below the room list shows every live share link with its time left, to copy, open, renew (same content, a new lifetime from now) or revoke. The room’s menu also offers “Copy share link” and “Revoke share link”, and “Share” again offers “Update link” to show the latest content. Confirming revocation immediately removes the link from the list and room menu. Renewing updates the displayed expiry immediately. You can continue with other rooms while the change is saved. If it fails, the affected link is restored and an error is shown. Links are kept with the room on the computer, so paired phones and tablets can manage them too. Rooms whose text comes to over 5 MB after cleaning need the web page file instead.
|
|
59
64
|
|
|
60
|
-
**Share card.** Choose “View share card” from the completion notice or the “Shared” list.
|
|
65
|
+
**Share card and share copy.** Choose “View share card” from the completion notice or the “Shared” list. The dialog pairs the cover image with ready-to-paste “Share copy” for social posts or chats: the automatic cover extracts the opening sentence and latest outcome sentence (which you can edit or reset with “Restore auto-extracted”), and a fixed-height thumbnail grid lets you pick a room image or “Upload cover” (PNG, JPG or WebP; tall images can be cropped). “Share copy” starts with a default post containing the room summary, active deployed product links and the full session link, with editing, “Reset” and one-click “Copy text”; selecting a room image tagged “Copy” (produced alongside a `share-copy` block by `$share-card`) automatically loads its matching copy and fills `{{share_url}}` with the live link. “Update link” keeps your chosen cover and edited text and refreshes the other content. Revoking and publishing again creates a new card. Reopen the card after renewal to see the new expiry next to its QR code. Choose “Save image” to export a PNG. Select “Copy share card diagnostics” in the share dialog to copy the material cutoff message and count, cover source, rendering stage, and confirmed publication and attachment status. PNG dimensions appear after rendering. Fields missing from older records are omitted. The summary omits text, images, and access credentials.
|
|
61
66
|
|
|
62
|
-
To have an agent design the cover, ask `$share-card Make a share card highlighting the finished product`. Include the target room link if you ask in a different room.
|
|
67
|
+
To have an agent design both the cover and social-post copy, ask `$share-card Make a share card highlighting the finished product`. Include the target room link if you ask in a different room. The agent returns the cover PNG together with a companion `share-copy` block.
|
|
63
68
|
|
|
64
69
|
Either way, readers see the room’s **Messages** and **Runs** views from the beginning, as they look here: cards and run details open; each time **Runs** is opened it replays the session from the start, and “End replay” returns to the final state. The other tabs, such as **Private**, **Room** and **Files**, are dimmed and show only a sample; but nothing can be sent or changed, and the page shows the room as it was when it was made. Private chats, the event log, scheduling decisions, refused actions, queued messages, paths on this computer, session IDs and credentials are left out, as are retracted or rewound messages; failure reasons read only “Run failed”, and the room’s project folders are rewritten in message text as paths inside the project. The rest of the message text is shared as written, so check it before sending.
|
|
65
70
|
|
|
66
71
|
Attachments are left out by default, and attachment tags in messages read “not included in the share”. When the room has attachments, the confirmation offers “Include attachments”: ticked, every attachment (images, videos, web pages, documents and so on) goes into the page as it is, for readers to view and download; project files a member’s answer delivered (the file cards under the answer) come along too, as attachments of that answer. Text attachments are checked for keys and local folders too; the contents of images, videos and other files cannot be checked, so look through them yourself. A share link carries the attachments the page can preview — images, audio, video, PDF, Word/Excel/PowerPoint (docx, xlsx, pptx), text and code, zip archives, and web pages — for readers to open right in the page; scripts that run on a double click, such as js, bat and ps1, go with .txt added to their names. Programs and old doc/xls/ppt files stay off the share site and their messages read “not included in the share”, while a downloaded web page file still carries them. Web page attachments run on the share page as they do in the room, and demos a member’s answer refers to show inside the message; they run in an isolated frame that cannot read the share page, send requests or submit forms. Select “Filter files” to choose attachments by type or individually. The filters expand automatically above 300 MB. Files appear newest message first. Each file shows the message number, sender, time and size. Click its name or “Preview” and close the preview to continue selecting. Published links allow 5 MB of text plus up to 300 MB of attachments, with a 100 MB limit per file. The computer’s background service prepares and uploads the share even if you lock your phone, close the page or switch to another paired device. Under “Shared”, open “Share jobs” to review a draft, check uploaded files and bytes, cancel, retry or adjust attachments. After publication, use the live link below the jobs to open its card or copy the link. Cancel, retry and dismiss update the job immediately. If the operation fails, the job is restored and an error is shown. Opening a draft or share card shows the room title while its contents load. When the service is offline, keep the browser page open until the transfer finishes. A downloaded web page file carries at most 100 MB of attachments. If the room changes before download, review the updated contents in the confirmation dialog.
|
|
67
72
|
- **Import rooms.** In directory options or a folder menu, select “Import rooms” and choose a ZIP. Review the preview and confirm the rooms to import. A room marked “Already exists; skipped” is left as is. On the same computer, invite members back to resume their sessions. Claude Code members switch to manual connection on import. Re-register them from their original window to avoid splitting the session. Imported discussion history is kept, but discussions are not restarted and members are not woken automatically.
|
|
68
73
|
- **Branch from a message.** In an AI message menu, select “Branch from here” to create a room containing the history through that message. Connections that support session branching resume from the branched session in the new room. The original room is kept.
|
|
69
|
-
- **Let the host create rooms.** With “Create rooms” ticked in “Host permissions”, the host can move part of the work into a new room. Members use only software configured on this computer, with read-only project access by default and at most write. The project folder must be the original room’s folder or a folder inside it. Unless you name another host, the new room is hosted by the same expert as the original host. Each room gets a “Linked room” card; select “Open room” to go to the other one. The new room
|
|
74
|
+
- **Let the host create rooms.** With “Create rooms” ticked in “Host permissions”, the host can move part of the work into a new room. Members use only software configured on this computer, with read-only project access by default and at most write. The project folder must be the original room’s folder or a folder inside it. Unless you name another host, the new room is hosted by the same expert as the original host. Each room gets a “Linked room” card; select “Open room” to go to the other one. The new room inherits the original room’s smart scheduling, image generation, API limit, chain round limit and host permissions, except that it cannot create rooms. A room can create a limited number of rooms (3 by default, adjustable in “Host permissions”). The hosts of two linked rooms can speak in each other’s room; each message shows the sending host’s name, avatar and a link to the source room. The sending room shows a collapsed entry with the destination and delivery or queue status. Select its summary to read the full message, or select “Open room” to view the receiving conversation. Messages go directly to the receiving host and queue while the room is busy. A parent can interrupt its child to redirect work. If the child cannot accept an interjection or stop, the message stays queued. There is no limit by default. To cap it, set “Linked-room message limit” under “Advanced settings” in the new-room form (it applies to every linked room on this computer); counting from your last message in either room, messages beyond it are refused until you send a message.
|
|
70
75
|
|
|
71
76
|
## Notes
|
|
72
77
|
|
|
73
78
|
- **Notice when a room's work ends.** When all work in another room ends (it changes from "Running" to idle) and stays ended for a few seconds, the page shows "Work in room \"Room name\" has ended" in the lower-right corner. The room you are viewing is not announced, and neither is work that stops and resumes at once, as with an interjection or a retry. The page must be open.
|
|
74
79
|
- **Shared directories are not locked.** If members edit the same project file at once, the page shows a conflict notification while the room is open. It is not added to the message history and does not wake the host.
|
|
80
|
+
- Read large assets and repositories in their project folders. Never copy them into a member’s draft folder or its `.scratch` subfolder, even when the project is read-only. If a writable copy is necessary, ask the owner to designate a writable project folder.
|
|
81
|
+
- **Draft storage and limits.** When connected to the local service or a paired computer, the room's right rail shows **Draft storage** usage (1 GiB per room, 3 GiB across all drafts, and 10 GiB for local `.codiscuss` data excluding speech models). The bar and text turn amber at 80% and red when over the limit (pausing new runs); reaching 8 GiB across `.codiscuss` also shows a warning notice, and any permission-denied unreadable entries are called out separately. The room owner can select **Clear temporary files** in the right rail to remove confirmed finished execution `.scratch` folders. If older drafts block the room, run `$codiscuss-draft-cleanup` in an **AI chat outside the room** to audit and delete rebuildable copies after confirmation; room records and attachments (`local/`) are never deleted automatically and require destroying old rooms to free space. Limits rely on periodic sampling rather than a filesystem write-layer hard quota and cannot guarantee the disk will never fill.
|
|
82
|
+
During active runs, the service checks free space on its own volume every two seconds. While part of the 10 GiB budget remains, a drop in free space as large as that remainder triggers an early scan. When a run ends, the service updates that member’s draft usage. A manual retry after cleanup rechecks the limit that blocked the run. If a machine-wide limit was exceeded, the service measures machine-wide usage again. If another program writes to the volume, runs continue when measured usage is within limits and the unreadable count is stable. If an early scan finds more unreadable entries, dispatch pauses and the service requests stops for stoppable runs. Dispatch resumes when a later scan finds a stable count, usage within limits and enough free disk space. The low-disk reserve applies independently. At 80% of the room draft limit, new runs without confirmed stop support are paused. Writes can continue between and during scans, and ongoing unstoppable runs can keep writing. Project files, system temporary files and third-party AI data outside the service directory are excluded. Follow the cleanup instructions on the failed run’s card, then select “Retry” on that card from the computer or a paired device.
|
|
75
83
|
- **Preview and transfer limits.** Text previews show at most the first 128 KB. When another device accesses media and documents through the computer, each file is limited to 64 MB. The web app first attempts to compress videos larger than 3 MiB. Links pointing outside a project directory appear disabled and are rejected.
|
|
76
84
|
- **A branch does not copy project files.** Branched and original rooms share the same project directory. Branching requires a connection to the local service.
|
|
77
85
|
- **An attachment is not necessarily read.** Sending a file to the room does not mean a member has read it. Private chat and in-progress interruptions do not support attachments.
|
package/docs/en/guide/voice.md
CHANGED
|
@@ -22,6 +22,8 @@ Open a local AI conversation that has the CoDiscuss skills installed. This can b
|
|
|
22
22
|
- To install text to speech: “Please use the local-tts-setup skill to install and configure local text to speech.” To add the four VoxCPM2 voices, also ask it to install the VoxCPM2 model.
|
|
23
23
|
- To install speech recognition: “Please use the local-stt-setup skill to install and configure local speech recognition.”
|
|
24
24
|
|
|
25
|
+
Before downloading, choose a parent folder for the models. The default is `.codiscuss-models` in your user home. Read-aloud uses the `yovoice/` subfolder and recognition uses `crispasr/`. You can place them on different drives. On Windows, if C: has less than 30 GiB free and another drive has enough space, the AI suggests that drive. Existing installations continue using their original folders after an upgrade.
|
|
26
|
+
|
|
25
27
|
The AI checks GPU, disk space, and CoDiscuss version, reports expected resource use, downloads the engine and model, saves a local token, and verifies the installation. Then refresh the page and select “Local” under “Settings → Speech.” If you just upgraded and the new option is missing, run `codiscuss service restart` to restart the discussion service, the local background program that wakes AI members and handles tasks. The local site serves the room pages separately. Refresh the page afterward.
|
|
26
28
|
|
|
27
29
|
### Use read aloud and voice input
|
|
@@ -22,7 +22,7 @@ Rerunning setup replaces selected bundled workflows with the package versions. B
|
|
|
22
22
|
### 2. Enable, refresh, and end a room workflow
|
|
23
23
|
|
|
24
24
|
1. **Allow the host to enable workflows:** When creating a room, turn on “Full host control” under “How to work (optional)”. In an existing room, open **Room → Members and settings** in the tabs at the top of the room and turn it on under “Collaboration settings.” The host then has permission to enable a workflow and invite its members.
|
|
25
|
-
2. **Enable a workflow
|
|
25
|
+
2. **Enable a workflow.** Type `/` in the composer. “Project workflows” appears before “Global workflows”. If the room has several project folders, check the project name when choosing a workflow. Add what you want done and send the message to the host. The host enables the workflow and brings in the members for any missing cards.
|
|
26
26
|
- Each card in the main workflow defines a role, including its description, member prompt, software, model, effort, and project access. Members already mapped to a card and present in the room keep their identity. Away members are invited back. Sub-workflow roles join when used. Workflow prompts are read-only in a room. Edit them on the Workflows page.
|
|
27
27
|
3. **Add new roles:** If you add cards to a workflow later, existing rooms do not add those members automatically. The host adds them when needed, or you can click the refresh icon on the workflow row in the right panel.
|
|
28
28
|
4. **Use a sub-workflow:** While a workflow is active, type / in the composer and choose an item under “Sub-workflows of ‘name’.” Send it to the host to run that procedure. Members used only by the sub-workflow are marked away when it is done. Their sessions are kept.
|
|
@@ -32,9 +32,11 @@ Rerunning setup replaces selected bundled workflows with the package versions. B
|
|
|
32
32
|
|
|
33
33
|
You can create or import a ZIP file or folder with the “+” on the Workflows page. You can also ask an AI with the bundled workflow-creator skill to draft and validate a workflow:
|
|
34
34
|
|
|
35
|
-
- **Ask the host in a room:** Enable “Full host control,” then describe the division of work you want. You can also type / and choose “Create / edit workflow” under platform skills. The host uses the skill to create SKILL.md, role cards, and a canvas, validates them, saves, and enables the workflow.
|
|
36
|
-
- **Ask an AI in an external session:** In a Claude Code or Codex session with the CoDiscuss skills installed, ask it to create or edit a workflow with workflow-creator. It validates a folder with codiscuss launch workflow-check --dir <directory>. After you approve, it saves the workflow with codiscuss launch workflow-save --dir <directory>. If the library already has that ID, the save is refused unless it explicitly overwrites (--overwrite) or names the revision it read (--revision).
|
|
37
|
-
- **Where workflows are stored
|
|
35
|
+
- **Ask the host in a room:** Enable “Full host control,” then describe the division of work you want. You can also type / and choose “Create / edit workflow” under platform skills. The host uses the skill to create SKILL.md, role cards, and a canvas, validates them, saves, and enables the workflow. By default, it saves to the room’s main project when there is one, or to the global library otherwise. Ask the host to save it globally if you plan to reuse it across projects.
|
|
36
|
+
- **Ask an AI in an external session:** In a Claude Code or Codex session with the CoDiscuss skills installed, ask it to create or edit a workflow with workflow-creator. It validates a folder with codiscuss launch workflow-check --dir <directory>. After you approve, it saves the workflow with codiscuss launch workflow-save --dir <directory>. If the library already has that ID, the save is refused unless it explicitly overwrites (--overwrite) or names the revision it read (--revision). For a project workflow, pass `--scope project --project <folder>` when validating and saving.
|
|
37
|
+
- **Where workflows are stored.** Global workflows are available across projects and live in `~/.codiscuss/workflows/<id>/`. A project workflow lives in `<project-root>/.codiscuss/workflows/<id>/` and is available in rooms that use that project folder. In the sidebar, “Workflows” lists workflows under “Current project” before “Global”. When the room has multiple folders, project workflows show their project names. A room without a project shows global workflows only.
|
|
38
|
+
- **Choose where to save.** Open “+” and select the new or import action for the destination, such as “New global workflow” or “New in project ‘name’”. The editor header shows “Global” or “Project · name”, with a “Read-only” badge where applicable. You can open workflows from read-only projects and copy them to the global library.
|
|
39
|
+
- **Move, copy, or export.** Open the project workflow’s “…” menu and choose “Move to global” or “Copy to global”. Moving requires a writable source, updates the current room’s binding, and is refused if the global library already has the same ID. Copying keeps the original. Use “Copy to current project” to copy a global workflow when there is one writable project. If several are writable, choose the matching “Copy to project ‘name’” action. Choose “Export” to download a ZIP. The export notice lists files skipped because they were too large or were not text.
|
|
38
40
|
|
|
39
41
|
### 4. The canvas and SKILL.md
|
|
40
42
|
|
|
@@ -46,7 +48,7 @@ Select a workflow on the Workflows page. The canvas opens in the center, and its
|
|
|
46
48
|
- **The host follows SKILL.md:** The skill file defines order, parallel work, when to return to the host, and when to revise. The host follows those written instructions. When workflow-creator creates or edits a workflow, it updates the canvas to reflect the skill file.
|
|
47
49
|
- **Steps and attached sub-workflows:** The canvas can group nodes into steps, shown as named dashed frames that list the sub-workflows attached to each step. Steps and attachments live in flow.json and in each sub-workflow's SKILL.md (workflow-creator maintains them). Like the canvas they are only a diagram; the host still decides from SKILL.md whether to use a sub-workflow at that step.
|
|
48
50
|
- **Several members for one card:** The host can bring in several members for the same card under different display names, for example one member per character. A display name applies to this room only, and asking for the same name again brings back the same member with its own session.
|
|
49
|
-
- **Experts with skills:** A workflow expert can be a folder instead of a file:
|
|
51
|
+
- **Experts with skills:** A workflow expert can be a folder instead of a file: `experts/<card-id>/` holds its definition <card-id>.md (the same format as a card file) and skills/<skill>/, each skill a SKILL.md plus references/. Older workflows with `agents/` can still be opened. The member playing that card may read and write its own skills while the rest of the workflow stays read-only; its writing does not change the workflow’s revision, and ordinary saves from the page or the command line keep the skills as they are; only an explicit overwrite or an import replaces them with the folder’s. Exporting the expert gives exactly that folder. “Experts” is a large dialog: every card on the left, and on the right three tabs, “Basics”, “Prompt” and “Skills”. Changes to basics and prompts are written to the workflow by “Save” at the bottom of the dialog (the same save as the Workflows page’s); skill files are saved one at a time. On a phone you pick an expert from the list first, then open its settings, with a back button at the top left. Every expert with skills, in the main flow or a sub-workflow, is listed under Advisors, marked with where it sits; its “Skills” tab shows its skills and files on the left and the chosen file’s editor on the right (one level at a time on a phone), to view and edit each skill’s SKILL.md and references and to create or delete skills and reference files. These edits are written to the expert’s folder at once, without saving the workflow or changing its revision; a file the expert changed meanwhile is refused with a reload offered, never overwritten. On another expert, the “Skills” tab takes its first skill’s name and description (“Add skill”); after you save the workflow it becomes a folder with skills. “Import expert package” below the list puts an md, zip or folder into the main flow or the sub-workflow open on the canvas. Removing an expert with skills, replacing its skills by an overwrite, or deleting the workflow first backs its folder up into backups in the service folder. codiscuss launch expert-import --from <path> --workflow <id> [--sub <sub-workflow-id>] puts an expert package into a workflow and refuses a card ID that exists. A panel expert has skills of its own under `experts/<id>/skills/` in its global or project scope, never shared with a workflow’s; “Save as preset” in “Experts” copies them there; skills already on this computer are kept, and the notice offers to replace them with the workflow’s. On the new-room panel, a preset expert with skills (an advisor) shows only the basic settings on its back, like any other expert, plus an “Advanced settings” button that opens the same dialog as the workflow’s, for its own skills in the selected scope. If a preset of that name exists, choose “Replace the preset of this name” to replace it; skills already there are kept. In the page, “Import / export experts” under “添加 AI” on the new-room panel imports an .md, a zip or a folder and exports any preset; “Export” in a workflow’s “Experts” exports the current card as saved. Without skills you get one md, otherwise a zip. On import, a preset of the same name asks you to “Replace” or cancel; skills already on this computer are kept unless you choose “Use the imported one (the current one is backed up)”; ignored files and access lowered to read-only are listed. On the command line, codiscuss launch expert-export exports an expert and codiscuss launch expert-import imports one as a preset; an existing preset or skills are never replaced silently. When an expert names software this computer has not set up, or a model missing from this computer’s list for that software, the import still succeeds and its notice says so; the panel button is then greyed (software) or the card is marked “… is not available here and cannot run” (model), and starting a room or inviting it is refused until the software is set up or the model changed to a listed one (empty means the software default). Only a model list already read here counts: no list yet, a failed read or no model at all is never flagged, and Claude’s list, being only its model picker, never blocks.
|
|
50
52
|
|
|
51
53
|
### 5. “Full host control” and workflows
|
|
52
54
|
|
|
@@ -56,6 +58,8 @@ Select a workflow on the Workflows page. The canvas opens in the center, and its
|
|
|
56
58
|
|
|
57
59
|
## Things to know
|
|
58
60
|
|
|
61
|
+
- **First use of a workflow from a repository.** A project workflow from an unfamiliar repository requires confirmation the first time you enable it if it registers local commands or includes cards with more than read-only access. You can also choose a workflow through “Invite AI” in the room sidebar. Review the elevated member cards and registered commands in the “Trust project workflow” dialog. From the `/` menu select “Trust and continue”, then add and send your request. From the invitation flow select “Trust and enable”. Trust is stored on the computer for the reviewed content.
|
|
62
|
+
|
|
59
63
|
- **Changes reach active rooms:** Rooms using a workflow read its latest instructions and member prompts on their next run. Existing members’ models, effort, and project access remain room settings.
|
|
60
64
|
- **Review imported workflows:** Importing a ZIP or folder shows a canvas preview. Cards that can write files are imported read-only until you enable them individually. If a workflow includes commands.json to register local commands for read-only API members, the editor shows the full commands. They run only after you enable “Allow these commands to run on this computer.” The host cannot add or remove local commands while drafting or editing a workflow.
|
|
61
65
|
- **Allow only part of it:** Expand “Items” under “Full host control” and tick them one by one: “Handle execution problems”, “Adjust member settings”, “Change project access”, “Manage the member list”, “How work proceeds”, “Workflows” and “Create rooms”. Saving and enabling workflows needs “Workflows”; an action whose item is not ticked is refused, and the host is told which item is missing.
|
package/docs/en/guide/working.md
CHANGED
|
@@ -18,7 +18,7 @@ Message a member or host, understand main and branch work and assignment labels,
|
|
|
18
18
|
|
|
19
19
|
Once the site returns a message number, known recipients appear below the message. If an automatically connected member is busy and the request must wait for its current task to finish, a one-line notice with a clock shows the member’s name and the queued message number. Hover over the notice to see how long the request has waited. The working card takes its place when the member starts. If smart scheduling needs to choose the recipient, the page shows scheduling progress.
|
|
20
20
|
|
|
21
|
-
Quick navigation on the left lists messages from users and members. Hover over a mark to preview the message or click to jump to its card.
|
|
21
|
+
Quick navigation on the left lists messages from users and members. Hover over a mark to preview the message or click to jump to its card. Click a member row in the right sidebar's “Speaking order” (or “Jump to latest message” in its hover card) to jump straight to that member's latest message or ongoing work card.
|
|
22
22
|
|
|
23
23
|
### 2. Understand main lines, branches, and assignment labels
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ Room work can run on several lines in parallel. Labels at the top of a card show
|
|
|
28
28
|
- A directly mentioned member starts immediately when idle. If busy, its request waits in the queue until it is free. If one message mentions both idle and busy members, idle members start at once while the busy members’ work waits.
|
|
29
29
|
- When a main-line member’s turn arrives, it waits for that member to finish its active branch work.
|
|
30
30
|
- Your unmentioned messages, `@all`, and `@all-seq` wait until the room is idle, then go out in order. Background work assigned by the host does not hold up your new messages.
|
|
31
|
-
- **Where things sit on a card.** Every member card has, from top to bottom: the header, the body, what it delivers (answer summary, attachments, delivered files) and the run’s record (progress notes with step count, file changes, refused operations). File changes list only files the member was recorded writing during that run. The left of the header says who: the name, labels, and the model and effort this run used. The right says how this one went: status, time, number and duration, with the duration always last. A coloured status only means something went wrong (red for failed; amber for stopped, voided or skipped), and nothing is shown when all is well; on your own messages, the right shows how each member is handling it. On a phone, the buttons for retracting, editing, private chat and the like sit at the top right of the card, level with the name; the model, status, time, number and duration run from the left under the name. Stop and retry sit at the right end of the line they act on.
|
|
31
|
+
- **Where things sit on a card.** Every member card has, from top to bottom: the header, the body, what it delivers (answer summary, attachments, delivered files) and the run’s record (progress notes with step count, file changes, refused operations). File changes list only files the member was recorded writing during that run. Git files in the main project and additional writable projects support diff previews. The execution timeline counts the same files. The left of the header says who: the name, labels, and the model and effort this run used. The right says how this one went: status, time, number and duration, with the duration always last. A coloured status only means something went wrong (red for failed; amber for stopped, voided or skipped), and nothing is shown when all is well; on your own messages, the right shows how each member is handling it. On a phone, the buttons for retracting, editing, private chat and the like sit at the top right of the card, level with the name; the model, status, time, number and duration run from the left under the name. Stop and retry sit at the right end of the line they act on. Project files mentioned in an answer appear as clickable cards once verified as deliverables for that execution.
|
|
32
32
|
- **Card labels.** Where the card came from comes first, then where the work goes next. The usual channels (own message, CLI, API) are no longer labelled; only rare sources such as sent on someone’s behalf, proactive messages and auto-captured answers are.
|
|
33
33
|
- “Host” identifies a message from the current host, host notes included.
|
|
34
34
|
- “Main line · step {n}” is a host-arranged order. “Main line · #{n} in turn” is `@all-seq`.
|
|
@@ -46,7 +46,7 @@ Room work can run on several lines in parallel. Labels at the top of a card show
|
|
|
46
46
|
|
|
47
47
|
New messages wait above the composer while the intended member or room is busy. They are sent when the recipient or room becomes available. Your answers on an answer card work the same way: while the member who asked is still busy, the answer is recorded, but the share for that member waits in the queue, marked “#N is posted; it goes to … once free”.
|
|
48
48
|
|
|
49
|
-
- **Not waiting.** Select the
|
|
49
|
+
- **Not waiting.** Select the send button on a queued item (on desktop it shows “Send now”, “Steer”, or “Interrupt and send”; on phones it shows the arrow icon alone); hover over it to see what it will do:
|
|
50
50
|
- The recipient is free: it goes at once.
|
|
51
51
|
- The recipient is working and its software takes interjections: this joins its current turn; it sees it right away and the work done so far stays. A message steered directly into the same task appears indented below the original user message with a “Steer” label. A message that interrupts work first keeps its own card.
|
|
52
52
|
- The recipient is working and cannot take an interjection: its turn is stopped first, and it takes this together with the interrupted work.
|
|
@@ -68,7 +68,7 @@ New messages wait above the composer while the intended member or room is busy.
|
|
|
68
68
|
Open private chat to see what a member is doing, redirect it midway through a run, or ask it something privately without adding it to the room.
|
|
69
69
|
|
|
70
70
|
- **Open private chat.** Select “Private chat” in the sidebar, then choose a member at the top. To inspect a specific run, use the chat-bubble icon on its in-progress or answer card.
|
|
71
|
-
- **See execution details.** The private-chat page shows execution records received by the local service. Which commands, tool calls, and output are visible depends on the member’s connection.
|
|
71
|
+
- **See execution details.** The private-chat page shows execution records received by the local service. Which commands, tool calls, and output are visible depends on the member’s connection. When the local service can read a Codex App member’s session before delivery, its in-progress card shows the private-chat button and the timeline and private-chat view record only the steps and outputs from that room task without pulling in unrelated messages from the same App chat; if the session cannot be read before delivery, it falls back to no progress.
|
|
72
72
|
- **Interrupt a run.** While a member works on a room task, enter a message in the private-chat composer, which prompts “Steer the current work…”. Check the page feedback to confirm the addition was delivered or queued. If the connection supports pause and resume, you can pause the run first. The page shows “Paused; send a follow-up to resume this task” Add your instructions and resume it.
|
|
73
73
|
- **Chat while idle.** When the member is idle, a private-chat message is only between you and that member. It does not appear in the public room and does not wake other members.
|
|
74
74
|
|
|
@@ -103,6 +103,8 @@ Addresses without an extension (such as `/about`) opened in a browser return the
|
|
|
103
103
|
|
|
104
104
|
## Notes
|
|
105
105
|
|
|
106
|
+
- Local members use `.scratch/<execution ID>` inside their drafts for reproducible test copies. Before cleanup, verify that the run has ended and its deliverables are saved. Review older drafts individually because they may contain the only copy of a file.
|
|
107
|
+
|
|
106
108
|
- **A regular member’s `@` mention does not assign work.** When members mention one another, it is only a reference and does not wake the other member. When a regular member mentions the host, the host is woken after other room work finishes.
|
|
107
109
|
- **Private chat and interruptions have limits.** They accept text only, not attachments or drawings. Manual and external members, and connections without visible output, do not support private chat.
|
|
108
110
|
- **When stopping is unconfirmed.** If a card says “Stop unconfirmed” or “The previous run is invalidated but may still be generating”, new messages to that member wait for confirmation, a late answer, or the original 10-minute timeout.
|
package/docs/guide/admin.md
CHANGED
|
@@ -11,12 +11,21 @@
|
|
|
11
11
|
“线上网站”和 `codiscuss admin status` 均在收到本次连接的心跳回应后显示“中转已连接”,遇到断线、重连或连续 HTTP 请求失败会说明原因,服务停止或记录过期时显示“状态未知”。中转连续 3 分钟未获心跳确认时,服务会重建该网站的连接。也可以点“立即重连”或运行 `codiscuss admin site reconnect`。
|
|
12
12
|
- **托管账号入口**(开启托管管理后显示):启停“登录入口”,开关“经线上网站中转”或配置“自有域名”(Cloudflare Tunnel)。
|
|
13
13
|
- **设置**:查看当前版本、“检查更新”与“更新并重启”(同步更新房间技能和隔离账号)、开关“登录 Windows 时自动启动”,以及切换管理面板语言。
|
|
14
|
+
- **“存储”页**:
|
|
15
|
+
- 查看本机 `.codiscuss` 数据总量(上限 10 GiB,不含语音模型)、全机草稿区占用(上限 3 GiB,单房间 1 GiB)、**房间记录与附件(`local/`)**占用、所在磁盘剩余空间与安全线,以及按房间与成员拆分的草稿占用和权限不可读条目计数;本机朗读与语音识别模型单独列出,不计入 10 GiB 上限(兼容旧目录与自定义模型目录,服务根目录为目录联接时也可正常计量)。
|
|
16
|
+
- 当 `.codiscuss` 数据达到 8 GiB 预警线时,“存储”标签显示提示圆点并弹出警告;超过上限或磁盘低于安全线时停止新的派活。点“清理临时文件”仅回收已确认结束执行的 `.scratch` 临时目录,不会删除房间记录、附件、成品或旧草稿。
|
|
17
|
+
- **超限脱困与边界**:房间被拦截时主持人也无法运行,清理历史旧草稿需在**房间外的 AI 对话**(如本机 Claude Code / Codex / Antigravity)中调用 `$codiscuss-draft-cleanup`(默认只盘点,经你确认才删除可重建副本);若由 `local/` 房间记录与附件占满,请先导出备份再在网页销毁旧房间。沙箱创建的不可读目录不计入配额,页面会标出数量;所有限额均为定期采样检查(有执行时每 2 秒查磁盘余量、每 30 秒扫描占用),并非文件系统写入层硬拦截,不能保证磁盘绝不写满。
|
|
18
|
+
服务执行期间,每 2 秒检查服务目录所在卷的可用空间。10 GiB 预算还有余量时,卷上可用空间的下降量达到该余量就提前复扫。执行结束时更新相应成员的草稿占用。清理后手动重试会按原拦截原因复核;全机超限时重新统计全机用量。其他程序写盘时,若可测用量未超限且不可读项数量稳定,运行继续。提前复扫发现不可读项增多时暂停派活,并请求停止可停执行。后续扫描确认数量稳定且各项限额与磁盘余量正常时,恢复派活。低于磁盘安全线仍独立触发保护。房间草稿达到 80% 时,守卫提前暂停无法确认可停止的新执行。采样之间及扫描期间仍可写入,已运行的不可停成员可继续写入。项目目录、系统临时目录与第三方 AI 自身数据在服务目录外时不计入预算。按失败卡上的原因清理后,在卡片上点“重试”。本机和已配对设备都可手动重试。
|
|
14
19
|
- **“账号”页**:
|
|
15
20
|
- 左侧默认有“管理员(本机账号)”,开启托管管理后下方列出所有“托管账号”和“新建账号”按钮。
|
|
16
21
|
- 选中“管理员”或某个托管账号,可统一管理它的**命令行登录**(Claude Code / Codex / Gemini 登录状态、切换登录方式或退出,Claude Code 推荐 Setup Token)、**API 密钥**、**技能**(从“技能库”勾选安装或拖入 `.zip`/文件夹导入)、**随包工作流**与**系统提示词**。程序更新不会改动已装的工作流;工作流区的用法同概览页的检查更新:标题旁标出“已是最新”或可同步的数量;右上角按钮在一致时是“检查随包工作流”,有差异时变为蓝色的“同步到最新版”,确认后补装缺少的、用最新版替换不同的(被替换的旧版先备份到该账号服务目录的 `backups/workflows`,在这里做过的修改也会被替换)。
|
|
17
22
|
|
|
18
23
|
## 托管账号:给别人开账号用这台电脑上的 AI
|
|
19
24
|
|
|
25
|
+
新建账号时可填“项目数据目录(可选)”,或运行 `codiscuss admin account add alice --project-data-root "D:\CoDiscussData\alice"`。父目录须已存在,账号专用目录由程序创建。项目、无项目房间的工作区及成员草稿分别放在其 `projects`、`workspace`、`drafts` 下。服务配置、凭据、房间数据库和附件仍存于账号的服务目录。留空沿用默认布局。
|
|
26
|
+
|
|
27
|
+
存储统计合并服务数据与成员草稿,项目文件和工作区不计入草稿配额。分卷时,两卷都须满足各自的可用空间安全线。管理面板的清理操作使用当前草稿位置。使用更新后的清理技能时,将该账号 `codiscuss service status` 返回的 `drafts_root` 原样传给两个脚本的 `--drafts-root`。旧服务只报告 `home` 时用 `--home "<home>"`。尚未更新的脚本只支持 `--home`,需传入 `drafts_root` 的父目录。跨盘项目存储与“限制其他盘”互斥,独立 Windows 账号必须能访问项目数据卷。
|
|
28
|
+
|
|
20
29
|
Windows 可以从托盘打开面板。macOS 和 Linux 的命令行入口见下文。
|
|
21
30
|
|
|
22
31
|
一般自用不需要打开托管管理。想让家人、同事通过外网浏览器登录并使用你电脑上的 AI 时,再开启它:
|
|
@@ -32,6 +41,14 @@ Windows 可以从托盘打开面板。macOS 和 Linux 的命令行入口见下
|
|
|
32
41
|
- **自有域名**:在“托管账号入口 → 自有域名”点配置,按提示授权 Cloudflare 隧道并绑定托管在 Cloudflare 上的域名(命令行 `codiscuss admin entry tunnel <域名>`)。
|
|
33
42
|
4. **管理账号**:在托管账号页面可以启动/停止实例、停用/启用账号、重设密码、删除账号、配置由管理员提供的 API 密钥(对方界面只显示“管理员提供”,无法查看或更换),并复制登录地址与账号发给对方。邀请外部专家需要该实例具备可用的线上中转入口。面板每分钟检查已要求运行的实例,端口拒绝连接时自动重启,10 分钟内最多 3 次。达到上限仍失败时,账号行显示最后原因,`codiscuss admin status` 可查最近一次尝试。修好原因后手动启动可恢复巡检。
|
|
34
43
|
|
|
44
|
+
### 把已有账号的项目数据迁到另一块盘
|
|
45
|
+
|
|
46
|
+
先结束该账号正在执行的任务,并关闭仍在写项目文件的外部程序。在账号详情填入一个尚不存在的绝对路径(父目录须已存在),点“停止实例并迁移”。命令行可运行 `codiscuss admin account migrate-data <账号> --project-data-root <新目录>`。请选管理员控制的父目录,确保目标卷有空间容纳完整副本;隔离账号还需要能访问该卷。
|
|
47
|
+
|
|
48
|
+
迁移覆盖项目、房间工作区和成员草稿。程序停止实例,逐文件校验 SHA-256,旧路径通过目录联接指向新位置。完成后手动启动实例。复制出错并回滚时请改用新的空闲路径;面板中途退出时请以相同目标重试。目录树中的链接和特殊文件会中止复制。跨盘存储与“限制其他盘”互斥,开启磁盘限制时须选择允许访问的卷。
|
|
49
|
+
|
|
50
|
+
旧备份保存在原卷的运行配额目录之外,仍占用原卷空间。在账号详情点“查看迁移备份”,可按目录查看管理员登记的位置和当前文件字节数和磁盘占用。点“释放迁移备份”并确认会停止实例,核对备份、目标和联接后只删除选中的备份。迁移后可正常增删改项目和草稿文件。释放时须确认目标仍是迁移时的目录,旧联接仍指向它,备份仍符合迁移校验记录;任一检查失败都会保留备份。中断后重新确认同一项可继续;迁移前已有的无校验记录目录只能人工核对。CLI 先运行 `codiscuss admin account migration-backups <账号>`,再运行 `codiscuss admin account release-backup <账号> <迁移编号> <目录类别> --confirm`。
|
|
51
|
+
|
|
35
52
|
### macOS 和 Linux 能不能用?
|
|
36
53
|
|
|
37
54
|
- **macOS 和 Linux 有面板后台和非隔离账号的代码路径。** `codiscuss panel open` 的窗口启动器依赖 Windows PowerShell、Edge 或 `rundll32`。在其他系统上可先运行 `codiscuss panel start` 启动后台,再用 `codiscuss admin account add <名> --no-isolate`。实例使用运行服务的系统用户身份,账号之间没有操作系统级文件隔离。macOS 和 Linux 上托管账号从创建到外网登录的整套流程仍待实机验证。独立 Windows 用户、入口保护、托盘图标和登录 Windows 时自启属于 Windows 功能。
|
|
@@ -44,6 +61,7 @@ Windows 可以从托盘打开面板。macOS 和 Linux 的命令行入口见下
|
|
|
44
61
|
| --- | --- |
|
|
45
62
|
| 启动、退出、重启、更新(**无需面板已运行**) | `codiscuss admin start` / `stop` / `restart` / `update [check]` |
|
|
46
63
|
| 查看状态、启停服务、开机自启 | `codiscuss admin status [--full]`、`service start\|stop\|restart`、`autostart on\|off` |
|
|
64
|
+
| 查看存储占用与清理临时文件 | `codiscuss admin storage`、`storage clean` |
|
|
47
65
|
| 绑定/解绑线上网站、生成接入码 | `codiscuss admin site status`、`site connect <接入码\|站点>`、`site disconnect`、`entry code` |
|
|
48
66
|
| 托管入口与隧道 | `codiscuss admin entry start\|stop`、`entry join <接入码>`、`entry open\|close relay\|tunnel`、`entry tunnel <域名>` |
|
|
49
67
|
| 托管账号生命周期 | `codiscuss admin account list`、`account add <名>`、`account start\|stop\|disable\|enable\|remove\|password <名>`、`account isolate\|protect <名>` |
|
package/docs/guide/members.md
CHANGED
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
### 怎么操作
|
|
10
10
|
|
|
11
11
|
1. **添加本地软件成员。** 新建房间时在“谁来参与” → “添加 AI”点已配置的平台;已有房间在右栏点“邀请 AI 加入”(或在顶部“房间”页 → “成员与设置” → “邀请 AI 加入”),选好成员后点“邀请”。同一平台可添加多位,各自保持独立会话。
|
|
12
|
-
2.
|
|
12
|
+
2. **用角色预设加入成员**。在“添加 AI”下方从“预设”中选全局预设。建房时选定项目目录后,或向已有项目目录的房间邀请成员时,可从“项目预设”选择主项目或额外目录的预设。预设会带入描述、专属提示词、项目权限和模型。要删除可写位置中的预设,点行末的“管理”。
|
|
13
13
|
3. **添加模型 API 成员。** 在“添加 AI”里选 Claude、Gemini、DeepSeek、Qwen、Grok、OpenAI 或“自定义 API”。同一平台兼有本地软件和 API 时,翻到成员卡背面,在“接入”中选对应的 API。官方预设会带入服务地址。 普通本机 API 成员可以按房间编号读取同站点其他房间的概况、消息、事件和附件。
|
|
14
14
|
API 成员处理一次房间任务最多 45 分钟。连续 15 分钟没有模型或工具进展也会停止,执行卡会显示原因。
|
|
15
15
|
排查时,在房间左栏点“执行”,进入“瀑布”,打开该次执行的“执行诊断”。最后续租由房间服务记录,最后模型或工具进展由接入软件报告。模型请求重试、适配器重启和接入程序重新投递分别记录。插话的确认时间需要软件提供对应回执。旧执行或软件未提供的记录显示“未知”。
|
|
16
16
|
4. **填写 API 配置并检查。** 点成员卡正面的“设置”区域翻到背面,填写“地址”“协议”“密钥”“模型”。如果所选模型支持看图且需要它读图片附件,打开“看图”。点闪电按钮检查配置,提示“检查通过:模型已响应”即表示可用;点“完成”回到正面。
|
|
17
17
|
|
|
18
|
+
### 保存与使用项目预设
|
|
19
|
+
|
|
20
|
+
点成员卡背面的书签图标“存为预设”。在“存为专家预设”的“保存位置”中,跨项目复用时选“全局”,要随项目保存时选“当前项目”。有多个可写目录时,从“目标项目”中选具体位置。从预设添加的卡片可以用“更新预设”保存修改。带技能的预设可在卡片的“高级配置”中编辑技能。
|
|
21
|
+
|
|
22
|
+
陌生项目的预设请求可写权限时,默认以只读加入。核对请求的权限后,可在卡片上勾选放开。只读目录的预设可以使用,修改后的配置可另存到可写位置。
|
|
23
|
+
|
|
18
24
|
## 续接已有会话
|
|
19
25
|
|
|
20
26
|
想让本地 AI 带着原软件里已经聊过的上下文进房间,可以使用“历史会话”。支持 Claude Code、Codex 与 Gemini(Antigravity CLI,命令 `agy`)。
|
package/docs/guide/remote.md
CHANGED
|
@@ -48,7 +48,7 @@ npm 安装默认提供本机站点,没有随包可直接使用的公共线上
|
|
|
48
48
|
|
|
49
49
|
- 查看全部房间与实时更新、发消息、上传附件、语音输入与朗读、导出备份。
|
|
50
50
|
- 新建房间、邀请与请回成员、翻开卡片改模型与权限、录入 API 密钥、签发外部成员邀请。
|
|
51
|
-
- **目录范围受电脑控制**:外出设备只能选用你在电脑上保存的“常用项目”及其子文件夹(点项目目录栏末尾的文件夹按钮逐层浏览)。需要扩大范围时,在电脑上把上级目录加入“常用项目”。
|
|
51
|
+
- **目录范围受电脑控制**:外出设备只能选用你在电脑上保存的“常用项目”及其子文件夹(点项目目录栏末尾的文件夹按钮逐层浏览)。需要扩大范围时,在电脑上把上级目录加入“常用项目”。 在“管理项目…”中,拖动项目左侧的手柄,点“保存”即可更改选择菜单里的顺序。
|
|
52
52
|
|
|
53
53
|
## 要注意什么
|
|
54
54
|
|
package/docs/guide/rooms.md
CHANGED
|
@@ -28,11 +28,15 @@
|
|
|
28
28
|
|
|
29
29
|
- **排序**:点目录右上角选项,在“手动排序”(拖动或用上下方向键调序)和“最近发言”之间切换。
|
|
30
30
|
- **文件夹**:点“新建文件夹”按项目归集房间,可为文件夹设置默认项目目录,之后在该文件夹里建房会自动带入。点文件夹菜单可“编辑”、“上移”、“下移”、“存档文件夹”或“移除文件夹”(可选择仅移除文件夹,或连同其中房间一并删除)。
|
|
31
|
-
-
|
|
31
|
+
- **子房间**:主持人建的房间继承当前文件夹。点父房间标题左侧的箭头展开或收起,点标题进入父房间。打开子房间、子房间开始执行或新建子房间时自动展开;手动收起后,本次页面会话保留选择。子房间移到其他文件夹,或父房间存档、销毁后,子房间在所在文件夹独立显示。
|
|
32
|
+
- **房间操作**:点房间右侧菜单,可以“重命名”、“编辑议题”、“移至文件夹”、“复制阅读入口”、“刷新消息”、“存档房间”或“销毁房间”。“编辑议题”和“刷新消息”用于当前打开的房间。在电脑左栏双击房间名称,也能直接打开“重命名”。点顶栏最右侧的面板图标可展开或收起房间面板。
|
|
33
|
+
- 消息里的视频正在读取首帧时,预览区使用当前主题的底色,画面就绪后自动显示。
|
|
34
|
+
- 切回最近打开的房间时,右栏“发言顺序”先显示上次读到的模型和思考强度。成员或执行变化后会自动更新。
|
|
35
|
+
- 在已有房间的“协作设置”中,切换“智能调度”时该行保持固定高度。开启后,点“设置”展开决策模型配置。
|
|
32
36
|
- **销毁房间**:在房间菜单点“销毁房间”。确认框列出会删除和保留的内容,可先点“导出资料包”下载一份:含消息、私聊、附件、可双击打开的“讨论记录.html”,以及成员写在草稿目录里的文件(“草稿”文件夹,超过 50 MB 的部分只列出文件名)。点“立即销毁”,再在“再次确认销毁”里点“确认销毁”后(所有销毁入口都要这样确认两次),这台电脑上的房间记录、附件、成员在本房间新建的 AI 会话记录、运行文件和草稿会被删除:房间立即化成粒子消散(左栏那一行和打开着的中间区域一起),删除与核验在后台继续,全部完成后右下角显示删除了多少。建房时自动创建的草稿文件夹(左侧“项目”里的“草稿”)连同其中文件也会删除,资料包里放在“草稿空间”文件夹;你选的项目文件夹不会删除;沿用你原有窗口的会话、与其他房间共用的会话会保留;已发给模型服务商的内容按其政策保留,无法从这里删除。房间发布过分享网页时,销毁前会先撤销它。某项暂时没删掉时,右下角会提示,可在“销毁记录”里查看并重试。成员草稿目录里的文件会随房间删除,需要的先导出资料包。
|
|
33
37
|
- **销毁记录与销毁全部房间**:点左栏房间目录右上角“…”里的“销毁记录”,查看每次销毁删除了什么、保留了什么(房间名在完成后清除),未完成的可点“重试”。底部“销毁全部房间”须输入“销毁全部”确认,会逐个销毁全部房间(含已存档),项目文件保留;以独立 Windows 用户运行的托管账号随后还会删除各 AI 软件里的全部会话记录和 AI 记住的偏好,登录信息保留。“导出全部房间”不含草稿,需要草稿请逐个房间导出。
|
|
34
38
|
- **自动销毁**:新建房间时在“协作方式(可选)”里选,或之后在房间顶部的“房间”页,把“自动销毁”设为无活动 1 天、7 天或 30 天后销毁,旁边显示还剩多久;从设定时起算,房间里有新消息或私聊会重新计时;已存档、有成员在工作或排队、有待你回答的提问、发布着分享网页的房间不会自动销毁。剩余不足一天时网页会提示一次,销毁后也会提示。默认“长期保留”。
|
|
35
|
-
-
|
|
39
|
+
- **恢复与清理存档**:打开“已存档”,按关键词或有无消息筛选,对选中房间点“恢复”放回活跃列表,单个房间点“销毁房间”并二次确认;“全部销毁”针对当前筛选结果,点击后会弹出独立的“销毁已存档房间”悬浮窗(列出删除与保留范围,支持先“导出资料包”),经“立即销毁”与“再次确认销毁”后执行。
|
|
36
40
|
|
|
37
41
|
### 3. 设置多个项目目录并浏览项目文件
|
|
38
42
|
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
|
|
46
50
|
### 4. 发送与查看附件
|
|
47
51
|
|
|
48
|
-
- **添加附件**:在输入框粘贴、拖入文件,或点左下角回形针按钮选择文件(每条消息最多 10 个,单个最多 20 MiB)。添加后输入框上方出现缩略图,正文光标处插入 `[图片 #1]`、`[文件 #2]`
|
|
52
|
+
- **添加附件**:在输入框粘贴、拖入文件,或点左下角回形针按钮选择文件(每条消息最多 10 个,单个最多 20 MiB)。添加后输入框上方出现缩略图,正文光标处插入 `[图片 #1]`、`[文件 #2]` 等房间内连续编号的占位标签;删掉缩略图或按退格删掉占位,两边同步移除。发出后,正文里首次写到 `[图片 #n]` 的图片会紧跟在所在段落或列表项下方以半宽两列排布显示(手机上单张占满整宽、多张两列并排,多图消息附带 `#n` 角标),附件列表不再重复列出;其他附件仍列在消息下方。
|
|
49
53
|
- **查看附件**:消息发出后点正文占位或附件卡片即可打开;图片支持全屏缩放、旋转与保存,音视频直接在消息里播放,文档与代码在文件预览窗口打开。
|
|
50
54
|
- **交互式可视化**:成员可以在回答正文里放一段可以操作的网页(拖动滑块、点按钮看结果变化),它显示在正文中的原位置,跟随房间主题和深浅色,手机上同样直接显示。滚到它附近才开始运行。下方一行可“收起”(会记住选择)、看“源码”、“放大”到文件预览窗口、在“新标签页”打开或“下载”为 `.html` 文件。只读分享页、朗读和消息折叠时的预览只显示“交互式可视化”一行,结论以成员写在正文里的文字为准。`.html` 附件不在消息内显示,点文件卡片在预览窗口或新标签页打开。有的可视化是提问面板:你在里面排序、分配或调整后点它的提交按钮,结果会作为引用放到输入框上方,不会直接发出;你可以删改,点发送才算回答。同一面板再次提交会替换上一次的结果。
|
|
51
55
|
- **成员读取附件**:本机服务为支持附件的自动执行下载文件,并把文件信息交给接收任务的成员。Claude Code 和 Codex CLI 可直接看图;API 成员需在卡片设置中打开“看图”才能看图,UTF-8 文本附件可按需读取,PDF 等其他文件读不到时会如实说明。
|
|
@@ -57,21 +61,24 @@
|
|
|
57
61
|
- “下载网页文件”会在后台生成并下载一个独立的 `.html` 文件,用浏览器直接打开即可,发出去后无法过期或撤回。
|
|
58
62
|
- “发布链接”:大小检查通过后关闭弹窗并在后台发布。完成通知提供“查看分享卡”和“复制链接”,即使手机失焦也能手动复制,选 1、3 或 7 天后过期,到期自动删除。左侧房间列表下方的“已分享”列出所有有效的分享链接和剩余时间,可以复制、打开、续期(内容不变,有效期从现在重新计算)或撤销;房间菜单里也有“复制分享链接”“撤销分享链接”,再次“分享”可“更新链接”换成最新内容。确认撤销后该链接立即从列表和房间菜单消失;续期时立即显示新到期时间。可以接着操作其他房间,保存失败会恢复相应链接并提示原因。链接跟着房间保存在电脑上,已配对的手机和平板也能管理;房间文字整理后超过 5 MB 时请改用网页文件。
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
**分享卡与分享文案**:在完成通知或“已分享”里点“查看分享卡”。弹窗同时提供封面图与可直接粘贴到小红书、朋友圈或群聊的“分享文案”:自动封面默认取开场首句与最新成果首句并可直接修改或“恢复自动提取”;在固定高度的缩略图网格里点“选择房间图片”或“上传封面”可切换 PNG、JPG、WebP 封面(特别长的图片可裁剪保留区域)。“分享文案”默认生成带房间概述、已上线产品链接与完整协作记录链接的基础文案,支持直接编辑、“恢复默认”与一键“复制文案”;若在“选择房间图片”里选中了带“含文案”标记的封面(由 `$share-card` 同条消息生成),会自动载入其配套文案并把 `{{share_url}}` 替换为真实分享链接。使用“更新链接”时,已选封面和手改文字、文案会保留,其他内容随房间更新。撤销后重新发布会生成新卡。续期后重新打开,扫码栏显示最新有效期。点“保存图片”可导出 PNG。分享弹窗里的“复制分享卡诊断”会记录材料截止消息和条数、封面来源、渲染进度及可确认的发布和附件状态。渲染完成后会显示 PNG 像素尺寸,旧记录缺失的字段会省略。诊断内容省略正文、图片及访问凭据。
|
|
61
65
|
|
|
62
|
-
想让 AI
|
|
66
|
+
想让 AI 一起生成封面与社交平台文案时,发一句 `$share-card 做分享卡,重点展示最终产品`。在其他房间制作时加上目标房间链接。AI 会同时返回封面 PNG 与配套 `share-copy` 文案块。
|
|
63
67
|
|
|
64
68
|
两种方式看到的都是这个房间的“消息”和“执行”两页,从头阅读,外观与本机一致,卡片和执行详情都能点开;每次进入“执行”都会从头自动回放协作过程,点“结束回放”回到最终状态。“私聊”“房间”“文件”等标签灰显,只展示示意。但不能发消息或做任何操作;内容停在生成那一刻。私聊、事件记录、调度决策、被拒操作、排队消息、本机路径、会话编号与凭据不会写进去,已撤回或回退的消息也不带;失败原因只写“执行失败”,房间项目目录在正文里改写成项目内的相对路径。消息正文其余部分原样公开,发出前请核对。
|
|
65
69
|
|
|
66
70
|
附件默认不带,消息里的附件标记显示为“未包含在分享中”。房间有附件时,确认框里有“包含附件”,勾选后所有附件(图片、视频、网页、文档等)原样放进分享页,读者可以查看和下载;成员回答里交付的项目文件(回答下方的文件卡片)也会作为该条回答的附件一起带上。文本类附件会一并检查疑似密钥和本机目录;图片、视频等文件的内容程序查不了,请自己核对。发布链接带上页面能预览的附件:图片、音视频、PDF、Word/Excel/PowerPoint(docx、xlsx、pptx)、文本与代码、zip 压缩包和网页,读者在分享页里直接打开;js、bat、ps1 等双击就会运行的脚本改名为 .txt 后带上。程序和旧版 doc/xls/ppt 不放到分享站,消息里显示“未包含在分享中”,下载的网页文件仍会带上。网页附件在分享页里照常运行,成员回答里引用的演示直接显示在消息中;它在隔离的框架里运行,读不到分享页,也不能联网请求或提交表单。勾选后点“筛选附件”可按类型或逐个选择;合计超过 300 MB 时筛选自动展开。文件按最新消息在前排列。每项显示消息编号、发送者、时间及大小,点文件名或“预览”核对内容,关闭预览即可继续勾选。发布时文字最多 5 MB,每个附件最多 100 MB、附件合计最多 300 MB。电脑上的常驻服务负责整理和上传,手机锁屏、关闭页面或换一台已配对设备都可以继续。在左侧“已分享”的“分享任务”里可以打开确认、查看已传文件数和字节数、取消、重试或调整附件。发布完成后,从下方的有效链接查看分享卡或复制链接。取消、重试和清除会立即更新该任务;操作失败会恢复并提示原因。打开确认或分享卡时会先显示房间标题,再载入内容。常驻服务未运行时由浏览器处理,此时须保持页面打开。网页文件最多带 100 MB 附件。下载前房间内容若有更新,会重新显示确认框。
|
|
67
71
|
- **导入房间**:目录选项或文件夹菜单 → “导入房间”,选择 ZIP 文件,在预览中确认要导入的房间;标为“已存在,跳过”的房间会保留原样。在同一台电脑导入后,请回成员会续接原会话(Claude Code 成员会改为手动接入,请回后在原窗口重新注册,避免会话分叉)。导入保留历史讨论记录,不会自动继续原讨论或重新唤醒成员。
|
|
68
72
|
- **从某条消息分支**:AI 发言菜单 → “从这里分支”,新建一个保留截至该条发言记录的房间。支持会话分叉的接入方式会在新房间续接分叉后的会话;原房间保留。
|
|
69
|
-
-
|
|
73
|
+
- **让主持人新建房间**:在“主持人权限”里勾选“新建房间”后,主持人可以把一部分工作拆到新房间:成员只用本机已配置的软件,项目权限默认只读、最高可写,项目目录只能是原房间的目录或其子目录;你没指定时由与原主持人同款的专家主持。两个房间各留一张“关联房间”卡片,点“打开房间”互相跳转。新房间直接继承原房间的智能调度、生图、API 上限、连续派活上限与主持人权限,但不能再新建房间;一个房间可新建的数量有上限(默认 3 个,可在“主持人权限”里调整)。两个关联房间的主持人可以互相发言,跨房卡片显示来源主持人的名字、头像和房间,点房间徽章可跳转。发送方房间会留下单行记录,显示目标房间和送达或排队状态。点摘要可展开完整正文,点“打开房间”可查看接收方的对话。消息直接交给目标主持人,忙时排队。父房间可立即发送以调整子房间的工作,目标无法插话或停止时继续排队;默认不限条数;担心两边来回不停,可在新建房间面板“高级设置”里设“关联房间互传上限”(对本机所有关联房间生效),从你上次在任一房间发言算起超过这个条数会被拒绝,你发一条消息即可让它们继续。
|
|
70
74
|
|
|
71
75
|
## 要注意什么
|
|
72
76
|
|
|
73
77
|
- **房间工作结束时提示**:别的房间的工作全部结束(从“正在执行”变为空闲)并保持几秒后,网页右下角提示“房间「房间名」的工作已结束”;正在看的房间不提示,插话、重试这类停下又马上继续的情况也不提示。需要开着网页。
|
|
74
78
|
- **共享目录不加锁**:多位成员同时改动同一项目文件时,网页右下角会弹出冲突提示(仅在开着房间时触发,不写进消息记录,也不唤醒主持人)。
|
|
79
|
+
- 大型素材和仓库在项目目录中直接读取;禁止复制到成员草稿目录或其 `.scratch` 子目录,项目只读时同样如此。需要可写副本时,请房主指定可写的项目目录。
|
|
80
|
+
- **草稿空间与存储上限**:连接本机服务或已配对电脑后,房间右栏会显示本房间的“草稿空间”占用(单房间上限 1 GiB,全机草稿 3 GiB,`.codiscuss` 数据总量 10 GiB,不含语音模型)。房间草稿达到 80% 时进度条与文字转为警示色,超限时转为红色并停止派活;本机数据达到 8 GiB 时右下角弹出警告提示,存在权限不可读条目时会一并标出。房主可在右栏点“清理临时文件”回收已确认结束执行的 `.scratch` 目录;房间被旧草稿拦截时,请在**房间外的 AI 对话**中运行 `$codiscuss-draft-cleanup` 盘点并按授权清理;房间记录与附件(`local/`)永不自动删除,需销毁旧房间释放空间。存储上限按周期采样检查,并非文件系统写入层硬拦截,不能保证磁盘绝不写满。
|
|
81
|
+
服务执行期间,每 2 秒检查服务目录所在卷的可用空间。10 GiB 预算还有余量时,卷上可用空间的下降量达到该余量就提前复扫。执行结束时更新相应成员的草稿占用。清理后手动重试会按原拦截原因复核;全机超限时重新统计全机用量。其他程序写盘时,若可测用量未超限且不可读项数量稳定,运行继续。提前复扫发现不可读项增多时暂停派活,并请求停止可停执行。后续扫描确认数量稳定且各项限额与磁盘余量正常时,恢复派活。低于磁盘安全线仍独立触发保护。房间草稿达到 80% 时,守卫提前暂停无法确认可停止的新执行。采样之间及扫描期间仍可写入,已运行的不可停成员可继续写入。项目目录、系统临时目录与第三方 AI 自身数据在服务目录外时不计入预算。按失败卡上的原因清理后,在卡片上点“重试”。本机和已配对设备都可手动重试。
|
|
75
82
|
- **预览与传输限额**:文本文件最多预览前 128 KB;其他设备经电脑查看媒体与文档时单个文件最多 64 MB,发送 3 MiB 以上视频时网页会先尝试压缩。指向项目目录外的链接会灰显并被拒绝。
|
|
76
83
|
- **分支不分叉文件**:分支出的新房间与原房间共用同一项目目录,文件系统不会复制;“从这里分支”需要连接本机服务。
|
|
77
84
|
- **上传不等于已读**:把附件发进房间不代表成员已经读过它的内容;执行中插话和私聊不支持发附件。
|
package/docs/guide/voice.md
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
- 安装本机朗读:“请按 `local-tts-setup` 技能帮我安装并配置本机朗读语音。”(若想加装 4 个适合听小说的 VoxCPM2 音色,顺便说明“一并安装 VoxCPM2 模型”。)
|
|
23
23
|
- 安装本机语音输入:“请按 `local-stt-setup` 技能帮我安装并配置本机语音输入。”
|
|
24
24
|
|
|
25
|
+
安装前先选择模型父目录,默认是用户主目录下的 `.codiscuss-models`。朗读与识别分别放在 `yovoice/` 和 `crispasr/`,可以选不同的盘。Windows 上 C 盘剩余不足 30 GiB 时,若其他盘空间充足,AI 会建议该盘,由你决定。旧安装继续使用原目录,升级不会自动搬动模型。
|
|
26
|
+
|
|
25
27
|
AI 会自动检查你的显卡、磁盘与共议版本,告知预计占用后下载引擎与模型、写入本机令牌并验证可用。安装完成后,刷新网页到“设置 → 语音”就能看到并选中“本机”。若刚升级且网页没有新选项,可运行 `codiscuss service restart` 重启负责唤醒 AI、处理本机任务的后台讨论服务,再刷新网页。本机网站是提供房间页面的另一进程。
|
|
26
28
|
|
|
27
29
|
### 使用朗读与语音输入
|
package/docs/guide/workflows.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
### 2. 在房间里启用、刷新与停用工作流
|
|
23
23
|
|
|
24
24
|
1. **授权主持人启用工作流**:建房时在“协作方式(可选)”,或建房后在顶部“房间”页 → “成员与设置” → “协作设置”勾选“主持人完整权限”。打开后,主持人才能直接帮你启用工作流并把工作流里的成员请进房间。
|
|
25
|
-
2.
|
|
25
|
+
2. **启用工作流**。在输入框输入 `/`,先显示“本项目工作流”,再显示“全局工作流”。房间有多个项目目录时,按项目名选对应的工作流。补上这次要做的事后发给主持人,由主持人启用并请进缺少的卡片成员。
|
|
26
26
|
- **成员卡片与角色对应**:主工作流里的每张卡片对应一个角色(含分工描述、专属提示词、软件、模型、强度和项目权限),启用时主持人按卡片加入缺少的成员,已绑定且在场的成员沿用原身份,已离开的请回。子工作流的角色在用到时加入。工作流卡片的提示词在房间里只读,需要改时在左栏“工作流”页修改。
|
|
27
27
|
3. **补齐新增角色**:如果后来在工作流里加了新卡片,已启用它的房间不会自动加人;主持人用到时会自己补上,你也可以在右栏工作流一行点刷新图标立即补齐。
|
|
28
28
|
4. **使用子工作流**:工作流运行中,在输入框打 `/` 会多出“工作流「名称」的子工作流”分组,选一项发给主持人即按子流程处理;用完相关成员会被设为离开,会话保留。
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
|
|
33
33
|
你既可以在左栏“工作流”点“+”手动新建或导入 `.zip`/文件夹,也可以直接让 AI 用随包安装的 `workflow-creator` 技能帮你起草和校验:
|
|
34
34
|
|
|
35
|
-
- **在房间里让主持人建**:打开“主持人完整权限”后,直接对主持人说你要什么分工(或说“把这个房间的做法存成工作流”),也可以在输入框打 `/` 选平台技能里的“新建 / 修改工作流”。主持人会调用 `workflow-creator` 生成 `SKILL.md
|
|
36
|
-
- **在外部 AI 对话里建**:在任意已装好共议技能的 Claude Code / Codex 窗口,请它按 `workflow-creator` 技能为你新建或修改工作流。它先用 `codiscuss launch workflow-check --dir <目录>` 校验,待你确认后用 `codiscuss launch workflow-save --dir <目录>` 保存。库里已有同 ID 的工作流时,须明确选择覆盖(`--overwrite`)或带上读取时的修订号(`--revision
|
|
37
|
-
-
|
|
35
|
+
- **在房间里让主持人建**:打开“主持人完整权限”后,直接对主持人说你要什么分工(或说“把这个房间的做法存成工作流”),也可以在输入框打 `/` 选平台技能里的“新建 / 修改工作流”。主持人会调用 `workflow-creator` 生成 `SKILL.md`、角色卡片与画布,校验通过后保存并启用。房间有主项目时默认保存到主项目,否则保存到全局。需要跨项目使用时,可以明确请主持人保存到全局。
|
|
36
|
+
- **在外部 AI 对话里建**:在任意已装好共议技能的 Claude Code / Codex 窗口,请它按 `workflow-creator` 技能为你新建或修改工作流。它先用 `codiscuss launch workflow-check --dir <目录>` 校验,待你确认后用 `codiscuss launch workflow-save --dir <目录>` 保存。库里已有同 ID 的工作流时,须明确选择覆盖(`--overwrite`)或带上读取时的修订号(`--revision`),否则不会保存。校验与保存项目工作流时,都加上 `--scope project --project <项目目录>`。
|
|
37
|
+
- **存在哪里**。全局工作流可跨项目使用,位于 `~/.codiscuss/workflows/<ID>/`。项目工作流位于 `<项目根目录>/.codiscuss/workflows/<ID>/`,可在使用该目录的房间里选用。左栏“工作流”先显示“当前项目”下的工作流,再显示“全局”。房间有多个目录时,项目工作流条目会标出项目名。没有项目的房间只显示全局工作流。
|
|
38
|
+
- **选择保存位置**。点“+”后按目标位置选择新建或导入项,例如“新建全局工作流”或“新建到项目「项目名」”。编辑器顶部显示“全局”或“项目 · 项目名”,只读项目另标“只读”。只读项目的工作流可以打开查看或复制到全局。
|
|
39
|
+
- **移动、复制与导出**。打开项目工作流的“…”菜单,选择“移至全局”或“复制到全局”。移动要求源项目可写,成功后当前房间的绑定也随之更新。若全局已有同 ID,移动会被拒绝。复制会保留原件。全局工作流可用“复制到本项目”复制到唯一的可写项目。有多个可写项目时,点对应的“复制到项目「项目名」”。点“导出”下载工作流压缩包,导出提示会列出因格式或大小跳过的文件。
|
|
38
40
|
|
|
39
41
|
### 4. 画布与 `SKILL.md` 的分工
|
|
40
42
|
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
- **主持人按 `SKILL.md` 派活**:谁先谁后、哪些成员并行、什么时候交回主持人把关、什么条件返工,都由 `SKILL.md` 写明并由主持人照做。用 `workflow-creator` 生成或修改工作流时,AI 会按 `SKILL.md` 同步更新画布。
|
|
47
49
|
- **步骤分组与挂靠**:画布可以把节点分成几个步骤,显示为带名字的虚线框,框上标出挂在这一步的子工作流。步骤和挂靠写在 `flow.json` 与子工作流的 `SKILL.md` 里(由 `workflow-creator` 维护),和画布一样只是示意,主持人仍按 `SKILL.md` 判断这一步用不用。
|
|
48
50
|
- **一张卡片请多位成员**:同一张卡片可以由主持人按不同显示名请进多位成员,例如每位人物一位成员;显示名只在本房间有效,同一个名字请回的是原来那位成员和它的会话。
|
|
49
|
-
- **带技能的专家**:工作流里的专家可以是一个文件夹而不是一个文件:`
|
|
51
|
+
- **带技能的专家**:工作流里的专家可以是一个文件夹而不是一个文件:`experts/<卡片ID>/` 里放定义 `<卡片ID>.md`(和普通卡片文件同一格式)和 `skills/<技能名>/`,每条技能一份 `SKILL.md` 加 `references/`。旧工作流的 `agents/` 仍可读取。担任这张卡片的成员可以读写自己的 skills,工作流的其他部分照旧只读;他写技能不改变工作流的修订号,网页和命令行的普通保存都原样保留这些技能,只有整份覆盖和导入会用文件夹里带的替换。导出这位专家得到的就是这个文件夹。“专家配置”是一个大弹窗:左边列出所有卡片,右边分“基础”“提示词”“技能”三个标签页;基础和提示词改完点弹窗底部的“保存”写入工作流(和工作流页的“保存”是同一次保存),技能文件逐个保存。手机上先在列表里选专家,再进入他的配置,左上角返回。带技能的专家不论在主线还是子工作流,都归在“顾问”一组,条目上标着他属于哪里;选中后切到“技能”,左边是技能和文件,右边编辑选中的文件(手机上逐层进入),可以查看和修改每条技能的 SKILL.md 和资料,新建、删除技能和资料文件。这些修改直接写进专家的文件夹,不用保存工作流,也不改工作流的修订号;专家同时改过的文件会拒绝保存并提示重新载入,不会被覆盖。普通专家在“技能”标签页写下第一条技能的名字和描述,点“添加技能”,保存工作流后它就变成带技能的文件夹。列表下方的“导入专家包”把一个 md、压缩包或文件夹放进主线或画布当前所在的子工作流。删掉一位带技能的专家、整份覆盖替换了技能、删除整个工作流时,原来的文件夹会先备份到服务目录的 backups 下。命令行 `codiscuss launch expert-import --from <路径> --workflow <ID> [--sub <子工作流ID>]` 把专家包放进工作流,卡片 ID 已存在时拒绝。面板上的专家各有一份技能,按归属保存在全局或项目的 `experts/<ID>/skills/`,和工作流里的不共用;在“专家配置”里把卡片“存为面板预设”时会复制过去,同名预设已存在时要点“覆盖同名预设”才会替换;本机已有这位专家的技能时默认保留,提示后可点“用工作流里的技能替换本机的”。新建房间面板上,带技能的预设专家(顾问)卡片背面和其他专家一样只放基础配置,另有一个“高级配置”按钮,打开和工作流同一个配置弹窗,查看和修改的是该预设所属范围内的技能。网页上,新建房间面板“添加 AI”下方的“导入导出专家”可以导入 .md、压缩包或文件夹,也可以导出任一预设;工作流“专家配置”里的“导出”导出当前卡片(已保存的版本)。没有技能下载一个 md,有技能下载一个压缩包。导入时同名预设会让你选“覆盖”或“取消”;本机已有这位专家的技能时默认保留本机的,可选“用导入的替换(原来的会备份)”;被忽略的文件和被降为只读的权限会在提示里列出。命令行同样可以:`codiscuss launch expert-export` 导出,`codiscuss launch expert-import` 导入成面板预设;同名预设和已有的技能都不会被静默替换。专家带着的软件本机没有配置,或者本机这个软件的模型列表里没有他写的模型时,导入照样成功,提示里会说明;这时面板上的按钮变灰(软件)或卡片上标出“本机没有……,不能调用”(模型),建房和请进都会被拒,配好软件、或把模型改成列表里的(留空即用软件默认)之后恢复。是否“没有”只看本机已经读到的模型列表:还没读过列表、读取失败或没写模型都不算;Claude 的列表只是它的模型选单,不据此拦。
|
|
50
52
|
|
|
51
53
|
### 5. “主持人完整权限”与工作流的关系
|
|
52
54
|
|
|
@@ -56,6 +58,8 @@
|
|
|
56
58
|
|
|
57
59
|
## 要注意什么
|
|
58
60
|
|
|
61
|
+
- **首次启用陌生仓库的工作流**。项目工作流登记了本机命令或包含高于只读权限的卡片时,首次启用需要确认。也可以从房间右栏的“邀请 AI 加入”选择工作流。在“信任项目工作流”弹窗核对高权限成员卡片和登记的命令。通过 `/` 选用时点“信任并继续”,随后补充请求并发送。通过邀请入口启用时点“信任并启用”。信任记录保存在本机,与所确认的内容对应。
|
|
62
|
+
|
|
59
63
|
- **改一次作用于全部房间**:修改并保存工作流后,已启用它的房间在下一次执行时读取最新流程说明与角色提示词。已有成员的模型、强度和权限仍取房间设置。
|
|
60
64
|
- **导入别人工作流时的安全检查**:导入 `.zip` 或文件夹时会先上画布预览,要求写文件的卡片默认按只读导入,需你逐张勾选才放开;若工作流包含给只读 API 成员登记本机命令的 `commands.json`,编辑页会列出完整命令,勾选“允许这些命令在本机运行”才会生效。主持人起草或修改工作流时不能增删本机命令。
|
|
61
65
|
- **只放开一部分**:展开“主持人完整权限”下的“具体权限”,按项勾选:“处理执行问题”“调整成员配置”“改项目权限”“管理成员名单”“推进方式”“工作流”“新建房间”。主持人保存和启用工作流需要其中的“工作流”;没勾选的操作会被拒绝,并告诉主持人缺哪一项。
|
package/docs/guide/working.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
网站返回消息编号后,已确定的接收成员会显示在消息下方。自动接入的成员正忙并需等当前工作结束时,这里会显示带时钟图标的一行排队提示,列出成员名和等完要处理的消息编号。把鼠标移到提示上可看已等时长。成员开工后,执行卡会在原位置出现。需要智能调度决定接收者时,页面显示调度进度。
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
消息区左侧的快速导航只列出用户和成员的发言。悬停刻度可预览,点击可跳到对应卡片。点击右栏“发言顺序”中的成员行(或成员悬浮卡片中的“定位最新发言”)可直接跳到该成员的最新一条发言或正在进行中的执行卡片。
|
|
22
22
|
|
|
23
23
|
### 2. 看懂主线、支线与派活标签
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
- 被你直接 `@` 的成员空闲就立即开始,正忙就进入排队区,一空闲立刻收到。如果一条消息同时 `@` 了空闲成员和忙碌成员,空闲的立刻开工,忙碌的那份留在排队区等它空闲。
|
|
29
29
|
- 主线轮到某位成员时,会等它做完手头支线再继续。
|
|
30
30
|
- 你发出的未点名消息、`@全体成员`、`@全体依次` 等整个房间空闲后再按顺序发出(主持人派出的后台任务不会阻塞你的新消息)。
|
|
31
|
-
-
|
|
31
|
+
- **卡片的固定位置**:每张成员卡从上到下依次是卡头、正文、交付(回答摘要、附件、交付文件)、过程记录(过程说明与步数、文件改动、被拒操作)。文件改动只列出能确认由该成员在本次执行中写过的文件。主项目和额外可写项目里的 Git 文件均可查看差异;执行时间线按同一范围计数。卡头左边说“是谁”:名字、标签和这次用的模型与强度;右边说“这一次怎么样”:状态、时间、编号、耗时,耗时总在最右。带颜色的状态只表示出了问题(红色失败,琥珀色停止、作废、跳过),正常时不标;你发的消息上,右边是各成员的处理状态。手机上撤回、编辑、私聊等按钮在卡片右上角,和名字同一行;模型、状态、时间、编号、耗时在名字下方从左排起。停止、重试按钮在它作用的那一行右端。回答中提到的项目文件经核实属于本次交付后,才会显示为可打开的卡片。
|
|
32
32
|
- **卡片头部标签**:先写这张卡从哪来,再写接下来去哪。常见的发言渠道(本人发言、CLI、API)不再标出,只标代发、主动发言、自动收录这类少见来源。
|
|
33
33
|
- “主持”:当前主持人的发言,主持说明卡也用它。
|
|
34
34
|
- “主线 · 第 n 棒”(主持人安排的顺序)或“主线 · 第 n 位”(`@全体依次`)。
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
成员正忙时,你发送的新消息会自动停留在输入框上方的排队区,等对应成员或房间空闲后自动发出。你在答题卡上的回答也一样:提问的成员还在忙时,回答已经记下,但交给它的那份留在排队区,写着“#N 已发出,等某某空闲后交给它”。
|
|
48
48
|
|
|
49
|
-
-
|
|
49
|
+
- **不想等**:点排队项右侧的发送按钮(电脑上会显示“立即发送”“插话”或“打断并发送”,手机上仅显示箭头图标),悬停可看到点了之后会怎样:
|
|
50
50
|
- 接收者空闲:马上发出。
|
|
51
51
|
- 接收者正在执行、它的软件支持插话:这条插进它这一轮,它当场就能看到,已做的工作不受影响。 直接插入同一任务的消息缩进显示在原用户消息下,并标为“插话”。先打断再处理的消息保留独立卡片。
|
|
52
52
|
- 接收者正在执行、不支持插话:先打断它这一轮,再连同被打断的工作和这条一起处理。
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
想看某位成员正在干什么、中途纠偏,或单独问它一句而不发到公共房间,可以打开私聊窗。
|
|
69
69
|
|
|
70
70
|
- **从哪里打开**:在左栏点“私聊”,再在页顶选成员。要看某次执行,也可点对应处理卡或回答卡上的聊天气泡。
|
|
71
|
-
- **查看执行过程**:私聊页展示本机服务已收到的执行记录。能看到哪些命令、工具调用和输出,取决于该成员的接入方式。
|
|
71
|
+
- **查看执行过程**:私聊页展示本机服务已收到的执行记录。能看到哪些命令、工具调用和输出,取决于该成员的接入方式。Codex App 成员在投递前能读取会话时,处理中卡片会显示私聊按钮,执行时间线和私聊页也会只记录本次房间任务的步骤与输出,不会带入同一 App 会话里的其他私人对话;投递前读不到会话时退回为不显示进度。
|
|
72
72
|
- **执行中插话**:成员正在处理房间任务时,在私聊窗底部输入框(提示“插话引导它…”)发一句话,查看页面反馈,确认补充要求已送达或正在排队。如果该成员支持暂停续做,也可以先点“暂停”停住本次执行(提示“已暂停,发一句补充后它接着做这次任务”),补充要求后它接着做。
|
|
73
73
|
- **空闲时私聊**:成员空闲时在私聊窗发消息,只和你单独对话,不出现在房间公共消息流里,也不会唤醒其他成员。
|
|
74
74
|
|
|
@@ -103,6 +103,8 @@
|
|
|
103
103
|
|
|
104
104
|
## 要注意什么
|
|
105
105
|
|
|
106
|
+
- 本机成员的可重建测试副本放在成员草稿的 `.scratch/<执行编号>` 下。清理前确认执行已结束、交付物已保存;旧版草稿可能混有唯一副本,需逐项核实。
|
|
107
|
+
|
|
106
108
|
- **普通成员的 `@` 不派活**:普通成员互相 `@` 只是引用,不会唤醒对方;普通成员 `@` 主持人时,等房间里其他工作都结束后才唤醒主持人。
|
|
107
109
|
- **私聊与插话的边界**:私聊窗和执行中插话只能发文字,不支持发附件或画图;手动接入成员、外部成员以及看不到输出的接入方式不支持私聊窗。
|
|
108
110
|
- **停止未确认时的等待**:出现“停止未确认”或“已作废,可能仍在生成”时,发给该成员的新消息会等待结束确认、迟到回答或原有 10 分钟期限。
|