ai_co_discuss 0.4.81 → 0.4.83
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/docs/en/runner.md +14 -0
- package/docs/runner.md +1 -1
- package/frontend/locales/en/core.json +0 -1
- package/frontend/locales/en/settings.json +4 -1
- package/package.json +1 -1
- package/web/admin.js +1 -1
- package/web/i18n.js +1 -1
- package/web/markdown.js +3 -3
- package/web/modern.css +1 -1
- package/web/modern.js +52 -52
- package/workflows/decision-council/SKILL.md +47 -0
- package/workflows/decision-council/agents/alternatives.md +19 -0
- package/workflows/decision-council/agents/contrarian.md +22 -0
- package/workflows/decision-council/agents/executor.md +21 -0
- package/workflows/decision-council/agents/outsider.md +18 -0
- package/workflows/decision-council/flow.json +111 -0
- package/workflows/story-serial/SKILL.md +28 -13
- package/workflows/story-serial/agents/critic.md +1 -1
- package/workflows/story-serial/agents/screenwriter.md +1 -1
- package/workflows/story-serial/templates/README.md +16 -1
- package/workflows/story-serial/templates//344/270/226/347/225/214.md +5 -5
- package/workflows/story-serial/templates//344/272/272/347/211/251//344/272/272/347/211/251/346/250/241/346/235/277.md +55 -0
- package/workflows/story-serial/templates//344/272/272/347/211/251//344/275/234/350/200/205/345/261/202.md +11 -0
- package/workflows/story-serial/templates//345/267/245/344/275/234/345/217/260.md +3 -11
- package/workflows/story-serial/templates//346/216/222/347/272/277/350/241/250.md +40 -0
- package/workflows/story-serial/templates//347/212/266/346/200/201//344/270/273/350/247/222.yaml +1 -1
- package/workflows/story-serial/templates//347/212/266/346/200/201//346/215/256/347/202/271.yaml +1 -1
- package/workflows/story-serial/workflows/revise-episodes/SKILL.md +3 -3
- package/workflows/trpg-classic/SKILL.md +181 -0
- package/workflows/trpg-classic/agents/dm.md +29 -0
- package/workflows/trpg-classic/agents/fighter.md +14 -0
- package/workflows/trpg-classic/agents/rogue.md +14 -0
- package/workflows/trpg-classic/agents/wizard.md +14 -0
- package/workflows/trpg-classic/commands.json +5 -0
- package/workflows/trpg-classic/flow.json +121 -0
- package/workflows/trpg-classic/tools//346/216/267/351/252/260.py +28 -0
package/docs/en/runner.md
CHANGED
|
@@ -131,6 +131,20 @@ API members can act as experts or hosts. When the room has a project folder, rea
|
|
|
131
131
|
|
|
132
132
|
Choose a provider and enter a key under **Smart Scheduling** (智能调度) when creating a room; the local service must be connected. See the [User Guide](workflow.md#smart-scheduling).
|
|
133
133
|
|
|
134
|
+
## Workflows (Optional)
|
|
135
|
+
|
|
136
|
+
A workflow saves one way of working together so other rooms can reuse it: a SKILL.md for the host to read, plus a set of agent cards (each card is one expert preset). Workflows are managed in the **Workflows** list below **Channel tools** in the left sidebar; click one to open it in the middle of the page, with or without a room open. To use one in a room, ask the host to start it (typing `/` in the input box and picking a workflow writes the request for you; see the permission below). The host then organises the work as the SKILL.md says. A workflow only brings a method and members; when no flow is drawn it does not guarantee the order of steps, and the host decides the details. You can @ any member at any time.
|
|
137
|
+
|
|
138
|
+
- **Bundled workflows**: the package ships three. "Serial fiction" (`story-serial`: a screenwriter, a writer, two critics and a recorder take turns episode by episode, with a reader who reads the text on request; it comes with project templates and a state-check script that needs Python's PyYAML). "Decision council" (`decision-council`: a contrarian, an outsider, an alternatives role and an executor each answer on their own, then argue over the real disagreements, and the host sums up a recommendation). "Classic tabletop RPG" (`trpg-classic`: a dungeon master and three AI players, with an optional seat for you; it comes with a rules summary, an original adventure and a dice script that needs Python). None is installed by default. When you run `codiscuss setup` in a terminal, an **Install settings** step follows the tool selection: it opens with an overview, → expands a group, Space ticks the workflows to install, and Enter continues; nothing ticked means nothing installed. You can also add `--workflows` to install all of them (`install` accepts it too, and non-interactive runs only honour this option). An existing workflow with the same name is replaced by the packaged version, and the old copy is first backed up to `backups/workflows/` in the service folder. The choice applies to this run only and is not remembered.
|
|
139
|
+
- **Saving**: click **+** to the right of the **Workflows** heading in the left sidebar (on a phone, open the sidebar from the top-left corner first) and choose **New**, or import a zip or folder someone shared. Imported content is previewed on the canvas and is written only when you click **Save**. Copying the folder path and deleting are under **…** on each list item. The edit page can import cards from the current room's members, keeping their prompts as written. To have the host draft one, turn on **Full host control** (below).
|
|
140
|
+
- **Flow canvas**: clicking a workflow shows its canvas in the middle and its SKILL.md on the right; on phones and upright tablets, switch between the two at the top. Each member is an expert card: drag its title bar to move it, click it to flip and edit, × to delete. **Members** at the top left adds cards and **Host** adds a host node; you can also drag from the dot on a card's right side to empty space to add a member already connected. Lines show who hands over to whom: a line back to an earlier card is drawn as a gold dashed loop, and a host node means the work returns to the host. Select a line or a host node to add a short note. Save with the **Save** button or Ctrl+S; undo and redo with Ctrl+Z and Ctrl+Shift+Z. **…** on a list item renames, disables, copies the folder path or deletes; a disabled workflow stays in the library but rooms cannot enable it. The lines only help you read the workflow: the program does not execute them and the host does not see them. The host assigns work by the SKILL.md, so order, parallel steps, hand-backs and rework all belong there.
|
|
141
|
+
- **Letting the host build one**: tick **Full host control** when creating a room or under **Members and settings → Collaboration settings**, then tell the host what division of work you want (or "save how this room works as a workflow"). It saves the workflow, enables it in the room, invites its members and starts assigning work; you do not need to import anything or add members. With the switch on, typing `/` and picking a saved workflow writes the request to enable it; add what you want done and send it. Members the host brings in get at most writable project access. Only a host running in a local tool can do this; an API host cannot.
|
|
142
|
+
- **What else Full host control covers**: the host handles problems in the room and keeps the work moving on its own: it interjects when a member drifts, interrupts or retries a stuck member (including its own failed run), switches models, and replaces members that cannot recover. You can also just say "stop the writer", "stop everything", "let the critic speak next", "invite a read-only Codex reviewer", "start a Goal to finish the remaining episodes" or "pause the discussion". It only invites tools configured on this computer, read-only by default and writable at most. When a member produces no new output for 10 minutes, the system reminds the host to check; the host can also set itself a recurring check every 5–120 minutes during long tasks. These stay with you: other actions on the host itself (interrupting it, changing its project access, setting it away, removing it) or replacing the host, approving rounds beyond the limit, access above writable or allowing tools, changing the project folder, withdrawing your messages, and private chats.
|
|
143
|
+
- **Sharing**: workflows live in the `workflows` folder of the local service folder, one folder per workflow. Copy the path from the edit page and send the whole folder (or a zip of it). An import lists each card's prompt and project access; cards that ask to write files are imported as read-only until you tick them one by one.
|
|
144
|
+
- **Sub-workflows**: a method used only when needed, outside the main line, can be a sub-workflow with its own SKILL.md, cards and canvas, stored under `workflows/<sub-workflow ID>/` inside the workflow folder. Switch, create or delete them in the **Main workflow and sub-workflows** list at the top left of the canvas; they are saved together with the main workflow. While a workflow is running, typing `/` also lists its sub-workflows, and the host may use them on its own. The host invites the members a sub-workflow needs and sets them away afterwards; their sessions are kept for next time. The whole folder is still a standard skill, so other AI tools can read it as one.
|
|
145
|
+
- **Commands for API members**: read-only API members have no command line (writable ones use Pi's own). Put a `commands.json` in the workflow folder (see the `workflow-creator` skill) to register commands they may run, such as a check script kept in the same folder. Once enabled, API members can only run these commands by name and cannot change the command line; read-only members can only run commands marked read-only. Commands run on this computer as you, so when you import someone else's workflow the edit page lists every full command and brings them along only if you tick **Allow these commands to run on this computer**. The host cannot add or remove commands when drafting or changing a workflow.
|
|
146
|
+
- **Changing and ending**: changes to a workflow apply to every room that has it enabled, from each member's next run. New cards do not enter a room automatically; the host adds them when needed, or click the refresh icon on the workflow row in the right column. Card prompts are read-only in the room and are edited on the workflow's canvas. While a workflow is running, the host uses it only for requests that match its purpose (or when you say to follow the workflow) and handles other requests as usual. To end it, click the dismiss-members icon on the workflow row under **Members and settings → Collaboration settings**: the members it brought leave (the host stays), their work in progress stops and the workflow ends. Their sessions are kept, so picking the workflow again with `/` brings the same members back with their earlier context. To switch workflows, just pick another one; the previous members stay as ordinary members.
|
|
147
|
+
|
|
134
148
|
## Permissions
|
|
135
149
|
|
|
136
150
|
Permissions are set per automatically started CLI member and default to read-only. The four levels are read-only, writable, automatic approval, and unrestricted; unsupported levels are disabled (`agy` does not support automatic approval in the background). Read-only pre-approves room-related `codiscuss` commands and answer drafts; writable allows project edits and commands. Automatic approval delegates decisions to the tool, while unrestricted skips permission prompts. Hover over a level for its exact scope. Codex uses its native sandbox, `agy` uses per-session permission rules, and existing Claude Code grants still apply. Manually started members keep their session's own permissions. When the owner turns on full host control for a room, the host can invite members using software already configured on this computer: project access defaults to read-only and is at most writable, and inviting a member who is away brings it back under its original name.
|
package/docs/runner.md
CHANGED
|
@@ -172,7 +172,7 @@ API 成员可以担任专家或主持人。房间指定了项目目录时,只
|
|
|
172
172
|
|
|
173
173
|
工作流把一种多人协作的做法存下来,供别的房间复用:一份给主持人读的 SKILL.md,加一组 Agent 卡片(每张就是一个专家预设)。工作流在左侧栏“频道工具”下方的“工作流”列表里管理,点一项就在中间打开它(没打开房间时也能用):查看 SKILL.md、成员卡片和示意图,新建、导入、编辑、删除都在这里。要在房间里用时,在输入框要求主持人启动(打 `/` 选工作流可以直接写好这句请求,权限见下文);主持人此后按说明组织工作。它只带来做法和成员;没画流程时不保证工序,具体怎么做由主持人判断。你随时可以 @ 任何成员。
|
|
174
174
|
|
|
175
|
-
-
|
|
175
|
+
- **内置工作流**:安装包自带三套。“小说剧本连载”(`story-serial`:编剧、写手、两位批评家与记录员逐集接力,另有一位读者按需读正文,附项目模板与状态检查脚本,脚本需要 Python 的 PyYAML);“决策会审”(`decision-council`:反方、局外人、另辟选项、执行者四个角色先各自独立作答,再围绕分歧交锋,由主持人综合出建议);“经典跑团”(`trpg-classic`:一位地下城主加三位 AI 玩家,用户可选亲自上场,附规则速查、一个原创冒险和掷骰脚本,脚本需要 Python)。默认不安装。在终端里运行 `codiscuss setup` 时,选完软件后有一步“安装配置”:先显示概览,按 → 展开,用空格勾选要装的工作流,回车继续;不勾就不装。也可以直接加 `--workflows` 安装全部(`install` 同样适用,非交互运行只认这个选项)。装的时候,已有同名的会覆盖为包里的最新版,原来那份先备份到服务目录的 `backups/workflows/`。选择只对这一次有效,不会记住,不选就不动工作流库。
|
|
176
176
|
- **保存**:点左侧栏“工作流”标题右侧的“+”(手机上先点左上角打开侧栏),选“新建”,或导入别人分享的 zip 或文件夹(手机、平板上同样可用)。导入的内容先放上画布预览,点“保存”才写入。复制文件夹路径和删除工作流在列表项的“…”里。编辑页可以“从当前房间成员导入”卡片,提示词保持原文。想让主持人起草,打开下面的“主持人完整权限”。
|
|
177
177
|
- **流程画布**:在左侧栏“工作流”列表里点一项,中间换成它的画布,右边是它的 SKILL.md;点任一房间或频道工具回到房间。手机和竖着拿的平板上,顶部在“画布”和“工作流”(即 SKILL.md)之间切换。每位成员就是一张专家卡片,拖卡片上方的标题栏移动,点卡片翻面设置,× 删除。左上“成员”添加卡片(平台、预设,或当前房间的成员),“主持人”添加主持人节点;也可以从卡片右侧的圆点拖线到空白处,就地选要加的成员并自动连上。名称在页面顶部标题处直接改,左上按钮组最后的“保存”或 Ctrl+S 保存,右上角是放大、缩小和适配;列表里每项右边的“…”可以重命名、停用、复制文件夹路径或删除(停用的工作流留在库里,但房间里不能再启用,已启用它的房间改用房间里的设置,随时可以再启用);左上有撤销、重做(Ctrl+Z、Ctrl+Shift+Z),双击空白处或鼠标中键双击复位视图。连线用来示意谁接谁:从「开始」右侧的圆点拖线连到卡片,连回前面的卡片画成金色虚线表示循环,主持人节点表示交回主持人判断。选中一条连线或一个主持人节点,可以写一句说明,如“同时审”“返工”“不等交回”“验收”。同一角色出场两次时,在“成员”菜单底部“已有成员再放一次”里点它。打开时按看得清卡片的大小从“开始”那端显示,双击空白处看全图。用 `workflow-creator` 新建或修改工作流时,AI 会照 SKILL.md 一起画好这张图。连线只帮你看懂工作流,程序不执行它,主持人也看不到;主持人派活按的是 SKILL.md(就在画布右侧,默认显示排好版的内容,点“编辑”修改;面板可以拖宽或收起),顺序、同时做、什么时候交回、要不要返工都写在那里。
|
|
178
178
|
- **让主持人自己建**:建房时(第 3 节“协作方式”)或在“成员与设置 → 协作设置”勾选“主持人完整权限”后,直接对主持人说要什么分工(或“把这个房间的做法存成工作流”),它会自己保存、在本房间启用,并邀请工作流里的成员,接着就按流程派活,不需要你导入或添加成员。之后让它改流程,改动从成员下一次执行起生效。打开这个开关后,也可以在输入框输入 `/` 选一个已保存的工作流,输入框里会写好“启用工作流「名称」(ID),”,补上要做的事发给主持人,它就启用这个工作流并带来成员(没打开时该项灰显)。主持人带来的成员项目权限最高为可写;只有本地软件担任的主持人能这样做,API 主持人不行。
|
|
@@ -377,7 +377,6 @@
|
|
|
377
377
|
"文件夹名称": "Folder name",
|
|
378
378
|
"项目路径(可选)": "Project path (optional)",
|
|
379
379
|
"在此文件夹中新建房间时自动带入,已有房间不受影响。": "Filled in automatically for new rooms in this folder; existing ones are not affected.",
|
|
380
|
-
"主目录的完整路径,或选择项目": "Full path of the main folder, or choose a project",
|
|
381
380
|
"房间名称": "Room name",
|
|
382
381
|
"这次想讨论什么?": "What do you want to discuss?",
|
|
383
382
|
"希望通过讨论解决的问题": "The question this discussion should resolve",
|
|
@@ -318,6 +318,9 @@
|
|
|
318
318
|
"从常用项目中选择": "Choose from saved projects",
|
|
319
319
|
"选择常用项目": "Select a saved project",
|
|
320
320
|
"添加常用项目": "Add saved project",
|
|
321
|
+
"临时路径": "One-off path",
|
|
322
|
+
"加入常用项目": "Add to saved projects",
|
|
323
|
+
"粘贴或输入临时路径": "Paste or type a one-off path",
|
|
321
324
|
"保存常用项目,之后一键选择;其他设备也能用": "Save projects for one-click selection, including from other devices",
|
|
322
325
|
"项目目录完整路径": "Full project folder path",
|
|
323
326
|
"在本机选择项目目录": "Choose a project folder on this computer",
|
|
@@ -655,7 +658,7 @@
|
|
|
655
658
|
"新建工作流": "New workflow",
|
|
656
659
|
"调整 SKILL.md 面板宽度": "Resize SKILL.md panel",
|
|
657
660
|
"拖动调整宽度,双击还原": "Drag to resize; double-click to reset",
|
|
658
|
-
"主线与子工作流": "Main
|
|
661
|
+
"主线与子工作流": "Main and sub-workflows",
|
|
659
662
|
"回到主线": "Back to main workflow",
|
|
660
663
|
"{value1} 个子工作流": "{value1} sub-workflows",
|
|
661
664
|
"{value1} 位": "{value1} members",
|